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