openssl在arm下的交叉编译
来源:互联网 发布:暴风集团域名 编辑:程序博客网 时间:2024/05/20 10:53
http://www.cnblogs.com/weifuqin530/archive/2008/11/29/1343826.html
openssl在arm下的交叉编译
./Configure linux-elf-arm -DB_ENDIAN linux:' arm-linux-gcc' shared --prefix=/usr/local/openssl
2.
值得注意的是,在arm交叉编译环境中,引用库的顺序为:-lssl -lcrypto,如果为 -lcrypto -lssl就会编译错误
第二种中也可以直接使用传入参数的方法生成Makefile文件:
CC=arm-none-linux-gnueabi-gcc ./config no-asm shared --prefix=/usr/local/openssl,就可直接使用make命令进行编译,使用make install命令安装。
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
http://hi.baidu.com/jinguich/item/8f4dadf170e5891ad7ff8cef
openssl在arm下的交叉编译; 如何在configure时,将编译参数传入,改变默认的编译器gcc成arm-linux-gcc
1.
./Configure linux-elf-arm -DB_ENDIAN linux:' arm-linux-gcc' shared --prefix=/usr/local/openssl
2.make3.make install
值得注意的是,在arm交叉编译环境中,引用库的顺序为:-lssl -lcrypto,如果为 -lcrypto -lssl就会编译错误
二:openssl在arm下的交叉编译 (二)
1../config no-asm shared --prefix=/usr/local/openssl
2.修改Makefile CC=arm-none-linux-gnueabi-gccmake
3.make install
使用第一种方式编译出来的是静态链接库,第二种是动态链接库
如何在configure时,将编译参数传入,改变默认的编译器gcc成arm-linux-gcc
[jin@localhost ]$ CC=arm-linux-gcc ./configure --prefix=/usr/sbin
....................
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
....................
[jin@localhost ]$ CFLAGS=-O2 CC=arm-linux-gcc ./configure --cache-file=cache_file_0
loading cache cache_file_0
....................
checking for gcc... arm-linux-gcc
checking whether the C compiler (arm-linux-gcc -O2 ) works... yes
checking whether the C compiler (arm-linux-gcc -O2 ) is a cross-compiler... yes
checking whether we are using GNU C... yes
最好此处在加上--prefix=/usr/sbin,表示具体安装到哪里
[jin@localhost ]$ CFLAGS=-O2 CC=arm-linux-gcc ./configure --cache-file=cache_file_0 --prefix=/usr/sbin
loading cache cache_file_0
....................
checking for gcc... arm-linux-gcc
checking whether the C compiler (arm-linux-gcc -O2 ) works... yes
checking whether the C compiler (arm-linux-gcc -O2 ) is a cross-compiler... yes
checking whether we are using GNU C... yes
....................
其中,/usr/sbin是已经建立好的,已经存在的文件夹,上面这样表示编译后,
将生成的可执行文件安装拷贝到那个目录.
【办法总结】
在./configure的时候,将CC参数放入configure之前,并且要制定cache file,才能完全即时识别编译器:
CC=arm-linux-gcc ./configure --cache-file=cache_file_0
交叉编译OpenSSH
http://blog.rythdev.com/2011/12/cross_compile_openssh/
- openssl 在arm下的 交叉编译
- openssl在arm下的交叉编译
- openssl在arm下的交叉编译 -wpa_supplicant
- 交叉编译openssl arm平台
- Glib在arm-linux下的交叉编译
- php5在arm-linux下的交叉编译步骤
- linphone在ARM-Linux下的交叉编译
- ARM在codesourcery下的交叉编译链
- 在Ubuntu下安装ARM的交叉编译工具
- eclipse在windows下的arm交叉编译环境搭建
- Linux下交叉编译openssl
- 交叉编译openssl-1.0.0 for arm
- 交叉编译zlib和openssl for arm
- live555在arm linux下的交叉编译,并下载的Arm板播放H264文件
- live555在arm linux下的交叉编译,并下载的Arm板播放H264文件
- 交叉编译arm下的gdb
- 交叉编译arm下的gdb
- linux下交叉编译mingw32的openssl库
- 二叉树的镜像
- GUI系统之SurfaceFlinger(3)Android中的本地窗口FramebufferNativewindow
- POJ 1182 食物链
- Ubuntu 13.04 VPN (openvpn) 配置 和 连接不能同时访问内外网的问题
- CString彻底分析,很强悍的啊
- openssl在arm下的交叉编译
- Android OpenSLES 实现Equalizer
- VS2010编译调试技巧汇总
- CString和string互相转换
- centos 重置root密码方法
- 三大WEB服务器对比分析(apache ,lighttpd,nginx)
- 切换多视图(mfc单文档程序)
- windows消息队列
- 隐藏导航栏返回按钮