Chinaunix首页 | 论坛 | 博客
  • 博客访问: 718778
  • 博文数量: 260
  • 博客积分: 7033
  • 博客等级: 少将
  • 技术积分: 2633
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 23:15
文章分类

全部博文(260)

文章存档

2012年(2)

2011年(41)

2010年(78)

2009年(139)

我的朋友

分类: LINUX

2009-05-15 22:01:44

据说scratchbox可以直接运行编译出来的arm程序,肯定是使用了qemu的原因吧。
看有介绍说maemon是基于scratchbox搭建的,而OE是比较庞大复杂的。
大致看了一下scratchbox,仅仅是提供了编译环境,并没有真正的提供各个包的依赖关系。
 
参考 在自己的帐号下安装了scratchbox2以及qemu,rootfs使用OE编译出来的。
 
 
buildroot $ cat config.sh
sb2-init my_target arm-none-eabi-gcc
 
buildroot $ ./config.sh
Info: Mapping mode not specified, using default (simple)
Using arm-none-eabi-gcc to detect target architecture:
Finished writing sb2.gcc.config
gcc configured.
sb2-init: Target architecture is 'arm'
sb2-init: Host architecture is 'i[3456]86'
Finished writing sb2.config
sb2-init: configuring libtool for this target:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Running /home/xiewei/sb2/bin/sb2-build-libtool failed
You can run this manually later, otherwise your
sb2 environment is correctly setup and ready to use
 
解决方法:
vi /home/xiewei/sb2/bin/sb2-build-libtool
在第47行最后面添加--host=arm,如下:
./configure --prefix=$HOME/.scratchbox2/$TARGET --build=$(uname -m)-unknown-linux-gnu --host=arm
阅读(2194) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-29 09:01:26

I'd like to express my appreciation for all the good information. :)