免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4284 | 回复: 0
打印 上一主题 下一主题

在linux上编译ARM版本 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-10 15:00 |只看该作者 |倒序浏览
环境:
MAC10。5。5
IPHONE SDK2。1

The first thing to do is to ensure that you have the cross-toolchain
(cross compiler, cross linker, cross binutils, cross libc) installed.
In the majority case, you cannot use the default gcc in your Linux
development PC (assuming you are using an x86-based PC) because it
doesn't support ARM9 architecture by default. I assume that you have
the cross-toolchain installed correctly, and the toolchain
installation directory is /opt/linux/arm9-linux/, then you can
cross-compile using the autoconf configure script. If you haven't try
it, give it a try. What you have to invoke in the Pjsip source code
root directory is something similar to this (I don't know for sure the
"triplet" of your cross-toochain, so adapt the parameters as needed):

./configure CC=arm-linux-gnu-gcc --host=arm-linux-gnu
--build=i686-linux --with-li
b-path=/opt/linux/arm9-linux/lib LDFLAGS='-Wl,-elf2flt' CFLAGS=-O2
make dep && make

linux上默认的GCC不支持ARM架构?
ARM是i386的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP