交叉编译libcurl with openssl ,android,海思,arm

交叉编译libcurl with openssl

一openssl  交叉编译

1.安卓

setarch i386 ./config disable-async no-asm shared --cross-compile-prefix=/czx/application/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --prefix=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_android

 

生成 Makefile去掉 M32

修改

CC=$(CROSS_COMPILE)gcc --sysroot=/czx/application/android-ndk-r15c/platforms/android-14/arch-arm/
CXX=$(CROSS_COMPILE)g++ --sysroot=/czx/application/android-ndk-r15c/platforms/android-14/arch-arm/

2.海思

setarch i386 ./config disable-async no-asm shared --cross-compile-prefix=/opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/bin/arm-hisiv500-linux- --prefix=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_Hi3519

生成 Makefile去掉 M32

3.arm交叉

setarch i386 ./config disable-async no-asm shared --cross-compile-prefix=/home/czx/application/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- --prefix=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_rk_3288

二,libcurl编译

1.海思

./configure --with-ssl=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_Hi3519 --host=mipsel-linux CC=arm-hisiv500-linux-gcc --with-random=/dev/urandom --prefix=/home/czx//software_complie/curl-7.61.0/build/lib_Hi3519

2.安卓

./configure --with-ssl=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_android --host=mipsel-linux CC="/czx/application/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/czx/application/android-ndk-r15c/platforms/android-14/arch-arm/"  --with-random=/dev/urandom --prefix=/home/czx//software_complie/curl-7.61.0/build/lib_android

3.arm

./configure --with-ssl=/home/czx/software_complie/openssl-1.1.1-pre9/build/ssllib_rk_3288 --host=mipsel-linux CC=/home/czx/application/gcc-linaro-4.8-2015.06-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc --with-random=/dev/urandom --prefix=/home/czx//software_complie/curl-7.61.0/build/lib_rk_3288

 

你可能感兴趣的:(交叉编译libcurl with openssl ,android,海思,arm)