当配置好scratchbox环境后,我们就可以在其中编译需要的软件包了。
下面以busbox为例,描述一下其编译的详细流程:
环境:
Ubuntu9.04
scratchbox
ncurser5.6
busybox-1.10.2
步骤:
1.在ubuntu9.04系统上安装scratchbox, 详细过程见
1.由于busybox 在make menuconf 时需要依赖ncurser,所以必须先编译安装ncurser5.6
2.编译busybox需要注意busybox的版本,在以上环境中,busybox-1.10.2的版本可以顺利编译通过
make defconf
make menuconf
make
如果在menu configure没有对安装路径做修改,那么会在busyboxXXX目录,生成_Install目录
copy该目录下的所有内容到scratchbox target目录下,如:/scratchbox/user/your_name/targets/your_project