文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>解决scratchbox不能创建新target的问题。

解决scratchbox不能创建新target的问题。

时间:2009-05-15  来源:xw_max

据说scratchbox可以直接运行编译出来的arm程序,肯定是使用了qemu的原因吧。 看有介绍说maemon是基于scratchbox搭建的,而OE是比较庞大复杂的。 大致看了一下scratchbox,仅仅是提供了编译环境,并没有真正的提供各个包的依赖关系。   参考http://cgit.freedesktop.org/sbox2/tree/README 在自己的帐号下安装了scratchbox2以及qemu,rootfs使用OE编译出来的。     xiewei@xiewei-desktop buildroot $ cat config.sh
sb2-init my_target arm-none-eabi-gcc
  xiewei@xiewei-desktop 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
相关阅读 更多 +
排行榜 更多 +
来逛水族馆

来逛水族馆

音乐节奏 下载
组合战争

组合战争

休闲益智 下载
元美汇

元美汇

购物比价 下载