protobuf 的交叉编译
1、可以用上一步的protobuf-c-master文件,执行一下make clean; 或者重新解压一下protobuf-c-master安装包
3、./autogen.sh
4、./configure --host=arm-linux CC=PATH/arm-none-linux-gnueabi-gcc CXX=PATH/arm-none-linux-gnueabi-g++ --disable-protoc --prefix=/usr/local/protobuf-c-arm
5、make &&make install
本文详细介绍了如何使用protobuf-c进行跨主机编译,包括清理旧构建、运行autogen.sh、配置编译选项(如指定目标架构和编译器路径),并完成make和makeinstall过程。适合对protobuf-c移植感兴趣的开发者。
8915

被折叠的 条评论
为什么被折叠?



