share
Unix & LinuxIs there any specific steps for configuring protobuf in QNX?
[+2] [1] Priyanka
[2020-04-16 19:41:12]
[ gcc vmware qnx ]
[ https://unix.stackexchange.com/questions/580540/is-there-any-specific-steps-for-configuring-protobuf-in-qnx ]

We have tried to configure using ./configure command. An error is like no c++11 compiler support. We are following the steps ie mentioned in some blog. We want to know like is there any other specific steps for this?

there is no way to know if there are any other steps because you did not say what steps you did - jsotola
We have followed the steps mentioned in this link programmersought.com/article/78321808787 - Priyanka
Protobuf team made C++11 support as mandatory from v3.6.x onwards. You can compile Protobuf v3.5.x or below without C++11 support. Refer: github.com/protocolbuffers/protobuf/issues/… - Kesavamoorthi
[0] [2020-04-17 13:47:26] pi1ot
./autogen.sh

./configure 
    -disable-shared 
    CFLAGS='-fPIC' 
    CXXFLAGS='-fPIC' 
    --host=aarch64-unknown-nto-qnx7.0.0  # or x86_64-pc-nto-qnx7.0.0
    CC=aarch64-unknown-nto-qnx7.0.0-gcc 
    CXX=aarch64-unknown-nto-qnx7.0.0-g++ 
    --prefix='path-to-install/protobuf' 
    --with-protoc='path-to-local-installed/protobuf/bin/protoc' 
    CPPFLAGS='-D_XOPEN_SOURCE=500'

make
make install

1