How to compile your own boblight binarys directly from source
2014-05-11 13:35
489 查看
注:crosstool-ng要求不能在root模式下操作
失败
自己下载isl-0.12.1.tar.gz、cloog-0.18.1.tar.gz、gcc-4.8.2.tar.bz2放在~/cross/src下,并把系统下的删掉并删掉.build
下载网址:
再次执行
$ ./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:
To switch to root user: sudo su
mkdir $HOME/src
mkdir $HOME/compiled_boblight
2. Install all needed essentials to build our toolchain.
apt-get update
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
sudo hg clone http://crosstool-ng.org/hg/crosstool-ng
cd crosstool-ng
./bootstrap
./configure --enable-local make
make
make install
./ct-ng mipsel-unknown-linux-gnu
If all went ok then we can set some other options in this build.
Open the menuconfig with:
./ct-ng menuconfig
Then we will see this:
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.
./ct-ng build
Take a beer or coffee becouse we need to wait +/- 30/45min on a fast computer.
After a while we will see this if all went ok.
aca8
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[EXTRA] Installing the populate helper
[EXTRA] Installing a cross-ldd helper
[EXTRA] Creating toolchain aliases
[EXTRA] Removing access to the build system tools
[EXTRA] Removing installed documentation
[INFO ] Cleaning-up the toolchain's directory: done in 2.25s (at 23:04)
[INFO ] (elapsed: 33:04.20)
[INFO ] Finishing installation (may take a few seconds)...
Install libusb headers for lichtpack and ibelight support
cd $HOME/x-tools/
wget http://www.boblightenigma2.net/libusb.tar.gz 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.
export PATH=$HOME/x-tools/mipsel-unknown-linux-gnu/bin/:$PATH
Ok now get the boblight source.
cd $HOME
sudo git clone https://github.com/Speedy1985/boblight-for-enigma2.git
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
./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
make
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.
自己下载isl-0.12.1.tar.gz、cloog-0.18.1.tar.gz、gcc-4.8.2.tar.bz2放在~/cross/src下,并把系统下的删掉并删掉.build
下载网址:
$ ./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:
To switch to root user: sudo su
mkdir $HOME/src
mkdir $HOME/compiled_boblight
2. Install all needed essentials to build our toolchain.
apt-get update
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
sudo hg clone http://crosstool-ng.org/hg/crosstool-ng
cd crosstool-ng
./bootstrap
./configure --enable-local make
make
make install
./ct-ng mipsel-unknown-linux-gnu
If all went ok then we can set some other options in this build.
Open the menuconfig with:
./ct-ng menuconfig
Then we will see this:
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.
./ct-ng build
Take a beer or coffee becouse we need to wait +/- 30/45min on a fast computer.
After a while we will see this if all went ok.
aca8
[INFO ] Cleaning-up the toolchain's directory
[INFO ] Stripping all toolchain executables
[EXTRA] Installing the populate helper
[EXTRA] Installing a cross-ldd helper
[EXTRA] Creating toolchain aliases
[EXTRA] Removing access to the build system tools
[EXTRA] Removing installed documentation
[INFO ] Cleaning-up the toolchain's directory: done in 2.25s (at 23:04)
[INFO ] (elapsed: 33:04.20)
[INFO ] Finishing installation (may take a few seconds)...
Install libusb headers for lichtpack and ibelight support
cd $HOME/x-tools/
wget http://www.boblightenigma2.net/libusb.tar.gz 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.
export PATH=$HOME/x-tools/mipsel-unknown-linux-gnu/bin/:$PATH
Ok now get the boblight source.
cd $HOME
sudo git clone https://github.com/Speedy1985/boblight-for-enigma2.git
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
./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
make
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.
相关文章推荐
- DIY BROADCAST : How to build your own Internet TV Channel with Open-Source & other goodies
- How to Build Your Own Blockchain Part 2 — Syncing Chains From Different Nodes
- How to Compile Qt from Source Code on Linux
- How to distribute your own Android library through jCenter and Maven Central from Android Studio
- How To Compile Httpd From Source
- Tips from Manish Sharma about how to writing your own FIX engine
- How to Compile Linux Kernel from Source to Build Custom Kernel
- How to distribute your own Android library through jCenter and Maven Central from Android Studio
- How to play XM Music From your own code
- How to write your own custom Form
- HOWTO: How to Provide Your Own DllMain in an MFC Regular DLL
- c++ how to make your own class a valid key type for std::map?
- How to create your own custom 404 error page and handle redirect in SharePoint
- How to eliminate the compile error "conversion from 'double ' to 'float ', possible loss of data"
- How to create your own custom 404 error page and handle redirect in SharePoint 2007 (MOSS)?
- How To Create Your Own Smarty Function
- How to create HBITMAP from WICBitmapSource
- example how to build RPM package from source package
- how to get toolchain from android source -make windows sdk
- [GUIDE] How to make a nandroid backup directly to your computer without using sdcard