jeremyczhen / fdbus

FDBus - Fast Distributed Bus
https://blog.csdn.net/jeremy_cz/article/details/89060291
161 stars 85 forks source link

protocol buffer交叉编译报错 #14

Open yuminmin123 opened 4 years ago

yuminmin123 commented 4 years ago

cmake -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=1 -DCMAKE_TOOLCHAIN_FILE=../../toolchain.cmake ../cmake toolchain.cmake内容: “SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_C_COMPILER /home/marina/qnx700_ES9/host/linux/x86_64/usr/bin/ntox86_64-gcc) SET(CMAKE_CXX_COMPILER /home/marina/qnx700_ES9/host/linux/x86_64/usr/bin/ntox86_64-g++)” make后报错内容如下附件: image 请问一下是哪里配置错误了

yuminmin123 commented 4 years ago

交叉编译FDBUS也是类似的报错

jeremyczhen commented 4 years ago

编译器选qcc和q++试试

yuminmin123 commented 4 years ago

编译器选qcc和q++试试

编译器选qcc和q++是可以,但是我要布置到qnx7.0的虚拟机上去运行,要怎么处理,用qcc编译出来的,好像不能在qnx上运行

yuminmin123 commented 4 years ago

请大神帮助一下,谢谢

jeremyczhen commented 4 years ago
  1. 编译ARM版本用aarch64-unknown-nto-qnx7.0.0-gcc/g++
  2. 取master最新版本,c++规范改成了gnu++11 这样是可以编译通过的