据说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) |