移植protobuf到hi3519
来源:互联网 发布:加内特巅峰数据 编辑:程序博客网 时间:2024/06/08 17:23
1.编译环境
- Ubuntu16.04 + arm-hisiv500-linux-
- protobuf3.20下载地址:https://github.com/google/protobuf/tags
2.移植到3519
1)编译步骤:
- 生成配置文件:
autoconf.sh
- 配置:
./configure --build=i686-pc-linux --host=arm-hisiv500-linux CC=arm-hisiv500-linux-gcc CXX=arm-hisiv500-linux-g++ --with-protoc=../../protobuf/protobuf-3.2.0/src/protoc --prefix=/home/shunzhi/software/protobuf/hi_proto/protobuf-3.2.0/install
- 编译:
make
- 检测:
make check
# 检测会出现错误,不用管他( If “make check” fails, you can still install, but it is likely that some features of this library will not work correctly on your system. Proceed at your own risk.) - 安装:
make install
2)配置参数解释
- –build:指明执行编译的平台为64位x86的Linux平台。
- –host :指明运行的平台。
- CC :gcc交叉编译工具。
- CXX :c++交叉编译工具。
- –prefix:安装目录。
- –with-protoc:指明protoc的查找路径,当我们在pc机上进行交叉编译时,src目录下protoc可能会无法执行,所以我们必须要编译一个protoc可执行文件,将其拷贝到src目录或者执行用这个配置参数来指明protoc的路径;上述参数就是指明protoc路径为我之前在pc编译protobuf时生成的protoc。
1 0
- 移植protobuf到hi3519
- 移植gflags到hi3519
- 移植lmdb到hi3519
- 移植leveldb到hi3519
- 移植snappy到hi3519
- 移植hdf5到hi3519
- 移植boost到hi3519
- 移植OpenBLAS到hi3519
- 移植caffe到hi3519
- 安装protobuf到Ubuntu14.04
- Hi3519使用·记录
- hi3519 编译问题
- hi3519 编译问题
- hi3519开发流程
- hi3519模组测试
- Protobuf,从入门到穿拖鞋
- protobuf
- ProtoBuf
- PAT 1067 乙等 (试密码) c++ 版本
- H2.64中I帧和IDR帧的区别(转)
- Eclipse for javaEE创建Web应用,并且转换为meven项目
- 面向对象三剑客
- 对FMDB进行的二次封装
- 移植protobuf到hi3519
- Java学习之Random类
- Spring通过注解配置bean
- hive 表装载数据详解
- 利用 Flask+Redis 维护 IP 代理池
- DB2跨库查询表数据
- CMOS 摄像头的Skipping 和 Binning 模式
- H.264视频码流解析
- poj3292 (H数)筛法