How to compile OScam to Amiko A4 Combo

There are 21 replies in this Thread which was already clicked 5,422 times. The last Post () by samur.

  • Try this method.

    How to compile oscam emu for android.pdf


    Here is the OSCam Emu compiled with this method (tested on KII Pro with S905 chip).

    oscam-1.20-unstable_svn-11398-emu-android-arm.rar


    If you want to compile OSCam Emu binary only, you may try this method also:

    How to compile latest oscam emu binary for anroid.pdf


    And here is the OSCam Emu binary compiled with this method:

    Oscam Emu 11399 for Android.rar

    Hello,


    Thank you very match , i will try these procedures;


    ;

  • # Linux 64 bit #

    # Packages required: dialog subversion gcc make zip #

    Code
    sudo apt-get install dialog subversion gcc make zip

    # Download Android NDK. #

    Code
    wget https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip

    # Unzip the NDK. #

    Code
    unzip android-ndk-r21b-linux-x86_64.zip

    # Export Android NDK. #

    Code
    export ANDROID_NDK=$(pwd)/android-ndk-r21b
    export PATH=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH

    # Download the latest SVN from Oscam/trunk repo. #

    Code
    svn co https://svn.streamboard.tv/oscam/trunk oscam-svn

    # Go to oscam-svn directory. #

    Code
    cd oscam-svn

    # Add the Android patch. # android.patch.zip

    Code
    patch -p0 <../android.patch

    # Start interactive configuration. #

    Code
    ./config.sh --gui

    # Disable CLOCKFIX. (no librt), READER_NAGRA_MERLIN (no libcrypto) #

    Code
    ./config.sh --disable CLOCKFIX READER_NAGRA_MERLIN

    # Cross Compile OSCam with Android NDK. #

    Code
    make LIB_RT= \
        LIB_PTHREAD= \
        STRIP=arm-linux-androideabi-strip \
        CC="clang --target=armv7a-linux-androideabi19 -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"

    # Add the emu patch and libcrypto # sysroot.zip

    Code
    wget https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch 
    patch -p0 < oscam-emu.patch 

    # Start interactive configuration. #

    Code
    ./config.sh --gui

    # Disable CLOCKFIX. (no librt) #

    Code
    ./config.sh --disable CLOCKFIX

    # Cross Compile OSCam-emu with Android NDK. #

    Code
    make LIB_RT= \
        LIB_PTHREAD= \
        STRIP=arm-linux-androideabi-strip \
        USE_LIBCRYPTO=1 \
        CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"
  • Hello,

    I will test your tuto and report the result .

    thanks

    ;

  • i got following error



    You have selected the following components:


  • now again error


  • Hello,

    fegol ,the tuto works 100% ,i have just a little problem "How to add a library(stapi_lib) to the command line:

    Code
    make LIB_RT= \    LIB_PTHREAD= \    STRIP=arm-linux-androideabi-strip \    USE_LIBCRYPTO=1 \    CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"

    How to select the folder where locate the "stapi_lib.a" or "libwi.a"?

    thanks

    ;



  • Code
    make USE_STAPI=1 STAPI_LIB="-L../stapi -lwi" \
        LIB_RT= \
        LIB_PTHREAD= \
        STRIP=arm-linux-androideabi-strip \
        USE_LIBCRYPTO=1 \
        CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"
  • the sysroot.zip file contains a script to build openssl and libusb


    Code
    make USE_LIBCRYPTO=1 \
        USE_LIBUSB=1 LIBUSB_LIB="../sysroot/lib/libusb-1.0.a" LIBUSB_CFLAGS="-I../sysroot/include/libusb-1.0" EXTRA_CFLAGS="-DWITH_LIBUSB" EXTRA_LIBS="-llog" \
        USE_UTF8=1 \
        CONF_DIR="/data/plugin/oscam" \
        USE_STAPI=1 STAPI_LIB="-L../stapi -lwi" \
        LIB_RT= \
        LIB_PTHREAD= \
        STRIP=arm-linux-androideabi-strip \
        CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"
  • kaleem@kaleem-Inspiron-5567:~/oscam-svn$ patch -p0 <../android.patch.zip

    bash: ../android.patch.zip: No such file or directory

    i get this error

    if i skin this step then i get

    make: *** [Makefile:377: all] Error 2

    after below commands

    make LIB_RT= \

    LIB_PTHREAD= \

    STRIP=arm-linux-androideabi-strip \

    USE_LIBCRYPTO=1 \

    CC="clang --target=armv7a-linux-androideabi19 -I../sysroot/include -L../sysroot/lib -fpic -fno-addrsig -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument"




    Please suggest what to do

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!