移植snappy到hi3519

来源:互联网 发布:unity开发3d麻将源码 编辑:程序博客网 时间:2024/06/08 04:34

1.编译环境

  • Ubuntu16.04 + arm-hisiv500-linux-
  • snappy-1.1.4下载地址:https://github.com/google/snappy/releases

2.移植到3519

1)编译步骤:

  • 生成配置文件:autoconf.sh
  • 配置:./configure --build=i686-pc-linux --host=arm-hisiv500-linux CC=arm-hisiv500-linux-gcc CXX=arm-hisiv500-linux-g++ --prefix=/home/shunzhi/software/snappy/snappy-1.1.4/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)移植结果:

shunzhi@ubuntu:~/software/snappy/snappy-1.1.4/install$ tree.├── include│   ├── snappy-c.h│   ├── snappy.h│   ├── snappy-sinksource.h│   └── snappy-stubs-public.h├── lib│   ├── libsnappy.a│   ├── libsnappy.la│   ├── libsnappy.so -> libsnappy.so.1.3.1│   ├── libsnappy.so.1 -> libsnappy.so.1.3.1│   ├── libsnappy.so.1.3.1│   └── pkgconfig│       └── snappy.pc└── share    └── doc        └── snappy            ├── ChangeLog            ├── COPYING            ├── format_description.txt            ├── framing_format.txt            ├── INSTALL            ├── NEWS            └── README6 directories, 17 files
0 0
原创粉丝点击