|
楼主 |
发表于 2015-4-2 11:46
|
显示全部楼层
今天重新尝试了一下楼上“99010”和“LazyZhu”的Makefile文件,情况如下:
1、先用我自己的方法进行编译,成功生成oscam-1.20-unstable_svn10641-mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc文件。
这个应该是有相关的依赖了吧。
2、使用“LazyZhu”的Makefile文件进行编译,情况依旧,错误信息如下:
- wf@wf:~/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2$ make V=s
- #
- # configuration written to .config
- #
- make[1]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[2]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[3]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
- ................
- make[4]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-1.20-svn-r10641'
- ................
- -c csctapi/ifd_pcsc.c -o build/mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc/csctapi/ifd_pcsc.o
- In file included from csctapi/ifd_pcsc.c:14:0:
- /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include/PCSC/pcsclite.h:24:22: fatal error: wintypes.h: No such file or directory
- #include <wintypes.h>
- ^
- compilation terminated.
- make[5]: *** [build/mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc/csctapi/ifd_pcsc.o] Error 1
- make[4]: *** [all] Error 2
- make[4]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-1.20-svn-r10641'
- make[3]: *** [/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-1.20-svn-r10641/.built] Error 2
- make[3]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
- make[2]: *** [package/oscam/compile] Error 2
- make[2]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[1]: *** [/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
- make[1]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make: *** [world] 错误 2
复制代码 还是无法通过ifd_pcsc.c生成ifd_pcsc.o文件,我原来的方法是可以生成ifd_pcsc.o文件的.....
3、使用“99010”的Makefile文件进行编译,还是出错,信息如下:
- <div class="blockcode"><blockquote>#
- # configuration written to .config
- #
- make[1]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[2]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[3]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
- . /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/include/shell.sh; bzcat /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/dl/oscam-9577.tar.bz2 | /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/host/bin/tar -C /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577/.. -xf -
- touch /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577/.prepared_f2b8d6deb63f1bac3c785d1a4551541d
- (cd /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577; CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float " LDFLAGS="-L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib " cmake -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1 -DCMAKE_SYSTEM_PROCESSOR=mipsel -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_C_COMPILER="/usr/bin/ccache" -DCMAKE_C_COMPILER_ARG1="mipsel-openwrt-linux-uclibc-gcc" -DCMAKE_CXX_COMPILER="/usr/bin/ccache" -DCMAKE_CXX_COMPILER_ARG1="mipsel-openwrt-linux-uclibc-g++" -DCMAKE_EXE_LINKER_FLAGS:STRING="-L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib" -DCMAKE_AR="/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-ar" -DCMAKE_RANLIB="/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-ranlib" -DCMAKE_FIND_ROOT_PATH="/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2;/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2" -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=: -DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2 -DCMAKE_PREFIX_PATH=/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2 -DCS_CONFDIR=/etc/oscam . )
- -- The C compiler identification is GNU 4.8.3
- -- Check for working C compiler: /usr/bin/ccache
- -- Check for working C compiler: /usr/bin/ccache -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Unknown cross system name: <Linux>
- -- Looking for pthread.h
- -- Looking for pthread.h - found
- -- pthread found. Adding pthread support
- -- Looking for openssl/aes.h
- -- Looking for openssl/aes.h - found
- -- SSL IS NOT INCLUDED IN THIS COMPILATION
- -- Found OpenSSL: /home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/libssl.so;/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/libcrypto.so (found version "1.0.1i")
- -- openssl found.
- -- Looking for time.h
- -- Looking for time.h - found
- -- librt found (needed by libusb).
- -- Looking for libusb-1.0/libusb.h
- -- Looking for libusb-1.0/libusb.h - found
- -- Looking for libusb-1.0/libusb.h
- -- Looking for libusb-1.0/libusb.h - found
- -- libusb 1.0 found (libusb-1.0.so) Adding smartreader support
- -- Looking for PCSC/wintypes.h
- -- Looking for PCSC/wintypes.h - not found
- GEN Compressed 351056 template bytes into 143280 bytes. 207776 saved bytes (59.19%).
- -- The CXX compiler identification is GNU 4.8.3
- -- Check for working CXX compiler: /usr/bin/ccache
- -- Check for working CXX compiler: /usr/bin/ccache -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- /usr/bin/ccache: invalid option -- 'd'
- Usage:
- ccache [options]
- ccache compiler [compiler options]
- compiler [compiler options] (via symbolic link)
- Options:
- -c, --cleanup delete old files and recalculate size counters
- (normally not needed as this is done automatically)
- -C, --clear clear the cache completely
- -F, --max-files=N set maximum number of files in cache to N (use 0 for
- no limit)
- -M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
- limit; available suffixes: G, M and K; default
- suffix: G)
- -s, --show-stats show statistics summary
- -z, --zero-stats zero statistics counters
- -h, --help print this help text
- -V, --version print version and copyright information
- See also <http://ccache.samba.org>.
- CMake Error at csctapi/CMakeLists.txt:4 (string):
- string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
- command.
- /usr/bin/ccache: invalid option -- 'd'
- Usage:
- ccache [options]
- ccache compiler [compiler options]
- compiler [compiler options] (via symbolic link)
- Options:
- -c, --cleanup delete old files and recalculate size counters
- (normally not needed as this is done automatically)
- -C, --clear clear the cache completely
- -F, --max-files=N set maximum number of files in cache to N (use 0 for
- no limit)
- -M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
- limit; available suffixes: G, M and K; default
- suffix: G)
- -s, --show-stats show statistics summary
- -z, --zero-stats zero statistics counters
- -h, --help print this help text
- -V, --version print version and copyright information
- See also <http://ccache.samba.org>.
- /usr/bin/ccache: invalid option -- 'd'
- Usage:
- ccache [options]
- ccache compiler [compiler options]
- compiler [compiler options] (via symbolic link)
- Options:
- -c, --cleanup delete old files and recalculate size counters
- (normally not needed as this is done automatically)
- -C, --clear clear the cache completely
- -F, --max-files=N set maximum number of files in cache to N (use 0 for
- no limit)
- -M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
- limit; available suffixes: G, M and K; default
- suffix: G)
- -s, --show-stats show statistics summary
- -z, --zero-stats zero statistics counters
- -h, --help print this help text
- -V, --version print version and copyright information
- See also <http://ccache.samba.org>.
- CMake Error at CMakeLists.txt:623 (string):
- string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
- command.
- -- Utils: operating system: Unknown
- -- Utils: target system:
- -- utils use system libusb functions
- --
- --
- -- operating system: Unknown
- -- target system:
- -- revision: 0
- -- use system libcrypto functions
- -- use system pthread functions
- -- use system libusb functions
- --
- -- Configuring incomplete, errors occurred!
- See also "/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577/CMakeFiles/CMakeOutput.log".
- See also "/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577/CMakeFiles/CMakeError.log".
- make[3]: *** [/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/oscam-9577/.configured_] Error 1
- make[3]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
- make[2]: *** [package/oscam/compile] Error 2
- make[2]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make[1]: *** [/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
- make[1]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
- make: *** [world] 错误 2
复制代码
|
|