Example -> for compile DM8000 Mipsel binary on x86 Linux system
1. Creating a user named test
on your system, unpacking the Toolchain, install the needed system packets example by ubuntu
1.1 Login to your x86 server
with root
1.2 create the user
test
1.3 go to homedirectory of user
test download and unpack Toolchain
Info: Files with
.tar.bz2 use
tar xfvj
-->> Now your unpacked toolchain is here
/home/test/mipsel-unknown-linux-gnu/
1.4 To see the Dialog Box, compile OScam and have support for smargo's you need to install Packages example on Ubuntu:
Code:
apt-get update
apt-get install -y htop automake make cmake cmake-curses-gui subversion libusb-dev libssl-dev libssh-dev gdb dialog g++ gcc
1.5 Install the lib for smargo
1.6 logout with the user root
2. Downloading the source repository
2.1 Login to your x86 server with the -->> user
test<<-- and download the
last source repository
svn co
http://streamboard.gmc.to/svn/oscam/trunk oscam-svn would you compile a
specific svn xxxx of OScam than you should use this
svn co
http://streamboard.gmc.to/svn/oscam/trunk oscam-svn -r xxxx -->> Now your OScam source is here
/home/test/oscam-svn/
3. Modify the OScam Modules / Add-ons for OScam binary
3.1 Add or remove the Modules of your OScam binary
Code:
cd /home/test/oscam-svn/
make config
3.2 Don't forget to save your changes
4. Create a build directory in oscam-svn and the compile script for OScam
4.1 create the build directory in oscam-svn
Code:
cd /home/test/oscam-svn/
mkdir build_dir
cd build_dir
4.2.1 create the compile script for OScam
Code:
cd /home/test/oscam-svn/build_dir/
vi install.sh
4.2.2 type only
i in the konsole(putty)
without hit the enter/return key
4.2.3 Copy this into the install.sh script
with right klick (mouse) in the konsole
Code:
#!/bin/sh
export MYPATH=$PATH
export PATH=/home/test/mipsel-unknown-linux-gnu/bin:$MYPATH
make clean
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-mipsel-tuxbox.cmake ..
make
4.2.4 hit the
ESC key on the keyboard and type this
:wq (hit enter key)
4.4 change the premissions of the script file
Code:
chmod 755 install.sh
5. Compile the OScam binary
5.1 Execute the shell script
Code:
cd /home/test/oscam-svn/build_dir/
./install.sh
-->>>The output will be located in the build_dir
6. Have fun ;)