编译环境
Ubuntu 16.04 x86_64
ingenic X2000 编译工具链
从君正官网下载 : http://www.ingenic.com.cn/?product/id/34/lm/3.html
下载openssl源码
wget https://www.openssl.org/source/openssl-1.1.0d.tar.gz
解压源码
tar xvf openssl-1.1.0d.tar.gz
执行Configure脚本
./Configure linux-generic32 \
no-shared \
no-asm \
--prefix=/ilock/dist/ingenicx2000_openssl_1.1.0d \
--cross-compile-prefix=mips-linux-gnu-
- linux-generic32 指定目标平台类型,
- no-shared 生成静态库,如果要生成动态库,则使用
-shared
选项 - no-asm 在交叉编译过程中不使用汇编代码代码加速编译过程
- –prefix 指定安装目录
- –cross-compile-prefix 指定交叉编译器名字前缀
编译安装
make install