首页 > 解决方案 > arm的交叉编译协议缓冲区

问题描述

我是谷歌协议缓冲区的新手,我在为 arm 交叉编译它时遇到了麻烦。我无法使用谷歌找到任何具体的解决方案来解决我的问题。我正在遵循的步骤:

./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

任何帮助将非常感激。

标签: c++protocol-bufferscross-compiling

解决方案


推荐阅读