arm的交叉编译协议缓冲区

时间:2018-07-26 17:55:18

标签: c++ protocol-buffers cross-compiling

我是Google协议缓冲区的新手,但无法对其进行交叉编译以供arm使用。我无法使用Google找到任何针对我的问题的具体解决方案。 我正在执行的步骤:

./autogen.sh
./configure
make -s && make install
./configure --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc --prefix=/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/ --with-protoc=/usr/local/bin/protoc
make

运行make时出现错误。

google/protobuf/stubs/common.cc:55:2: error: #error "No suitable threading library available."
#error "No suitable threading library available."
 ^
Makefile:3956: recipe for target 'google/protobuf/stubs/common.lo' failed
make[2]: *** [google/protobuf/stubs/common.lo] Error 1
make[2]: Leaving directory '/home/protobuf/protobuf/src'
Makefile:1544: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/protobuf/protobuf'
Makefile:1451: recipe for target 'all' failed
make: *** [all] Error 2

任何帮助将不胜感激。

0 个答案:

没有答案