Chinaunix首页 | 论坛 | 博客
  • 博客访问: 806235
  • 博文数量: 244
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 2420
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-29 09:07
文章分类

全部博文(244)

文章存档

2011年(4)

2010年(3)

2009年(72)

2008年(119)

2007年(46)

我的朋友

分类: LINUX

2007-11-08 21:27:53

scratchbox官方网站

安装scratchbox
ScratchBox组件
必选:
scratchbox-core : scratchbox环境, 常用工具及本地编译器.
scratchbox-libs   : scratchbox-core, devkits和toolchains所需的库.
可选:
scratchbox-devkit-debian     : 用于Debian包开发的环境和工具.
scratchbox-devkit-doctools  : 文档生成工具
scratchbox-devkit-perl          : 额外的perl模块.

工具链(可选)
scratchbox-toolchain-arm-gcc3.3-glibc2.3
scratchbox-toolchain-i686-gcc3.3-glibc2.3
scratchbox-toolchain-arm-gcc3.2-uclibc20040229
scratchbox-toolchain-i386-gcc3.2-uclibc20040229
 
可以两种方式安装scratchbox
1.ubuntu下通过sudo apt-get
2.下载工具包
以下主要介绍通过使用tarball来安装scratchbox并且添加forgien toolchain工具链
#下载必要的组建
#到本地目录:
SBOX_SOURCE=/media/disk/bbk/linux/scratchbox/scratchbox-install
CROSS_TOOLCHAIN=arm-linux-gcc-3.4.4-glibc-2.3.5
#解压缩组件到根目录
tar zxvf  $SBOX_SOURCE/scratchbox-core-1.0.8-i386.tar.gz  -C /
tar zxvf  $SBOX_SOURCE/scratchbox-devkit-perl-1.0.4-i386.tar.gz  -C /
tar zxvf  $SBOX_SOURCE/scratchbox-libs-1.0.8-i386.tar.gz  -C /
tar zxvf  $SBOX_SOURCE/scratchbox-devkit-cputransp-1.0.2-i386.tar.gz -C /
拷贝工具链
cp  /opt/../arm-linux-gcc-3.4.4-glibc-2.3.5  /scratchbox/compilers/ -R
sudo apt-get install darcs
cd /scratchbox
darcs get --set-scripts-executable
 
cd /scratchbox/compilers/$CROSS_TOOLCHAIN
#下面的语句必须在/scratchbox/compilers/$CROSS_TOOLCHAIN下面执行
/scratchbox/sb-toolchain-extras/confhelper/create_toolchain_conf.py
/scratchbox/sb-toolchain-extras/confhelper/create_toolchain_conf.py>/scratchbox/sb-toolchain-extras/meta/alien-tc/gcc-3.4.4-2.3.5.conf
/scratchbox/sb-toolchain-extras/confhelper/create_toolchain_conf.py>/scratchbox/sb-toolchain-extras/meta/alien-tc/gcc-3.4.4-2.3.5.conf
#如果有问题可能需要对:scratchbox/sb-toolchain-extras/meta/alien-tc/gcc-3.4.4-2.3.5.conf进行编辑
cd /scratchbox/sb-toolchain-extras/
make CONFIG=meta/alien-tc/gcc-3.4.4-2.3.5.conf -C meta/alien-tc all-sums
make CONFIG=meta/alien-tc/gcc-3.4.4-2.3.5.conf -C meta/alien-tc
在编译的过程中可能需要一些基本的工具dh_clean fakeroot等
sudo apt-get install fakeroot
sudo apt-get install debhelper
sudo apt-get install automake
sudo apt-get install autoconf
如果gdb编译有问题可以暂时屏蔽:
vi /scratchbox/sb-toolchain-extras/meta/device_tools/Makefile)注释掉build_gdb和build_gdbserver即可.
 
阅读(1567) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~