<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="oscam手动编译Toolchains">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2010-12-28 10:00<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
oscam手动编译Toolchains


Toolchains&para;

MIPS Router / DD-WRT

 http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-uclib-0.9.28.bz2


MIPS Router / OpenWRT 

Little endian Kernel 2.4x

 http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2 

Little endian Kernel 2.6x

 http://downloads.openwrt.org/kamikaze/7.09/brcm47xx-2.6/OpenWrt-SDK-brcm47xx-2.6-for-Linux-i686.tar.bz2


MIPS Router / Fonera

 http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2


MIPS Router Fritzbox

 http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-Fritzbox-uclib-0.9.29.tar.gz


MIPSEL Dreambox 800/8000/7025

 http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz 

With SSL support:  http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_mipsel-tuxbox-linux.Dreambox.SSL.tar.bz2


PPC Dreambox 500/600/7000/7020

 http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.tar.bz2 

With SSL support:  http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_powerpc-tuxbox-linux_DreamboxPPC.SSL.tar.bz2


ARM NSLU2 UNSLUG

 http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_armv5b-softfloat-linux_Unslug.tar.gz


ARM NSLU2 OpenWRT

 http://downloads.openwrt.org/kamikaze/7.09/ixp4xx-2.6/OpenWrt-SDK-ixp4xx-2.6-for-Linux-i686.tar.bz2


COOLSTREAM

 http://www.dbox2world.selfip.com/board293-coolstream-hd1/board314-coolstream-development/8064-arm-cross-compiler-toolchain 

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.

(Cross-) compiling&para;

Linux i686 or x86_64:


Step 1: 

Make sure you have a current make (debian package: build-essential) and cmake version (&gt;= 2.6) installed. You furthermore need gcc, svn (debian package: subversion), libusb-dev and openssl (debian package: libssl-dev) installed. Consult the handbook of your linux distribution on how to install them if they are missing. Debian and Ubuntu for example uses &quot;sudo apt-get install &lt;package&gt;&quot; or &quot;sudo aptitude install &lt;package&gt;&quot;.


Step 2: 

Download source repository

svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn

Step 3: 

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 forum for similar issues. If you don't find a solution, then open a new thread there (do NOT open a ticket!).


 


Fritzbox / DD-WRT Router / Dreambox / NSLU2:


All provided toolchains will only work in a Linux-based environment.


Step 1:

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: 

Download source repository

svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn

Step 3: 

Create a build directory in oscam-svn

cd oscam-svn
mkdir build_dir
cd build_dir

Step 4 

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 

Execute the shell script

./install.sh

The output will be located in the build_dir


 

How to apply a patch to OSCam SVN&para;

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:

Example check out SVN 534

svn co -r 534 http://streamboard.gmc.to/svn/oscam/trunk oscam-svn

Step 2:


Apply the patch

cp patch.txt oscam-svn
cd oscam-svn

patch [-p0] &lt; patch.txt

</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
