Simple manual oscam CROSSCOMPILE for sh4
Well in this simple little manual where we will try and compile oscam for sh4 architecture, for example for receivers: QBoxHD GOLDEN MEDIA SPARK / TRIPLEX IPBOX AMIKO fulan GI etc .. in an easy manner under ubuntu 12.04, being necessary, download first place: toolchains ----> What have prepared adding new libraries MAKEFILE.LOCAL ---> that I have prepared for you find it easier then compile toolchains DOWNLOAD FULL SH4
DOWNLOAD MAKEFILE.LOCAL Then carry stuff will install necessary for the compilation in ubuntu, so we provide the terminal console and put:
Well then and we would have everything you need, now let's see the steps: 1 The toolchains we downloaded unzip it in / home / user we have on ubuntu, in my case / home / gogy 2 We choose the folder on pc where we will oscam put files that we will compile, in my case / usr / local / bin / full 3rd Open the terminal console and put:
4th Below we:
5th Below we:
And we see that we are compiling download the latest version of oscam files: 6 In the pc in the / usr / local / bin / full us there will be created a folder called oscam-svn containing the files to compile oscam, well because now we give permissions to that folder, so we put the console terminal:
Below unzip 7th Makefile.local in oscam-svn folder we think it was. 8 Below we give permissions to the file Makefile.local
9th Open with getedit ubuntu (text editor) the file and see Makefile.local:
i386-pc-linux: simplei386-pc-linux-debug: debug
i386-pc-freebsd: Simple
hppa1.1-hp-hpux10.20: Simple
alpha-dec-osf5.1: Simple
linux: Simple
freebsd: Simple
tuxbox: cross-powerpc-linux-tuxbox
tripledragon: cross-powerpc-405-linux
win: cross-i386-pc-cygwin
cygwin: i386-pc-cygwin
macosx: macosx-native
linux-pcsc: i386-pc-linux-pcsc
## ## GOGY CHANGE FOR YOUR USER UBUNTU AND WHERE CAMBIR CONF_DIR wish that OSCAM READ THE CONFIGURATION FILES ###################
cross-sh4-linux-pcsc:
$ (MAKE ) --no-print-directory \
CROSS = / home / gogy / sh4-unknown-linux-gnu / bin / sh4-unknown-linux-GNU- \
USE_LIBUSB = 1 \
USE_PCSC = 1 \
EXTRA_FLAGS = "- I / home /gogy/sh4-unknown-linux-gnu/sh4-unknown-linux-gnu/include/c++/4.3.2/ -I / home / gogy / sh4-unknown-linux-gnu / sh4-unknown-linux-gnu / sysroot / usr / include / PCSC -L / home / gogy / sh4-unknown-linux-gnu / sh4-unknown-linux-gnu / sysroot / usr / lib "\
CONF_DIR = / var / etc / oscam \
$ (MAKEFLAGS)
Display More
For change gogy for your user ubuntu
change / var / etc / oscam the direction that you please put him oscam to read configuration files in your deco. Once edited it because you keep changes to the file. 10º Below we return to the terminal console and check that we are located in / usr / local / bin / full / oscam-svn, and put:
And began the compilation of oscam: And if all goes well it will end as pictured: And that's all ...