= Toolchains = '''MIPS Router / DD-WRT'''[[BR]] [http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-uclib-0.9.28.bz2] [[BR]] '''MIPS Router / OpenWRT '''[[BR]] Little endian Kernel 2.4x[[BR]] [http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2] [[BR]] Little endian Kernel 2.6x[[BR]] [http://downloads.openwrt.org/kamikaze/7.09/brcm47xx-2.6/OpenWrt-SDK-brcm47xx-2.6-for-Linux-i686.tar.bz2] [[BR]] '''MIPS Router / Fonera'''[[BR]] [http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2] [[BR]] '''MIPS Router Fritzbox'''[[BR]] [http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-Fritzbox-uclib-0.9.29.tar.gz] [[BR]] '''MIPSEL Dreambox 800/8000/7025'''[[BR]] [http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz] [[BR]] '''PPC Dreambox 500/600/7000/7020'''[[BR]] [http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.tar.bz2] [[BR]] '''ARM NSLU2 UNSLUG'''[[BR]] [http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_armv5b-softfloat-linux_Unslug.tar.gz] [[BR]] '''ARM NSLU2 OpenWRT'''[[BR]] [http://downloads.openwrt.org/kamikaze/7.09/ixp4xx-2.6/OpenWrt-SDK-ixp4xx-2.6-for-Linux-i686.tar.bz2] [[BR]] '''COOLSTREAM'''[[BR]] [http://www.dbox2world.selfip.com/board293-coolstream-hd1/board314-coolstream-development/8064-arm-cross-compiler-toolchain] [[BR]] For Coolstream internal reader support, you will have to copy the libary file libnxp.so (see attachment) to the sys-root/lib directory of your toolchain. [[BR]][[BR]] = (Cross-) compiling = '''Linux i686 or x86_64''': __''Step 1''__: [[BR]] Make sure you have a current make and cmake version (>= 2.6) installed. You furthermore need gcc, svn (subversion), libusb-dev and openssl (libssl-dev) installed. Consult the handbook of your linux distribution on how to install them if they are missing. __''Step 2''__: [[BR]] Download source repository {{{ svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn }}} __''Step 3''__: [[BR]] Just do {{{ cd oscam-svn mkdir build cd build cmake .. make }}} Binary output will be located in the folder where you are (oscam-svn/build). If you get any compilation errors, search our [http://streamboard.gmc.to/wbb2/portal.php forum] for similar issues. If you don't find a solution, then open a new thread there (do NOT open a ticket!). [[BR]] '''Fritzbox / DD-WRT Router / Dreambox / NSLU2''':[[BR]] All provided toolchains will only work in a Linux-based environment. __''Step 1''__:[[BR]] Before you can start to compile OSCam for any platform, you need to get the right toolchain. Copy the toolchain to your Linux-based system. cmake 2.4 or higher will be needed. __''Step 2''__: [[BR]] Download source repository {{{ svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn }}} __''Step 3''__: [[BR]] Create a build directory in oscam-svn {{{ cd oscam-svn mkdir build_dir cd build_dir }}} __''Step 4''__ [[BR]] Create a shell script in the directory build_dir vi install.sh {{{ #!/bin/sh export MYPATH=$PATH export PATH=/toolchain/ANYPLATFORM/bin:$MYPATH make clean cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-ANYPLATFORM.cmake .. make }}} chmod 755 install.sh Remember to set the toolchain path correctly. Also take a look inside the toolchain cmake script. You have to add the right compiler for your platform. __''Step 5''__ [[BR]] Execute the shell script {{{ ./install.sh }}} The output will be located in the build_dir [[BR]][[BR]] = How to apply a patch to OSCam SVN = A patch sometimes is only valid for specfic SVN version. So be carefull! First you have to check out the correct SVN version. __''Step 1:__''[[BR]] Example check out SVN 534 {{{ svn co -r 534 http://streamboard.gmc.to/svn/oscam/trunk oscam-svn }}} __''Step 2:__''[[BR]] Apply the patch {{{ cp patch.txt oscam-svn cd oscam-svn patch [-p0] < patch.txt }}}