Very nice this thread. I crosscompiled oscam for mipsel OE2.0 successfully by using this simplebuild script. But can not build oscam for openpli. The error information:
+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 10062 target: -ssl-libusb-pcsc
| Tools:
| CROSS = /opt/simplebuild/toolchains/openpli40/bin/mipsel-openpli40-linux-gnu-
| CC = /opt/simplebuild/toolchains/openpli40/bin/mipsel-openpli40-linux-gnu-gcc
| Settings:
| CONF_DIR = /etc/tuxbox/config
| CC_OPTS = -Os -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -w
| CFLAGS = -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC
| LDFLAGS = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -Wl,-rpath,/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/opt/simplebuild/toolchains/openpli40/mipsel-openpli40-linux-gnu/sysroot/usr/lib
| LIBS = -lssl -lcrypto -lusb-1.0 -lrt -lpcsclite -lpthread -ldl -lrt
| UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_PCSC=1
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL HAVE_DVBAPI I*****_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX
| Protocols: CAMD33 CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP
| Readers : NAGRA I***** CONAX CRYPTOWORKS SECA VIACCESS ********** DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER SMARTREADER PCSCREADER
| Compiler :
| Binary : ../archiv/oscam-svn10062-openpli40-webif-ssl-libusb-pcsc
+-------------------------------------------------------------------------------
HOSTCC webif/pages_gen
GEN webif/pages.c
GEN Compressed 372908 template bytes into 156847 bytes. 216061 saved bytes (57.94%).
/opt/simplebuild/toolchains/openpli40/bin/mipsel-openpli40-linux-gnu-gcc: 1: /opt/simplebuild/toolchains/openpli40/bin/mipsel-openpli40-linux-gnu-gcc: Syntax error: "(" unexpected
Makefile:363: recipe for target 'build/-ssl-libusb-pcsc/cscrypt/des.o' failed
make[1]: *** [build/-ssl-libusb-pcsc/cscrypt/des.o] Error 2
Makefile:316: recipe for target 'all' failed
make: *** [all] Error 2
- - - Updated - - -
The problem is solved. The toolchain of openpli40 is for 64 bit CPU, so install a X86-64 ubuntu system and use this simplebuild can crosscompile the oscam for pli.