找回密码
 立即注册
img_loading
智能检测中

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
楼主: 兔巴哥

折腾OSCAM之一---OSCAM交叉编译详细步骤

  [复制链接]
 楼主| 发表于 2015-3-29 14:54 | 显示全部楼层
没有回应啊!!!{:soso_e110:}
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-3-29 17:05 | 显示全部楼层

点评

试了一下这个makefile文件,在我的环境下并不能直接编译成功,关键问题是无法在编译过程生成ifd_pcsc.o文件。从别的地方拷贝这个文件后可以编译通过,再次编译时又得拷贝这个文件。编译出来的文件可以运行,但是版本  详情 回复 发表于 2015-4-2 00:20
能分享下luci-oscam吗?新人求助  详情 回复 发表于 2015-4-1 10:02
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-1 10:02 | 显示全部楼层
LazyZhu 发表于 2015-3-29 17:05
http://dl.lazyzhu.com/file/openwrt-antigfw/packages/source/

能分享下luci-oscam吗?新人求助
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-1 10:07 | 显示全部楼层
楼主编译一个ar71xx的oscam和luci-oscam吧,我也是找了很久都没有。

点评

ar71xx的oscam广明星不是有,貌似天天更新  详情 回复 发表于 2015-4-2 09:04
你按照我的方法自己就可以编译出oscam了啊。编译过程中也不一定会出现我的问题的。  详情 回复 发表于 2015-4-2 00:11
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 00:11 | 显示全部楼层
矮星V 发表于 2015-4-1 10:07
楼主编译一个ar71xx的oscam和luci-oscam吧,我也是找了很久都没有。

你按照我的方法自己就可以编译出oscam了啊。编译过程中也不一定会出现我的问题的。

点评

主要是没有环境  详情 回复 发表于 2015-4-2 08:52
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 00:20 | 显示全部楼层
本帖最后由 兔巴哥 于 2015-11-15 21:05 编辑

试了一下这个makefile文件,在我的环境下并不能直接编译成功,关键问题是无法在编译过程中生成ifd_pcsc.o文件。从别的地方拷贝这个文件后可以编译通过,再次编译时又得拷贝这个文件。编译出来的文件可以运行,但是版本号是“r0”,并且也不能随系统启动。
还是对makefile文件不懂啊!

点评

先编译依赖: libopenssl libusb-1.0 pcsc-lite  详情 回复 发表于 2015-4-2 00:50
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 00:28 | 显示全部楼层
补充一下,我的方法的最后一步的交叉编译可以通过在oscam目录下建立一个install.sh脚本文件,执行./install.sh就可以生成新的oscam文件。
install.sh脚本文件如下:
  1. #!/bin/sh
  2. export TOOLCHAIN=/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
  3. export PATH="$TOOLCHAIN/bin:$PATH"
  4. export STAGING_DIR=/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir
  5. export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$TOOLCHAIN/usr/include
  6. export C_INCLUDE_PATH=$C_INCLUDE_PATH:$TOOLCHAIN/usr/include
  7. make clean
  8. make CROSS=$TOOLCHAIN/bin/mipsel-openwrt-linux-uclibc- CONF_DIR=/usr/local/etc/config/ USE_LIBUSB=1 LIBUSB_LIB="$TOOLCHAIN/usr/lib/libusb-1.0.a -lrt" USE_PCSC=1 USE_SSL=1 EXTRA_FLAGS="-I$TOOLCHAIN/usr/include/PCSC" 2>&1 | tee mak.log
复制代码
其中的TOOLCHAIN=按你自己的具体情况而定,2>&1 | tee mak.log是把编译信息保存到mak.log文件。

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-2 00:38 | 显示全部楼层
本帖最后由 99010 于 2015-4-2 00:42 编辑

