user@Mint12 ~/oscam-svn/build_dir $ sudo sh install.sh
make: *** No rule to make target `clean'. Stop.
-- The C compiler identification is unknown
-- Check for working C compiler: /home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc
-- Check for working C compiler: /home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler
"/home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc" is
not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/user/oscam-svn/build_dir/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/user/oscam-svn/build_dir/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/user/oscam-svn/build_dir/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o
/home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -o
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o -c
/home/user/oscam-svn/build_dir/CMakeFiles/CMakeTmp/testCCompiler.c
make[1]:
/home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc:
Command not found
make[1]: Leaving directory
`/home/user/oscam-svn/build_dir/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o] Error 127
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
#!/bin/sh
export MYPATH=$PATH
export PATH=/home/user/toolchains/4.1.0-uclibc-0.9.28/bin:$MYPATH
make clean
cmake -DCMAKE_TOOLCHAIN_FILE=/home/user/oscam-svn/toolchains/toolchain-mips-wrt54g.cmake ..
make
Select target (1-16)? 9
DDWRT-3.4.6:
BUILD LIBCRYPTO-0.9.8
making all in crypto...
make[1]: Entering directory `/home/user/oscam-svn/openssl-0.9.8/crypto'
( echo "#ifndef MK1MF_BUILD"; \
echo ' /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo ' #define CFLAGS "mipsel-linux-uclibc-gcc -O -fPIC"'; \
echo ' #define PLATFORM "linux-x86_64"'; \
echo " #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
mipsel-linux-uclibc-gcc -I. -I.. -I../include -O -fPIC -c -o cryptlib.o cryptlib.c
make[1]: mipsel-linux-uclibc-gcc: Command not found
make[1]: *** [cryptlib.o] Error 127
make[1]: Leaving directory `/home/user/oscam-svn/openssl-0.9.8/crypto'
make: *** [build_crypto] Error 1
making all in crypto...
make[1]: Entering directory `/home/user/oscam-svn/openssl-0.9.8/crypto'
mipsel-linux-uclibc-gcc -I. -I.. -I../include -O -fPIC -c -o cryptlib.o cryptlib.c
make[1]: mipsel-linux-uclibc-gcc: Command not found
make[1]: *** [cryptlib.o] Error 127
make[1]: Leaving directory `/home/user/oscam-svn/openssl-0.9.8/crypto'
make: *** [build_crypto] Error 1
LIBCRYPTO-0.9.8 BUILD-ERROR
-- Check for working C compiler: /home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc
-- Check for working C compiler: /home/user/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc -- broken
apt-get update
apt-get install build-essential autoconf automake cmake make patch gcc g++ pkg-config subversion
apt-get install libccid libtool libglib2.0-dev libssl-dev libssl0.9.8 libpcsclite1 libpcsclite-dev libusb-dev
apt-get install gettext libncurses5-dev flex bison libpng3 zlib1g-dev
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn -r 6654
cd oscam-svn
./config.sh
mkdir build
cd build
cmake[COLOR=#ff0000][B] -DCMAKE_TOOLCHAIN_FILE=/home/oscam-svn/toolchains/toolchain-powerpc-tuxbox.cmake[/B][/COLOR] ..
make
user@ubuntu:~/oscam-svn/selbst$ sudo cmake -DCMAKE_TOOLCHAIN_FILE=/home/user/oscam-svn/toolchains/toolchain-mips-wrt54g.cmake ..
-- The C compiler identification is unknown
-- Check for working C compiler: mipsel-linux-uclibc-gcc
CMake Error: your C compiler: "mipsel-linux-uclibc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: mipsel-linux-uclibc-gcc -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "mipsel-linux-uclibc-gcc" is not able to compile a simple
test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
CMake Error: your C compiler: "mipsel-linux-uclibc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
cd /root
export MYPATH=$PATH
export PATH=/root/toolchains/4.1.0-uclibc-0.9.28/bin:$MYPATH
CC=/root/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-gcc-4.1.0
cpucores=`grep ^processor /proc/cpuinfo | wc -l`
wget http://www.streamboard.gmc.to/wbb2/tut-pics/toolchains/Toolchain_MIPS-Router-uclib-0.9.28.bz2
tar xf Toolchain_MIPS-Router-uclib-0.9.28.bz2
wget http://freefr.dl.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure CC=$CC --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc --prefix=/root/toolchains/4.1.0-uclibc-0.9.28/
make -j$cpucores
cd /root
wget http://alioth.debian.org/frs/download.php/3337/pcsc-lite-1.6.4.tar.bz2
tar xf pcsc-lite-1.6.4.tar.bz2
cd pcsc-lite-1.6.4
./configure CC=$CC --host=mipsel-linux-uclibc --target=mipsel-linux-uclibc --disable-libhal --prefix=/root/toolchains/4.1.0-uclibc-0.9.28 --exec-prefix=/root/toolchains/4.1.0-uclibc-0.9.28 --disable-libusb
make -j$cpucores
cd /root
svn co http://streamboard.gmc.to/svn/oscam/trunk oscam-svn
cd oscam-svn
[COLOR=#ff0000]#./config.sh[/COLOR]
mkdir build
cd build
echo "set (OSCAM_SYSTEM_NAME WRT54G)" > toolchain-mips-wrt54g.cmake
echo "set (CMAKE_SYSTEM_NAME Linux)" >> toolchain-mips-wrt54g.cmake
echo "set (CMAKE_C_COMPILER mipsel-linux-uclibc-gcc-4.1.0)" >> toolchain-mips-wrt54g.cmake
echo "set (CMAKE_SYSTEM_PROCESSOR mips)" >> toolchain-mips-wrt54g.cmake
make clean
cmake -DWEBIF=1 -DLIBUSBDIR=/root/toolchains/4.1.0-uclibc-0.9.28 -DOPTIONAL_INCLUDE_DIR=/root/toolchains/4.1.0-uclibc-0.9.28/include/PCSC -DCMAKE_TOOLCHAIN_FILE=toolchain-mips-wrt54g.cmake ..
make -j$cpucores
-- operating system: WRT54G
-- system type: mips-wrt54g-linux
-- system: linux
-- cpu: mips
-- hw: wrt54g
-- use built-in crypt functions
-- use system pthread functions
mkdir build
cd build
echo "set (OSCAM_SYSTEM_NAME WRT54G)" > toolchain-mips-wrt54g.cmake
echo "set (CMAKE_SYSTEM_NAME Linux)" >> toolchain-mips-wrt54g.cmake
echo "set (CMAKE_C_COMPILER mipsel-linux-uclibc-gcc-4.1.0)" >> toolchain-mips-wrt54g.cmake
echo "set (CMAKE_SYSTEM_PROCESSOR mips)" >> toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn# mkdir build
root@ubuntu:~/oscam-svn# cd build
root@ubuntu:~/oscam-svn/build# echo "set (OSCAM_SYSTEM_NAME WRT54G)" > toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn/build# ls
toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn/build# echo "set (CMAKE_SYSTEM_NAME Linux)" >> toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn/build# echo "set (CMAKE_C_COMPILER mipsel-linux-uclibc-gcc-4.1.0)" >> toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn/build# echo "set (CMAKE_SYSTEM_PROCESSOR mips)" >> toolchain-mips-wrt54g.cmake
root@ubuntu:~/oscam-svn/build# make clean
make: *** No rule to make target `clean'. Stop.
root@ubuntu:~/oscam-svn/build# cmake -DWEBIF=1 -DLIBUSBDIR=/root/toolchains/4.1.0-uclibc-0.9.28 -DOPTIONAL_INCLUDE_DIR=/root/toolchains/4.1.0-uclibc-0.9.28/include/PCSC -DCMAKE_TOOLCHAIN_FILE=toolchain-mips-wrt54g.cmake ..
-- The C compiler identification is GNU
-- Check for working C compiler: /root/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc-4.1.0
-- Check for working C compiler: /root/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-gcc-4.1.0 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- pthread found. Adding pthread support
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - not found
-- checking for module 'openssl'
-- found openssl, version 1.0.1
-- openssl found.
-- Looking for time.h
-- Looking for time.h - found
-- librt found (needed by libusb).
-- Looking for /root/toolchains/4.1.0-uclibc-0.9.28/include/libusb-1.0/libusb.h
-- Looking for /root/toolchains/4.1.0-uclibc-0.9.28/include/libusb-1.0/libusb.h - not found
-- no libusb 1.0 found. No smartreader support
-- Looking for PCSC/wintypes.h
-- Looking for PCSC/wintypes.h - not found
-- The CXX compiler identification is GNU
-- Check for working CXX compiler: /root/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-c++
-- Check for working CXX compiler: /root/toolchains/4.1.0-uclibc-0.9.28/bin/mipsel-linux-uclibc-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
--
-- operating system: WRT54G
-- system type: mips-wrt54g-linux
-- system: linux
-- cpu: mips
-- hw: wrt54g
-- use built-in crypt functions
-- use system pthread functions
--
-- Configuring done
-- Generating done
-- Build files have been written to: /root/oscam-svn/build
root@ubuntu:~/oscam-svn/build# make -j$cpucores
Scanning dependencies of target csmodules
Scanning dependencies of target svnversion-log
[ 0%] Built target svnversion-log
Scanning dependencies of target csreaders
[ 1%] [ 2%] Building C object CMakeFiles/csreaders.dir/reader-nagra.o
Building C object CMakeFiles/csmodules.dir/module-newcamd.o
In file included from /root/oscam-svn/globals.h:41,
from /root/oscam-svn/module-newcamd.c:1:
/root/oscam-svn/cscrypt/cscrypt.h:4:27: error: openssl/aes.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:5:27: error: openssl/sha.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:6:26: error: openssl/bn.h: No such file or directory
In file included from /root/oscam-svn/globals.h:41,
from /root/oscam-svn/reader-nagra.c:1:
/root/oscam-svn/cscrypt/cscrypt.h:4:27: error: openssl/aes.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:5:27: error: openssl/sha.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:6:26: error: openssl/bn.h: No such file or directory
In file included from /root/oscam-svn/module-newcamd.c:1:
/root/oscam-svn/globals.h:591: error: expected specifier-qualifier-list before 'AES_KEY'
/root/oscam-svn/globals.h:914: error: expected specifier-qualifier-list before 'AES_KEY'
In file included from /root/oscam-svn/reader-nagra.c:1:
/root/oscam-svn/globals.h:591: error: expected specifier-qualifier-list before 'AES_KEY'
/root/oscam-svn/globals.h:1249: error: expected specifier-qualifier-list before 'BIGNUM'
/root/oscam-svn/globals.h:914: error: expected specifier-qualifier-list before 'AES_KEY'
/root/oscam-svn/globals.h:1249: error: expected specifier-qualifier-list before 'BIGNUM'
make[2]: *** [CMakeFiles/csmodules.dir/module-newcamd.o] Error 1
make[1]: *** [CMakeFiles/csmodules.dir/all] Error 2
/root/oscam-svn/reader-nagra.c: In function 'NegotiateSessionKey_Tiger':
/root/oscam-svn/reader-nagra.c:189: error: 'BN_CTX' undeclared (first use in this function)
make[1]: *** Waiting for unfinished jobs..../root/oscam-svn/reader-nagra.c:189: error: (Each undeclared identifier is reported only once
/root/oscam-svn/reader-nagra.c:189: error: for each function it appears in.)
/root/oscam-svn/reader-nagra.c:189: error: 'ctx' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:189: warning: implicit declaration of function 'BN_CTX_new'
/root/oscam-svn/reader-nagra.c:191: warning: implicit declaration of function 'BN_CTX_start'
/root/oscam-svn/reader-nagra.c:193: error: 'BIGNUM' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:193: error: 'bnN' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:193: warning: implicit declaration of function 'BN_CTX_get'
/root/oscam-svn/reader-nagra.c:194: error: 'bnE' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:195: error: 'bnCT' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:196: error: 'bnPT' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:197: warning: implicit declaration of function 'BN_bin2bn'
/root/oscam-svn/reader-nagra.c:200: warning: implicit declaration of function 'BN_mod_exp'
/root/oscam-svn/reader-nagra.c:202: warning: implicit declaration of function 'BN_bn2bin'
/root/oscam-svn/reader-nagra.c:202: warning: implicit declaration of function 'BN_num_bytes'
/root/oscam-svn/reader-nagra.c:203: warning: implicit declaration of function 'BN_CTX_end'
/root/oscam-svn/reader-nagra.c:204: warning: implicit declaration of function 'BN_CTX_free'
/root/oscam-svn/reader-nagra.c:229: error: 'ctx1' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:233: error: 'bnN1' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:234: error: 'bnE1' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:235: error: 'bnCT1' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:236: error: 'bnPT1' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:266: error: 'ctx3' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:270: error: 'bnN3' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:271: error: 'bnE3' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:272: error: 'bnCT3' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:273: error: 'bnPT3' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c: In function 'NegotiateSessionKey':
/root/oscam-svn/reader-nagra.c:361: error: 'BN_CTX' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:361: error: 'ctx' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:365: error: 'BIGNUM' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:365: error: 'bnN' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:366: error: 'bnE' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:367: error: 'bnCT' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:368: error: 'bnPT' undeclared (first use in this function)
[ 3%] /root/oscam-svn/reader-nagra.c: In function 'decryptDT08':
/root/oscam-svn/reader-nagra.c:445: error: 'BN_CTX' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:445: error: 'ctx' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: error: 'BIGNUM' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: error: 'bn_mod' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: error: 'bn_exp' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: warning: left-hand operand of comma expression has no effect
/root/oscam-svn/reader-nagra.c:446: error: 'bn_data' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: warning: left-hand operand of comma expression has no effect
/root/oscam-svn/reader-nagra.c:446: error: 'bn_res' undeclared (first use in this function)
/root/oscam-svn/reader-nagra.c:446: warning: left-hand operand of comma expression has no effect
/root/oscam-svn/reader-nagra.c:446: warning: statement with no effect
/root/oscam-svn/reader-nagra.c:450: warning: implicit declaration of function 'BN_new'
/root/oscam-svn/reader-nagra.c:515: warning: implicit declaration of function 'BN_free'
/root/oscam-svn/reader-nagra.c: In function 'ParseDataType':
/root/oscam-svn/reader-nagra.c:572: error: 'struct s_reader' has no member named 'card_valid_to'
/root/oscam-svn/reader-nagra.c: In function 'nagra2_card_info':
/root/oscam-svn/reader-nagra.c:795: error: 'struct s_reader' has no member named 'card_valid_to'
make[2]: *** [CMakeFiles/csreaders.dir/reader-nagra.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Building C object CMakeFiles/csreaders.dir/reader-common.o
In file included from /root/oscam-svn/globals.h:41,
from /root/oscam-svn/reader-common.c:1:
/root/oscam-svn/cscrypt/cscrypt.h:4:27: error: openssl/aes.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:5:27: error: openssl/sha.h: No such file or directory
/root/oscam-svn/cscrypt/cscrypt.h:6:26: error: openssl/bn.h: No such file or directory
In file included from /root/oscam-svn/reader-common.c:1:
/root/oscam-svn/globals.h:591: error: expected specifier-qualifier-list before 'AES_KEY'
/root/oscam-svn/globals.h:914: error: expected specifier-qualifier-list before 'AES_KEY'
/root/oscam-svn/globals.h:1249: error: expected specifier-qualifier-list before 'BIGNUM'
/root/oscam-svn/reader-common.c: In function 'reader_reset':
/root/oscam-svn/reader-common.c:303: error: 'struct s_reader' has no member named 'sc8in1_config'
/root/oscam-svn/reader-common.c:316: error: 'struct s_reader' has no member named 'sc8in1_config'
make[2]: *** [CMakeFiles/csreaders.dir/reader-common.o] Error 1
make[1]: *** [CMakeFiles/csreaders.dir/all] Error 2
make: *** [all] Error 2
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?