海思cv500交叉编译openssl curl静态库

工具链:arm-himix200-linux-

 

 

1.下载openssl源码:   http://distfiles.macports.org/openssl/
./config --prefix=/home/mem2nd/code/lc/libQiNiu/openssl/build  no-shared  no-asm  

 vim Makeifle
修改:CROSS_COMPILE=arm-himix200-linux-g++
删除:-m64
make -j8
make install

2.下载curl源码:    https://curl.haxx.se/download.html
CPPFLAGS="-I/home/mem2nd/code/lc/libQiNiu/openssl/build/include  -I/home/mem2nd/code/lc/libQiNiu/openssl/build/include" LDFLAGS="-L/home/mem2nd/code/lc/libQiNiu/openssl/build/lib" LIBS="-ldl" ./configure --host=arm-linux  CC=arm-himix200-linux-gcc CXX=arm-himix200-linux-g++ --with-ssl  --enable-static --disable-dict --disable-ftp --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy --disable-rtsp --disable-smtp --disable-telnet --disable-tftp --disable-zlib --without-ca-bundle --without-gnutls --without-libidn --without-librtmp --without-libssh2 --without-nss  --without-zlib --prefix=/home/mem2nd/code/lc/libQiNiu/curl/build
make -j8
make install

 

你可能感兴趣的:(随笔)