我们尝试使用 ./configure 命令进行配置。错误就像不支持 c++11 编译器。我们正在遵循一些博客中提到的步骤。我们想知道是否还有其他具体步骤?
答案1
./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