How to compile your own boblight binarys directly from source

注:crosstool-ng要求不能在root模式下操作

sudo  apt-get  install  gawk
sudo  apt-get  install  libtool
sudo  apt-get  install  texinfo
tar  jxfv crosstool-ng-1.19.0. tar .bz2
mkdir  -p ~ /cross/src
cd  crosstool-ng-1.19.0
$  . /configure  --prefix= /home/(user name)/cross
make
make  install
cd  ~ /cross/bin
$ wget http: //archlinuxarm .org /mirror/development/ct-ng/xtools-dotconfig-v5  -O .config
$ . /ct-ng  build

失败
自己下载isl-0.12.1.tar.gz、cloog-0.18.1.tar.gz、gcc-4.8.2.tar.bz2放在~/cross/src下,并把系统下的删掉并删掉.build
下载网址:

http: //isl.gforge.inria.fr/isl-0.12.1.tar.gz
 
http: //ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 
 
http: //www.bastoul.net/cloog/pages/download/cloog-0.18.1.tar.gz
再次执行
$ ./ct-ng build即可






What we need:

  • A Debian system like Ubuntu, Best choice will be Ubuntu.
  • Crosstool NG to make your own toolchain to build mipsel binary’s – http://crosstool-ng.org/
  • The boblight for enigma2 source (we will download this later)

1. Prepare the directory’s

Open your terminal in Ubuntu and type:

 
 
  1. To switch to root user: sudo su
 
 
  1. mkdir $HOME/src
  2. mkdir $HOME/compiled_boblight

2. Install all needed essentials to build our toolchain.

 
 
  1. apt-get update
  2.  
  3. apt-get install autoconf automake libtool libexpat1-dev libncurses5-dev bison flex patch curl cvs texinfo build-essential git gawk python-dev gperf mercurial

3. Build the toolchain

 
 
  1. sudo hg clone http://crosstool-ng.org/hg/crosstool-ng
  2.  
  3. cd crosstool-ng
  4. ./bootstrap
  5. ./configure --enable-local make
  6. make
  7. make install
  8.  
  9. ./ct-ng mipsel-unknown-linux-gnu

If all went ok then we can set some other options in this build.
Open the menuconfig with:

 
 
  1. ./ct-ng menuconfig

Then we will see this:
1

Open first option ->Paths and misc options

Set this 3 options to build as root user.

[*] Try features marked as EXPERIMENTAL
[*] Allow building as root user (READ HELP!)
[*] Are you sure? 

Now exit this option and go to ->Debug facilities
Turn off this debuggers. not needed.

[ ] dmalloc 
[ ] duma
[ ] gdb
[ ] ltrace 
[ ] strace

Now exit this option and go to ->Companion tools
Set this options

[*] Build some companion tools
   [*] make│
   [*] m4 
   [*] autoconf 
   [*] automake
   [*] libtool

Now exit this option and and again exit, then a messagebox will appear, select Y to save the configfile.

OK Now lets build the toolchain.

 
 
  1. ./ct-ng build

Take a beer or coffee becouse we need to wait +/- 30/45min on a fast computer. Yeah... Sure

After a while we will see this if all went ok.

 
 
  1. [INFO ] Cleaning-up the toolchain's directory
  2. [INFO ] Stripping all toolchain executables
  3. [EXTRA] Installing the populate helper
  4. [EXTRA] Installing a cross-ldd helper
  5. [EXTRA] Creating toolchain aliases
  6. [EXTRA] Removing access to the build system tools
  7. [EXTRA] Removing installed documentation
  8. [INFO ] Cleaning-up the toolchain's directory: done in 2.25s (at 23:04)
  9. [INFO ] (elapsed: 33:04.20)
  10. [INFO ] Finishing installation (may take a few seconds)...

Install libusb headers for lichtpack and ibelight support

 
 
  1. cd $HOME/x-tools/
  2. wget http://www.boblightenigma2.net/libusb.tar.gz
  3. tar xvf libusb.tar.gz

5. Set path and get boblightforenigma2 source from github page

We need to set the path where our compilers are located.

 
 
  1. export PATH=$HOME/x-tools/mipsel-unknown-linux-gnu/bin/:$PATH

Ok now get the boblight source.

 
 
  1. cd $HOME
  2. sudo git clone https://github.com/Speedy1985/boblight-for-enigma2.git
  3. cd boblight-for-enigma2

6. Build boblightd and boblight-enigma2

Notice: for most receivers we use -mhard-float but for dm800 we need use -msoft-float

 
 
  1. ./configure CC=mipsql-unknown-linux-gnu-gcc CXX=mipsel-unknown-linux-gnu-g++ --host=mipsel-unknown-linux-gnu --prefix=$HOME/compiled_boblight CPPFLAGS=-mhard-float
  2. make
  3. make install

Ok now if all went ok, you can find your compiled files in $HOME/compiled_boblight
All files in USR/LIB must be placed in /usr/lib on your receiver.
All files in USR/BIN must be placed in /usr/bin on your receiver.







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值