c++ - 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
任何帮助将非常感激。
解决方案
推荐阅读
- javascript - FlatList exceeds its container with its content: How to make FlatList with fixed height
- python - 如何在拥抱脸中推动使用 pytorch 训练的 NLP 模型?
- node.js - 节点 mssql 批量插入作为事务的一部分
- installation - 如何从单个 MSIX 创建相关集?
- coordinate-transformation - 虚拟仿真环境CARLA与真实世界坐标之间的坐标转换
- python - Python - 不在函数中打印输出
- java - 我该如何解决这个 android studio 模拟器错误
- java - 循环获取资源
- git - 您可以使用“checkout scm”来获取 git 提交而不实际签出存储库吗?
- powershell - Powershell读取文本文件等到找到然后继续