主题 : tiny210 openwrt编译aria2问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
楼主  发表于: 2013-02-13 22:00

 tiny210 openwrt编译aria2问题

openwrt编译aria2各种错误求讨论,在线等
附上我现在用的Makefile

附件: Makefile.tar.gz (1 K) 下载次数:10
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
1楼  发表于: 2013-02-13 22:09
看起来makefile没啥毛病啊(没仔细看,反正应该ok),建议贴log上来
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
2楼  发表于: 2013-02-13 22:22
好的 ,我整理一下贴上来,稍等
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
3楼  发表于: 2013-02-13 22:28

 回 1楼(huhu2207) 的帖子

刚才make clean了,稍等。
这个Makefile是openwrt官网拿过来的,原本aria2-1.16.0编译到ar71xx平台无任何错误
我把Makefile拿了过来,改成编译1.16.3版本,各种错误。马上贴log
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
4楼  发表于: 2013-02-13 22:29
复制代码
  1. make[2]: Entering directory `/hi3716m/sun/package/aria2'
  2. bzcat /hi3716m/sun/dl/aria2-1.16.3.tar.bz2 | /bin/tar -C /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/.. -xf -
  3. ls: cannot access ./patches: No such file or directory
  4. touch /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/.prepared_b1bc9a31d67a261a48edb2da942768b6
  5. (cd /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/./; if [ -x ./configure ]; then /usr/bin/find /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/ -name config.guess | xargs -r -n1 cp /hi3716m/sun/scripts/config.guess; /usr/bin/find /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/ -name config.sub | xargs -r -n1 cp /hi3716m/sun/scripts/config.sub; AR=arm-openwrt-linux-gnueabi-ar AS="arm-openwrt-linux-gnueabi-gcc -c -O2 -pipe -march=armv7-a -mtune=cortex-a8 -funit-at-a-time -mfpu=vfpv3-d16 -mfloat-abi=softfp -fhonour-copts -msoft-float" LD=arm-openwrt-linux-gnueabi-ld NM=arm-openwrt-linux-gnueabi-nm CC="arm-openwrt-linux-gnueabi-gcc" GCC="arm-openwrt-linux-gnueabi-gcc" CXX="arm-openwrt-linux-gnueabi-g++" RANLIB=arm-openwrt-linux-gnueabi-ranlib STRIP=arm-openwrt-linux-gnueabi-strip OBJCOPY=arm-openwrt-linux-gnueabi-objcopy OBJDUMP=arm-openwrt-linux-gnueabi-objdump SIZE=arm-openwrt-linux-gnueabi-size CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a8 -funit-at-a-time -mfpu=vfpv3-d16 -mfloat-abi=softfp -fhonour-copts -msoft-float " CXXFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a8 -funit-at-a-time -mfpu=vfpv3-d16 -mfloat-abi=softfp -fhonour-copts -msoft-float " CPPFLAGS="-I/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/usr/include -I/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/include -I/hi3716m/sun/staging_dir/toolchain-arm_v7-a_gcc-4.3.3+cs_eglibc-2.8_eabi/usr/include -I/hi3716m/sun/staging_dir/toolchain-arm_v7-a_gcc-4.3.3+cs_eglibc-2.8_eabi/include " LDFLAGS="-L/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/usr/lib -L/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/lib -L/hi3716m/sun/staging_dir/toolchain-arm_v7-a_gcc-4.3.3+cs_eglibc-2.8_eabi/usr/lib -L/hi3716m/sun/staging_dir/toolchain-arm_v7-a_gcc-4.3.3+cs_eglibc-2.8_eabi/lib "  ZLIB_CFLAGS="-I/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/usr/include" ZLIB_LIBS="-L/hi3716m/sun/staging_dir/target-arm_v7-a_eglibc-2.8_eabi/usr/lib"  ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   --disable-nls --without-gnutls --without-libnettle --without-libgmp --without-libgcrypt --without-libexpat --without-libcares --without-sqlite3 --with-openssl --with-libxml2 --with-libz ; fi; )
  6. configure: loading site script /hi3716m/sun/include/site/arm-openwrt-linux-gnueabi
  7. checking for arm-openwrt-linux-gcc... arm-openwrt-linux-gnueabi-gcc
  8. checking whether the C compiler works... yes
  9. checking for C compiler default output file name... a.out
  10. checking for suffix of executables...
  11. checking whether we are cross compiling... yes
  12. checking for suffix of object files... o
  13. checking whether we are using the GNU C compiler... yes
  14. checking whether arm-openwrt-linux-gnueabi-gcc accepts -g... yes
  15. checking for arm-openwrt-linux-gnueabi-gcc option to accept ISO C89... none needed
  16. checking how to run the C preprocessor... arm-openwrt-linux-gnueabi-gcc -E
  17. checking for grep that handles long lines and -e... /bin/grep
  18. checking for egrep... /bin/grep -E
  19. checking for ANSI C header files... yes
  20. checking for sys/types.h... yes
  21. checking for sys/stat.h... yes
  22. checking for stdlib.h... yes
  23. checking for string.h... yes
  24. checking for memory.h... yes
  25. checking for strings.h... yes
  26. checking for inttypes.h... yes
  27. checking for stdint.h... yes
  28. checking for unistd.h... yes
  29. checking minix/config.h usability... no
  30. checking minix/config.h presence... no
  31. checking for minix/config.h... no
  32. checking whether it is safe to define __EXTENSIONS__... yes
  33. checking build system type... x86_64-pc-linux-gnu
  34. checking host system type... arm-openwrt-linux-gnu
  35. checking how to print strings... printf
  36. checking for a sed that does not truncate output... /hi3716m/sun/staging_dir/host/bin/sed
  37. checking for fgrep... /bin/grep -F
  38. checking for ld used by arm-openwrt-linux-gnueabi-gcc... arm-openwrt-linux-gnueabi-ld
  39. checking if the linker (arm-openwrt-linux-gnueabi-ld) is GNU ld... yes
  40. checking for BSD- or MS-compatible name lister (nm)... arm-openwrt-linux-gnueabi-nm
  41. checking the name lister (arm-openwrt-linux-gnueabi-nm) interface... BSD nm
  42. checking whether ln -s works... yes
  43. checking the maximum length of command line arguments... 32768
  44. checking whether the shell understands some XSI constructs... yes
  45. checking whether the shell understands "+="... yes
  46. checking how to convert x86_64-pc-linux-gnu file names to arm-openwrt-linux-gnu format... func_convert_file_noop
  47. checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
  48. checking for arm-openwrt-linux-gnueabi-ld option to reload object files... -r
  49. checking for arm-openwrt-linux-objdump... arm-openwrt-linux-gnueabi-objdump
  50. checking how to recognize dependent libraries... pass_all
  51. checking for arm-openwrt-linux-dlltool... no
  52. checking for dlltool... no
  53. checking how to associate runtime and link libraries... printf %s\n
  54. checking for arm-openwrt-linux-ar... arm-openwrt-linux-gnueabi-ar
  55. checking for archiver @FILE support... @
  56. checking for arm-openwrt-linux-strip... arm-openwrt-linux-gnueabi-strip
  57. checking for arm-openwrt-linux-ranlib... arm-openwrt-linux-gnueabi-ranlib
  58. checking for gawk... gawk
  59. checking command to parse arm-openwrt-linux-gnueabi-nm output from arm-openwrt-linux-gnueabi-gcc object... ok
  60. checking for sysroot... no
  61. checking for arm-openwrt-linux-mt... no
  62. checking for mt... mt
  63. configure: WARNING: using cross tools not prefixed with host triplet
  64. checking if mt is a manifest tool... no
  65. checking for dlfcn.h... yes
  66. checking for objdir... .libs
  67. checking if arm-openwrt-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
  68. checking for arm-openwrt-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
  69. checking if arm-openwrt-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
  70. checking if arm-openwrt-linux-gnueabi-gcc static flag -static works... yes
  71. checking if arm-openwrt-linux-gnueabi-gcc supports -c -o file.o... yes
  72. checking if arm-openwrt-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
  73. checking whether the arm-openwrt-linux-gnueabi-gcc linker (arm-openwrt-linux-gnueabi-ld) supports shared libraries... yes
  74. checking whether -lc should be explicitly linked in... no
  75. checking dynamic linker characteristics... GNU/Linux ld.so
  76. checking how to hardcode library paths into programs... immediate
  77. checking whether stripping libraries is possible... yes
  78. checking if libtool supports shared libraries... yes
  79. checking whether to build shared libraries... yes
  80. checking whether to build static libraries... yes
  81. checking target system type... arm-openwrt-linux-gnu
  82. checking for a BSD-compatible install... /usr/bin/install -c
  83. checking whether build environment is sane... yes
  84. checking for arm-openwrt-linux-strip... (cached) arm-openwrt-linux-gnueabi-strip
  85. checking for a thread-safe mkdir -p... /bin/mkdir -p
  86. checking whether make sets $(MAKE)... yes
  87. checking for style of include used by make... GNU
  88. checking dependency style of arm-openwrt-linux-gnueabi-gcc... gcc3
  89. checking for cppunit-config... no
  90. checking for Cppunit - version >= 1.10.2... no
  91. checking whether we are using the GNU C++ compiler... yes
  92. checking whether arm-openwrt-linux-gnueabi-g++ accepts -g... yes
  93. checking how to run the C++ preprocessor... arm-openwrt-linux-gnueabi-g++ -E
  94. checking for ld used by arm-openwrt-linux-gnueabi-g++... arm-openwrt-linux-gnueabi-ld
  95. checking if the linker (arm-openwrt-linux-gnueabi-ld) is GNU ld... yes
  96. checking whether the arm-openwrt-linux-gnueabi-g++ linker (arm-openwrt-linux-gnueabi-ld) supports shared libraries... yes
  97. checking for arm-openwrt-linux-gnueabi-g++ option to produce PIC... -fPIC -DPIC
  98. checking if arm-openwrt-linux-gnueabi-g++ PIC flag -fPIC -DPIC works... yes
  99. checking if arm-openwrt-linux-gnueabi-g++ static flag -static works... yes
  100. checking if arm-openwrt-linux-gnueabi-g++ supports -c -o file.o... yes
  101. checking if arm-openwrt-linux-gnueabi-g++ supports -c -o file.o... (cached) yes
  102. checking whether the arm-openwrt-linux-gnueabi-g++ linker (arm-openwrt-linux-gnueabi-ld) supports shared libraries... yes
  103. checking dynamic linker characteristics... (cached) GNU/Linux ld.so
  104. checking how to hardcode library paths into programs... immediate
  105. checking dependency style of arm-openwrt-linux-gnueabi-g++... gcc3
  106. checking for arm-openwrt-linux-gcc... (cached) arm-openwrt-linux-gnueabi-gcc
  107. checking whether we are using the GNU C compiler... (cached) yes
  108. checking whether arm-openwrt-linux-gnueabi-gcc accepts -g... (cached) yes
  109. checking for arm-openwrt-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
  110. checking for bison... bison -y
  111. checking for arm-openwrt-linux-ar... (cached) arm-openwrt-linux-gnueabi-ar
  112. checking for a2x... no
  113. checking for asciidoc... no
  114. checking pkg-config is at least version 0.20... yes
  115. checking for ZLIB... yes
  116. checking for xml2-config... no
  117. checking for libxml - version >= 2.6.24... no
  118. *** The xml2-config script installed by LIBXML could not be found
  119. *** If libxml was installed in PREFIX, make sure PREFIX/bin is in
  120. *** your path, or set the XML2_CONFIG environment variable to the
  121. *** full path to xml2-config.
  122. configure: error: in `/hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3':
  123. configure: error: libxml2 is requested but not found in the system.
  124. See `config.log' for more details
  125. make[2]: *** [/hi3716m/sun/build_dir/target-arm_v7-a_eglibc-2.8_eabi/aria2-1.16.3/.configured_] Error 1
  126. make[2]: Leaving directory `/hi3716m/sun/package/aria2'
  127. make[1]: *** [package/aria2/compile] Error 2
  128. make[1]: Leaving directory `/hi3716m/sun'
  129. make: *** [package/aria2/compile] Error 2


先贴这一部分,不知道能看错问题所在了没?
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
5楼  发表于: 2013-02-13 22:48
应该是没有libxml2这个库吧?
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
6楼  发表于: 2013-02-13 23:22
先编译libxml2,再编译aria2,解决问题

附件解压放到
/sun/bin/s5pc1xx/packages

make package/libxml2/compile
附件: libxml2.tar.gz (18 K) 下载次数:9
级别: 风云使者
UID: 36096
精华: 3
发帖: 2513
金钱: 14075 两
威望: 2815 点
贡献值: 3 点
综合积分: 5086 分
注册时间: 2011-01-11
最后登录: 2015-11-15
7楼  发表于: 2013-02-14 07:00
没错就是差libxml,另外话说你在移植hi3716m的openwrt?还是只是制作optware?
极度缺钱,求捐赠……支付宝兼邮箱:huming2207@qq.com
级别: 新手上路
UID: 87405
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-02-11
最后登录: 2017-09-13
8楼  发表于: 2013-02-17 11:50

 回 7楼(huhu2207) 的帖子

手头有个广电机顶盒是hi3716m的,不移植openwrt了,太麻烦
只编译自己需要的东西过去用用就算了,我看你们的optware做的不错啦。
另,我是新年那几天发邮件问你要sdk那位