Hy all,please help with tutorial how to compile oscam for this reciver android.
Tanks.
Hy all,please help with tutorial how to compile oscam for this reciver android.
Tanks.
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).
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:
Tanks! Wery uselful,I will prove.
Hy,this oscam `Emu binary only` work only with newcamd line,not by cccam client and readers.
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).
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:
Hello,
Thank you very match , i will try these procedures;
;
# Linux 64 bit #
# Packages required: dialog subversion gcc make zip #
# Download Android NDK. #
# Unzip the NDK. #
# Export Android NDK. #
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. #
# Go to oscam-svn directory. #
# Add the Android patch. # android.patch.zip
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt), READER_NAGRA_MERLIN (no libcrypto) #
# Cross Compile OSCam with Android NDK. #
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
wget https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch
patch -p0 < oscam-emu.patch
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt) #
# Cross Compile OSCam-emu with Android NDK. #
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"
Display More# Linux 64 bit #
# Packages required: dialog subversion gcc make zip #
# Download Android NDK. #
# Unzip the NDK. #
# Export Android NDK. #
Codeexport 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. #
# Go to oscam-svn directory. #
# Add the Android patch. # android.patch.zip
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt), READER_NAGRA_MERLIN (no libcrypto) #
# Cross Compile OSCam with Android NDK. #
Codemake 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
Codewget https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch patch -p0 < oscam-emu.patch
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt) #
# Cross Compile OSCam-emu with Android NDK. #
Codemake 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:
Add-ons:
WEBIF : on
WEBIF_LIVELOG : on
WEBIF_JQUERY : on
TOUCH : off
WITH_SSL : off
HAVE_DVBAPI : on
WITH_NEUTRINO : off
READ_SDT_CHARSETS : on
IRDETO_GUESSING : on
CS_ANTICASC : off
WITH_DEBUG : on
MODULE_MONITOR : on
WITH_LB : on
CS_CACHEEX : off
CW_CYCLE_CHECK : off
LCDSUPPORT : off
LEDSUPPORT : off
CLOCKFIX : off
IPV6SUPPORT : off
WITH_EMU : on
WITH_SOFTCAM : off
Protocols:
MODULE_CAMD33 : off
MODULE_CAMD35 : on
MODULE_CAMD35_TCP : on
MODULE_NEWCAMD : on
MODULE_CCCAM : on
MODULE_CCCSHARE : on
MODULE_GBOX : off
MODULE_RADEGAST : off
MODULE_SCAM : on
MODULE_SERIAL : off
MODULE_CONSTCW : off
MODULE_PANDORA : off
MODULE_GHTTP : off
Readers:
READER_NAGRA : on
READER_NAGRA_MERLIN : on
READER_IRDETO : on
READER_CONAX : on
READER_CRYPTOWORKS : on
READER_SECA : on
READER_VIACCESS : on
READER_VIDEOGUARD : on
READER_DRE : on
READER_TONGFANG : on
READER_BULCRYPT : on
READER_GRIFFIN : on
READER_DGCRYPT : on
Card readers:
CARDREADER_PHOENIX : on
CARDREADER_INTERNAL : on
CARDREADER_SC8IN1 : off
CARDREADER_MP35 : off
CARDREADER_SMARGO : off
CARDREADER_DB2COM : off
CARDREADER_STAPI : off
CARDREADER_STAPI5 : off
CARDREADER_STINGER : on
CARDREADER_DRECAS : off
root@test:~/oscam-svn# ./config.sh --disable CLOCKFIX
root@test:~/oscam-svn# 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"
+-------------------------------------------------------------------------------
| OSCam ver: 1.20_svn rev: 11581-798 target: armv7a-unknown-linux-android19
| Tools:
| CROSS =
| 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
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -fexpensive-optimizations -DWITH_LIBCRYPTO=1
| LDFLAGS = -Wl,--gc-sections -DWITH_LIBCRYPTO=1
| LIBS = -lcrypto -lm -ldl
| UseFlags = USE_LIBCRYPTO=1
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING WITH_DEBUG MODULE_MONITOR WITH_LB WITH_EMU
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE SCAM
| Readers : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs : PHOENIX INTERNAL STINGER
| Compiler : Android (6317467 based on r365631c1) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project e0caee08e5f09b374a27a676d04978c81fcb1928) (based on LLVM 9.0.8svn)
| Config : build/armv7a-unknown-linux-android19/config.mak
| Binary : Distribution/oscam-1.20_svn11581-798-armv7a-unknown-linux-android19
+-------------------------------------------------------------------------------
HOSTCC webif/pages_gen
GEN webif/pages.c
GEN Compressed 395632 template bytes into 161974 bytes. 233658 saved bytes (59.06%).
CC cscrypt/des.c
In file included from cscrypt/des.c:136:
In file included from cscrypt/../globals.h:110:
cscrypt/../cscrypt/aes.h:2:12: fatal error: 'openssl/aes.h' file not found
# include <openssl/aes.h>
^~~~~~~~~~~~~~~
1 error generated.
Makefile:452: recipe for target 'build/armv7a-unknown-linux-android19/cscrypt/des.o' failed
make[1]: *** [build/armv7a-unknown-linux-android19/cscrypt/des.o] Error 1
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2
root@test:~/oscam-svn#
Display More
now again error
You have selected the following components:
Add-ons:
WEBIF : on
WEBIF_LIVELOG : on
WEBIF_JQUERY : on
TOUCH : off
WITH_SSL : off
HAVE_DVBAPI : on
WITH_NEUTRINO : off
READ_SDT_CHARSETS : on
IRDETO_GUESSING : on
CS_ANTICASC : off
WITH_DEBUG : on
MODULE_MONITOR : on
WITH_LB : on
CS_CACHEEX : on
CW_CYCLE_CHECK : on
LCDSUPPORT : off
LEDSUPPORT : off
CLOCKFIX : off
IPV6SUPPORT : off
WITH_EMU : on
WITH_SOFTCAM : off
Protocols:
MODULE_CAMD33 : off
MODULE_CAMD35 : on
MODULE_CAMD35_TCP : on
MODULE_NEWCAMD : on
MODULE_CCCAM : on
MODULE_CCCSHARE : on
MODULE_GBOX : off
MODULE_RADEGAST : off
MODULE_SCAM : on
MODULE_SERIAL : off
MODULE_CONSTCW : off
MODULE_PANDORA : off
MODULE_GHTTP : off
Readers:
READER_NAGRA : on
READER_NAGRA_MERLIN : on
READER_IRDETO : on
READER_CONAX : on
READER_CRYPTOWORKS : on
READER_SECA : on
READER_VIACCESS : on
READER_VIDEOGUARD : on
READER_DRE : on
READER_TONGFANG : on
READER_BULCRYPT : on
READER_GRIFFIN : on
READER_DGCRYPT : on
Card readers:
CARDREADER_PHOENIX : on
CARDREADER_INTERNAL : on
CARDREADER_SC8IN1 : off
CARDREADER_MP35 : off
CARDREADER_SMARGO : off
CARDREADER_DB2COM : off
CARDREADER_STAPI : off
CARDREADER_STAPI5 : off
CARDREADER_STINGER : on
CARDREADER_DRECAS : off
root@test:~/oscam-svn# ./config.sh --disable CLOCKFIX READER_NAGRA_MERLIN
Disable READER_NAGRA_MERLIN
root@test:~/oscam-svn# 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"
/bin/sh: 1: clang: not found
+-------------------------------------------------------------------------------
| OSCam ver: 1.20_svn rev: 11581-798 target:
| Tools:
| CROSS =
| 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
| Settings:
| CONF_DIR = /usr/local/etc
| CC_OPTS = -O2 -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -fexpensive-optimizations
| LDFLAGS = -Wl,--gc-sections
| LIBS = -lm -ldl
| UseFlags =
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK WITH_EMU
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE SCAM
| Readers : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs : PHOENIX INTERNAL STINGER
| Compiler :
| Config : build//config.mak
| Binary : Distribution/oscam-1.20_svn11581-798-
+-------------------------------------------------------------------------------
GEN webif/pages.c
GEN Compressed 416384 template bytes into 168761 bytes. 247623 saved bytes (59.47%).
/bin/sh: 1: clang: not found
make[1]: clang: Command not found
Makefile:452: recipe for target 'build//cscrypt/aes.o' failed
make[1]: *** [build//cscrypt/aes.o] Error 127
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2
Display More
Display More# Linux 64 bit #
# Packages required: dialog subversion gcc make zip #
# Download Android NDK. #
# Unzip the NDK. #
# Export Android NDK. #
Codeexport 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. #
# Go to oscam-svn directory. #
# Add the Android patch. # android.patch.zip
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt), READER_NAGRA_MERLIN (no libcrypto) #
# Cross Compile OSCam with Android NDK. #
Codemake 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
Codewget https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch patch -p0 < oscam-emu.patch
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt) #
# Cross Compile OSCam-emu with Android NDK. #
Codemake 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,
fegol ,the tuto works 100% ,i have just a little problem "How to add a library(stapi_lib) to the command line:
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
;
Display MoreDisplay More# Linux 64 bit #
# Packages required: dialog subversion gcc make zip #
# Download Android NDK. #
# Unzip the NDK. #
# Export Android NDK. #
Codeexport 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. #
# Go to oscam-svn directory. #
# Add the Android patch. # android.patch.zip
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt), READER_NAGRA_MERLIN (no libcrypto) #
# Cross Compile OSCam with Android NDK. #
Codemake 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
Codewget https://github.com/oscam-emu/oscam-emu/raw/master/oscam-emu.patch patch -p0 < oscam-emu.patch
# Start interactive configuration. #
# Disable CLOCKFIX. (no librt) #
# Cross Compile OSCam-emu with Android NDK. #
Codemake 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,
fegol ,the tuto works 100% ,i have just a little problem "How to add a library(stapi_lib) to the command line:
Codemake 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
;
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"
Display MoreHello,
mister fegol
thank you very much the problem solved;
now i need to install:
openssl-1.1.1g
lib_USB 1.0.23
PCSClite 1.9.0
;
and how can i add : USE_UTF8 ,CONF_DIR=/data/plugin/oscam to the command line ?
;
the sysroot.zip file contains a script to build openssl and libusb
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
;
Use the patch function like this:
patch -p0 <android_dvbapi.patch
;
no such file found error
Use the patch function like this:
patch -p0 <android_dvbapi.patch
;
i am new in this field can you please explain more details and commands for ncam and oscam for android7
Don’t have an account yet? Register yourself now and be a part of our community!