aa12.09版本可编译,其他版本不清楚,拿去研究吧。记得丢几个conf文件到files里面,否则不会开机自动启动
  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #

  7. include $(TOPDIR)/rules.mk

  8. PKG_NAME:=oscam
  9. PKG_REV:=9577
  10. PKG_VERSION:=$(PKG_REV)
  11. PKG_RELEASE:=1

  12. PKG_SOURCE_PROTO:=svn
  13. PKG_SOURCE_VERSION:=$(PKG_REV)
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.bz2
  16. PKG_SOURCE_URL:=http://www.streamboard.tv/svn/oscam/trunk
  17. #PKG_SOURCE_URL:=https://github.com/nx111/oscam-nx111.git

  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk

  20. define Package/oscam
  21.   SECTION:=net
  22.   CATEGORY:=Network
  23.   TITLE:=Open Source Conditional Access Modul
  24.   URL:=http://www.streamboard.tv/oscam/wiki/BuildingOscam
  25.   DEPENDS:=+libopenssl +libusb-1 +pcscd +openssl-util +ccid
  26. endef

  27. define Package/oscam/description
  28.   OSCam is an Open Source Conditional Access Module software
  29. endef

  30. CMAKE_OPTIONS += \
  31.                 -DCS_CONFDIR=/etc/oscam

  32. MAKE_FLAGS += \
  33.         USE_LIBUSB=1 \
  34.         USE_LIBCRYPTO=1 \
  35.         USE_SSL=1 \
  36.         USE_PCSC=1

  37. define Package/oscam/install
  38.         $(INSTALL_DIR) $(1)/etc/init.d
  39.         $(INSTALL_BIN) ./files/oscam.init $(1)/etc/init.d/oscam

  40.         $(INSTALL_DIR) $(1)/usr/bin
  41.         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oscam $(1)/usr/bin/

  42.         $(INSTALL_DIR) $(1)/etc/oscam
  43.         $(INSTALL_BIN) ./files/oscam/* $(1)/etc/oscam/

  44. endef

  45. $(eval $(call BuildPackage,oscam))
复制代码


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-2 00:50 | 显示全部楼层
兔巴哥 发表于 2015-4-2 00:20
试了一下这个makefile文件,在我的环境下并不能直接编译成功,关键问题是无法在编译过程生成ifd_pcsc.o文 ...

先编译依赖:
libopenssl
libusb-1.0
pcsc-lite

你的问题是pcsc-lite没有编译.

点评

求教一下,依赖如何编译的,有没有一个例子?谢谢了。  详情 回复 发表于 2015-4-4 23:45
求教一下,依赖如何编译的,有没有一个例子?谢谢了。  详情 回复 发表于 2015-4-4 23:44
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-2 08:52 | 显示全部楼层
兔巴哥 发表于 2015-4-2 00:11
你按照我的方法自己就可以编译出oscam了啊。编译过程中也不一定会出现我的问题的。

主要是没有环境

点评

这是广明星上的 另外,luci-oscam我也不懂。[/backcolor]  详情 回复 发表于 2015-4-2 11:03
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-2 09:04 | 显示全部楼层
矮星V 发表于 2015-4-1 10:07
楼主编译一个ar71xx的oscam和luci-oscam吧,我也是找了很久都没有。

ar71xx的oscam广明星不是有,貌似天天更新
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 11:03 | 显示全部楼层
矮星V 发表于 2015-4-2 08:52
主要是没有环境

这是广明星上的

另外,luci-oscam我也不懂。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 11:46 | 显示全部楼层
今天重新尝试了一下楼上“99010”和“LazyZhu”的Makefile文件,情况如下:

1、先用我自己的方法进行编译,成功生成oscam-1.20-unstable_svn10641-mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc文件。
     这个应该是有相关的依赖了吧。


2、使用“LazyZhu”的Makefile文件进行编译,情况依旧,错误信息如下:
  1. wf@wf:~/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2$ make V=s
  2. #
  3. # configuration written to .config
  4. #
  5. make[1]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  6. make[2]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  7. make[3]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
  8. ................
  9. 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'
  10. ................
  11. -c csctapi/ifd_pcsc.c -o build/mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc/csctapi/ifd_pcsc.o
  12. In file included from csctapi/ifd_pcsc.c:14:0:
  13. /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
  14. #include <wintypes.h>
  15.                       ^
  16. compilation terminated.
  17. make[5]: *** [build/mipsel-openwrt-linux-uclibc-ssl-libusb-pcsc/csctapi/ifd_pcsc.o] Error 1
  18. make[4]: *** [all] Error 2
  19. 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'
  20. 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
  21. make[3]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
  22. make[2]: *** [package/oscam/compile] Error 2
  23. make[2]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  24. 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
  25. make[1]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  26. make: *** [world] 错误 2
复制代码
还是无法通过ifd_pcsc.c生成ifd_pcsc.o文件,我原来的方法是可以生成ifd_pcsc.o文件的.....

3、使用“99010”的Makefile文件进行编译,还是出错,信息如下:
  1. <div class="blockcode"><blockquote>#
  2. # configuration written to .config
  3. #
  4. make[1]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  5. make[2]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  6. make[3]: Entering directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
  7. . /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 -
  8. 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
  9. (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 . )
  10. -- The C compiler identification is GNU 4.8.3
  11. -- Check for working C compiler: /usr/bin/ccache
  12. -- Check for working C compiler: /usr/bin/ccache -- works
  13. -- Detecting C compiler ABI info
  14. -- Detecting C compiler ABI info - done
  15. -- Unknown cross system name: <Linux>
  16. -- Looking for pthread.h
  17. -- Looking for pthread.h - found
  18. --   pthread found. Adding pthread support
  19. -- Looking for openssl/aes.h
  20. -- Looking for openssl/aes.h - found
  21. --  SSL IS NOT INCLUDED IN THIS COMPILATION
  22. -- 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")
  23. --   openssl found.
  24. -- Looking for time.h
  25. -- Looking for time.h - found
  26. --   librt found (needed by libusb).
  27. -- Looking for libusb-1.0/libusb.h
  28. -- Looking for libusb-1.0/libusb.h - found
  29. -- Looking for libusb-1.0/libusb.h
  30. -- Looking for libusb-1.0/libusb.h - found
  31. --  libusb 1.0 found (libusb-1.0.so) Adding smartreader support
  32. -- Looking for PCSC/wintypes.h
  33. -- Looking for PCSC/wintypes.h - not found
  34. GEN        Compressed 351056 template bytes into 143280 bytes. 207776 saved bytes (59.19%).
  35. -- The CXX compiler identification is GNU 4.8.3
  36. -- Check for working CXX compiler: /usr/bin/ccache
  37. -- Check for working CXX compiler: /usr/bin/ccache -- works
  38. -- Detecting CXX compiler ABI info
  39. -- Detecting CXX compiler ABI info - done
  40. /usr/bin/ccache: invalid option -- 'd'
  41. Usage:
  42.     ccache [options]
  43.     ccache compiler [compiler options]
  44.     compiler [compiler options]          (via symbolic link)

  45. Options:
  46.     -c, --cleanup         delete old files and recalculate size counters
  47.                           (normally not needed as this is done automatically)
  48.     -C, --clear           clear the cache completely
  49.     -F, --max-files=N     set maximum number of files in cache to N (use 0 for
  50.                           no limit)
  51.     -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
  52.                           limit; available suffixes: G, M and K; default
  53.                           suffix: G)
  54.     -s, --show-stats      show statistics summary
  55.     -z, --zero-stats      zero statistics counters

  56.     -h, --help            print this help text
  57.     -V, --version         print version and copyright information

  58. See also <http://ccache.samba.org>.
  59. CMake Error at csctapi/CMakeLists.txt:4 (string):
  60.   string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  61.   command.


  62. /usr/bin/ccache: invalid option -- 'd'
  63. Usage:
  64.     ccache [options]
  65.     ccache compiler [compiler options]
  66.     compiler [compiler options]          (via symbolic link)

  67. Options:
  68.     -c, --cleanup         delete old files and recalculate size counters
  69.                           (normally not needed as this is done automatically)
  70.     -C, --clear           clear the cache completely
  71.     -F, --max-files=N     set maximum number of files in cache to N (use 0 for
  72.                           no limit)
  73.     -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
  74.                           limit; available suffixes: G, M and K; default
  75.                           suffix: G)
  76.     -s, --show-stats      show statistics summary
  77.     -z, --zero-stats      zero statistics counters

  78.     -h, --help            print this help text
  79.     -V, --version         print version and copyright information

  80. See also <http://ccache.samba.org>.
  81. /usr/bin/ccache: invalid option -- 'd'
  82. Usage:
  83.     ccache [options]
  84.     ccache compiler [compiler options]
  85.     compiler [compiler options]          (via symbolic link)

  86. Options:
  87.     -c, --cleanup         delete old files and recalculate size counters
  88.                           (normally not needed as this is done automatically)
  89.     -C, --clear           clear the cache completely
  90.     -F, --max-files=N     set maximum number of files in cache to N (use 0 for
  91.                           no limit)
  92.     -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
  93.                           limit; available suffixes: G, M and K; default
  94.                           suffix: G)
  95.     -s, --show-stats      show statistics summary
  96.     -z, --zero-stats      zero statistics counters

  97.     -h, --help            print this help text
  98.     -V, --version         print version and copyright information

  99. See also <http://ccache.samba.org>.
  100. CMake Error at CMakeLists.txt:623 (string):
  101.   string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  102.   command.


  103. -- Utils: operating system: Unknown
  104. -- Utils: target system:
  105. --  utils use system libusb functions
  106. --
  107. --
  108. --   operating system: Unknown
  109. --   target system:
  110. --   revision: 0
  111. --   use system libcrypto functions
  112. --   use system pthread functions
  113. --   use system libusb functions
  114. --
  115. -- Configuring incomplete, errors occurred!
  116. 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".
  117. 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".
  118. 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
  119. make[3]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/package/oscam'
  120. make[2]: *** [package/oscam/compile] Error 2
  121. make[2]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  122. 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
  123. make[1]: Leaving directory `/home/wf/OpenWrt-SDK-ramips-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2'
  124. make: *** [world] 错误 2
复制代码


点评

99的MAKE 是没问题的,问题在于,你需要先把PCSC 驱动给编译出来,官方不是自带了么  详情 回复 发表于 2015-5-6 18:42
我这个makefile用sdk编译要先编译其他依赖包,建议用完整的svn openwrt源码,再make menuconfig 选上oscam。。。  详情 回复 发表于 2015-4-2 11:58
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2015-4-2 11:58 | 显示全部楼层
兔巴哥 发表于 2015-4-2 11:46
今天重新尝试了一下楼上“99010”和“LazyZhu”的Makefile文件,情况如下:

1 ...

我这个makefile用sdk编译要先编译其他依赖包,建议用完整的svn openwrt源码,再make menuconfig 选上oscam。。。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-4-2 13:17 来自手机 | 显示全部楼层
我已经编译了那3个包了,还需要其他依赖包?
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛

只谈技术、莫论政事!切勿转播谣言!为了你也为了他人。
只谈技术、莫论政事!(点击见详情) 切记不要随意传播谣言,把自己的日子过安稳了就行,为了自己好也为了大家好。 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。

查看 »

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-6-30 21:54

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表