移植snappy到hi3519

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
            └── README

6 directories, 17 files

你可能感兴趣的:(开源移植)