Build your own linino system 编译你自己的linino系统
懒癌犯了,先简单写过程,之后有时间再补上每一步的理由吧。对着来一遍,有bug请留言,我会尝试回答。(づ ̄ 3 ̄)づ
——————————————————————————————————————————————————————————
Ubuntu14.04下编译过程:
Install Ubuntu with USB
1. download UltraISO
2. download Ubuntu 14.04.iso
3. Using UltraISO, make USB boot for Ubuntu
Compile source code on Ubuntu
1.
apt-get update && apt-get upgrade
2.
apt-get install git subversion build-essential python gawk unzip libncurses5-dev libz-dev fastjar asciidoc flex libgtk2.0-dev intltool perl-modules rsync ruby unzip wget gettext xsltproc tex4ht texlive-lang-french
3.
apt-get install python 2.6-dev
4.
git clone https://github.com/linino/linino_distro.git -b lininoIO
5.
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
6.
$ make deflinino $ make tools/install V=99 $ make toolchain/install V=99
报错了大哥:
(1) cannot find allljoyn(我build的那几天官网都挂了)
solution: add alljoyn-14.12.00a-src.tar.gz to /linino_distro/dl
add alljoyn-js-15.04.tar.gz to /linino_distro/dl
7.
make menuconfig
8.
make V=99
(友情提示:第一次make V=99,视网速,大概至少要跑5个小时,玩儿去吧~)
期间会各种报错,缺包缺库,对着下就是了。
有一个很难解决的bug视情况服用。
(2) cannot find slang2 -lslang -ltermcap ...
solution: (fail!!!)
cd /linino_distro/package/feeds/packages/slang2
gedit Makefile
change $INCLUD_DIR$/package.mk --> /linino_distro/build_dir/target-mips_r2_uClibc-0.9.33.2/pv-1.2.0/autoconf/make/package.mk
然后就不断的循环往复,反正我是搞了两天没解决:
Loop(make V=99) { cannot find XXX search XXX get dir change the Makefile related to XXX change $INCLUDE_DIR$/XXX ---> /dir/XXX }
于是我换了操作系统= =、
——————————————————————————————————————————————————————————————————————————
Debian 8下编译过程:
InstallDebian with USB
1. download UltraISO
2. download debian8.iso
3. Using UltraISO, make USB boot for Debian
Compile source code on Debian
前6步同上,第六步开始报错:
(1) cannot find allljoyn
solution: add alljoyn-14.12.00a-src.tar.gz to /linino_distro/dl
add alljoyn-js-15.04.tar.gz to /linino_distro/dl
(2) cannot find key.h
solution: download 001-Makefile_usr_bash.patch
and copy it to /linino_distro/feeds/packages/utils/input_utils/patches/
后两步同上。
(友情提示:不要尝试将Ubuntu之前编译之时下的包直接服用,bug会无休无止的,还是再安静的等个好多好多小时吧)
以上,下期再会,么么扎~