Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Cross-compile protobuf3-19.4 on qnx-sdp710 failed: (2 Items)
   
Cross-compile protobuf3-19.4 on qnx-sdp710 failed  
i want to Cross-compile  protobuf3-19.4  on qnx-sdp710, But there are some problems to build it,
The same environment can be compiled successfully with version qnx-sdp700。
The compilation process is as follows:
1、source ${MY_SDP710}/qnxsdp-env.sh
2、cd protobuf-3.19.4
3、./configure --prefix=xxx  --host=arm CC=aarch64-unknown-nto-qnx7.1.0-gcc  CXX=aarch64-unknown-nto-qnx7.1.0-g++ 
CPPFLAGS='-D_XOPEN_SOURCE=500' 
4、make -j8 & make install

Please see the attachment for the log of compilation failure
Attachment: Text build_falied_log.txt 16.06 KB
Re: Cross-compile protobuf3-19.4 on qnx-sdp710 failed  
iI solved this problem by adding CPPFLAGS='- D_ XOPEN_ SOURCE=700 'Compilation options