交叉编译libcurl
./configure --with-ssl=/home/zx/zxapp/openssl-1.1.0l/output --without-zlib --enable-shared --enable-static --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc --prefix=$PWD/build
交叉编译openssl
./config no-asm shared -fPIC --prefix=/home/zx/zxapp/openssl-1.1.0l/output --openssldir=/home/zx/zxapp/openssl-1.1.0l/output -Wl,-rpath,/home/zx/zxapp/openssl-1.1.0l/output/lib
修改Makefile,去掉-m64 修改CROSS_COMPILE
make
make install
交叉编译libosip
./configure --prefix=$PWD/build --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf --enable-shared --enable-static
make
make install
交叉编译libeXosip
./configure --prefix=$PWD/build --host=arm-linux-gnueabihf --disable-tools --disable-trace --enable-openssl --enable-static --enable-shared CFLAGS='-I/home/zx/zxapp/GB28181-Server/3rd_party/libosip2-5.2.0/build/include -I/home/zx/zxapp/openssl-1.1.0l/output/include' LDFLAGS='-L/home/zx/zxapp/GB28181-Server/3rd_party/libosip2-5.2.0/build/lib -L/home/zx/zxapp/openssl-1.1.0l/output/lib/' LIBS='-lssl -lcrypto'