LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1057|回复: 4

求助,编译kchmviewer失败~ [以解决]

[复制链接]
发表于 2005-10-23 10:18:08 | 显示全部楼层 |阅读模式
最近Arch下编译东西好郁闷
configure看似都正常,libXext在/usr/X11R6/lib下,但是后面那个ld的时候又没有把X的库包括进去
从aur找的PKGBUILD,应该没问题的
在我这就不行了

求助成功过的


  1. checking build system type... i686-pc-linux-gnu
  2. checking host system type... i686-pc-linux-gnu
  3. checking target system type... i686-pc-linux-gnu
  4. checking for a BSD-compatible install... /bin/install -c
  5. checking for -p flag to install... yes
  6. checking whether build environment is sane... yes
  7. checking for gawk... no
  8. checking for mawk... mawk
  9. checking whether make sets $(MAKE)... yes
  10. checking for style of include used by make... GNU
  11. checking for gcc... gcc
  12. checking for C compiler default output file name... a.out
  13. checking whether the C compiler works... yes
  14. checking whether we are cross compiling... no
  15. checking for suffix of executables...
  16. checking for suffix of object files... o
  17. checking whether we are using the GNU C compiler... yes
  18. checking whether gcc accepts -g... yes
  19. checking for gcc option to accept ANSI C... none needed
  20. checking dependency style of gcc... gcc3
  21. checking how to run the C preprocessor... gcc -E
  22. checking for g++... g++
  23. checking whether we are using the GNU C++ compiler... yes
  24. checking whether g++ accepts -g... yes
  25. checking dependency style of g++... gcc3
  26. checking whether g++ supports -Wmissing-format-attribute... yes
  27. checking whether gcc supports -Wmissing-format-attribute... yes
  28. checking whether g++ supports -Wundef... yes
  29. checking whether g++ supports -Wno-long-long... yes
  30. checking whether g++ supports -Wnon-virtual-dtor... yes
  31. checking whether g++ supports -fno-exceptions... yes
  32. checking whether g++ supports -fno-check-new... yes
  33. checking whether g++ supports -fno-common... yes
  34. checking whether g++ supports -fexceptions... yes
  35. checking how to run the C++ preprocessor... g++ -E
  36. checking whether g++ supports -O0... yes
  37. checking whether g++ supports -Wl,--no-undefined... yes
  38. checking whether g++ supports -Wl,--allow-shlib-undefined... yes
  39. checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
  40. checking for gethostbyname... yes
  41. checking for connect... yes
  42. checking for remove... yes
  43. checking for shmat... yes
  44. checking for IceConnectionNumber in -lICE... yes
  45. not using lib directory suffix
  46. checking for a sed that does not truncate output... /bin/sed
  47. checking for egrep... grep -E
  48. checking for ld used by gcc... /usr/bin/ld
  49. checking if the linker (/usr/bin/ld) is GNU ld... yes
  50. checking for /usr/bin/ld option to reload object files... -r
  51. checking for BSD-compatible nm... /usr/bin/nm -B
  52. checking whether ln -s works... yes
  53. checking how to recognise dependent libraries... pass_all
  54. checking for ANSI C header files... yes
  55. checking for sys/types.h... yes
  56. checking for sys/stat.h... yes
  57. checking for stdlib.h... yes
  58. checking for string.h... yes
  59. checking for memory.h... yes
  60. checking for strings.h... yes
  61. checking for inttypes.h... yes
  62. checking for stdint.h... yes
  63. checking for unistd.h... yes
  64. checking dlfcn.h usability... yes
  65. checking dlfcn.h presence... yes
  66. checking for dlfcn.h... yes
  67. checking for g77... no
  68. checking for f77... no
  69. checking for xlf... no
  70. checking for frt... no
  71. checking for pgf77... no
  72. checking for fort77... no
  73. checking for fl32... no
  74. checking for af77... no
  75. checking for f90... no
  76. checking for xlf90... no
  77. checking for pgf90... no
  78. checking for epcf90... no
  79. checking for f95... no
  80. checking for fort... no
  81. checking for xlf95... no
  82. checking for ifc... no
  83. checking for efc... no
  84. checking for pgf95... no
  85. checking for lf95... no
  86. checking for gfortran... no
  87. checking whether we are using the GNU Fortran 77 compiler... no
  88. checking whether  accepts -g... no
  89. checking the maximum length of command line arguments... 32768
  90. checking command to parse /usr/bin/nm -B output from gcc object... ok
  91. checking for objdir... .libs
  92. checking for ar... ar
  93. checking for ranlib... ranlib
  94. checking for strip... strip
  95. checking if gcc static flag  works... yes
  96. checking if gcc supports -fno-rtti -fno-exceptions... no
  97. checking for gcc option to produce PIC... -fPIC
  98. checking if gcc PIC flag -fPIC works... yes
  99. checking if gcc supports -c -o file.o... yes
  100. checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
  101. checking whether -lc should be explicitly linked in... no
  102. checking dynamic linker characteristics... GNU/Linux ld.so
  103. checking how to hardcode library paths into programs... immediate
  104. checking whether stripping libraries is possible... yes
  105. checking for shl_load... no
  106. checking for shl_load in -ldld... no
  107. checking for dlopen... no
  108. checking for dlopen in -ldl... yes
  109. checking whether a program can dlopen itself... yes
  110. checking whether a statically linked program can dlopen itself... yes
  111. checking if libtool supports shared libraries... yes
  112. checking whether to build shared libraries... yes
  113. checking whether to build static libraries... yes
  114. configure: creating libtool
  115. appending configuration tag "CXX" to libtool
  116. checking for ld used by g++... /usr/bin/ld
  117. checking if the linker (/usr/bin/ld) is GNU ld... yes
  118. checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
  119. checking for g++ option to produce PIC... -fPIC
  120. checking if g++ PIC flag -fPIC works... yes
  121. checking if g++ supports -c -o file.o... yes
  122. checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
  123. checking dynamic linker characteristics... GNU/Linux ld.so
  124. checking how to hardcode library paths into programs... immediate
  125. checking whether stripping libraries is possible... yes
  126. checking for shl_load... (cached) no
  127. checking for shl_load in -ldld... (cached) no
  128. checking for dlopen... (cached) no
  129. checking for dlopen in -ldl... (cached) yes
  130. checking whether a program can dlopen itself... (cached) yes
  131. checking whether a statically linked program can dlopen itself... (cached) yes
  132. appending configuration tag "F77" to libtool
  133. checking for strlcat... no
  134. checking if strlcat needs custom prototype... yes - in libkdefakes
  135. checking for strlcpy... no
  136. checking if strlcpy needs custom prototype... yes - in libkdefakes
  137. checking for main in -lutil... yes
  138. checking for main in -lcompat... no
  139. checking for crypt in -lcrypt... yes
  140. checking for socklen_t... yes
  141. checking for dnet_ntoa in -ldnet... no
  142. checking for dnet_ntoa in -ldnet_stub... no
  143. checking for inet_ntoa... yes
  144. checking for connect... (cached) yes
  145. checking for remove... (cached) yes
  146. checking for shmat... (cached) yes
  147. checking for sys/types.h... (cached) yes
  148. checking for stdint.h... (cached) yes
  149. checking sys/bitypes.h usability... yes
  150. checking sys/bitypes.h presence... yes
  151. checking for sys/bitypes.h... yes
  152. checking for poll in -lpoll... no
  153. checking Carbon/Carbon.h usability... no
  154. checking Carbon/Carbon.h presence... no
  155. checking for Carbon/Carbon.h... no
  156. checking CoreAudio/CoreAudio.h usability... no
  157. checking CoreAudio/CoreAudio.h presence... no
  158. checking for CoreAudio/CoreAudio.h... no
  159. checking if res_init needs -lresolv... yes
  160. checking for res_init... yes
  161. checking if res_init needs custom prototype... no
  162. checking for killpg in -lucb... no
  163. checking for int... yes
  164. checking size of int... 4
  165. checking for short... yes
  166. checking size of short... 2
  167. checking for long... yes
  168. checking size of long... 4
  169. checking for char *... yes
  170. checking size of char *... 4
  171. checking for dlopen in -ldl... (cached) yes
  172. checking for shl_unload in -ldld... no
  173. checking for size_t... yes
  174. checking size of size_t... 4
  175. checking for unsigned long... yes
  176. checking size of unsigned long... 4
  177. checking sizeof size_t == sizeof unsigned long... yes
  178. checking crt_externs.h usability... no
  179. checking crt_externs.h presence... no
  180. checking for crt_externs.h... no
  181. checking for _NSGetEnviron... no
  182. checking for vsnprintf... yes
  183. checking for snprintf... yes
  184. checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
  185. checking for IceConnectionNumber in -lICE... (cached) yes
  186. checking for libXext... yes
  187. checking for pthread_create in -lpthread... yes
  188. checking for extra includes... no
  189. checking for extra libs... no
  190. checking for libz... -lz
  191. checking for libpng... -lpng -lz -lm
  192. checking for libjpeg6b... no
  193. checking for libjpeg... -ljpeg
  194. checking for perl... /usr/bin/perl
  195. checking for Qt... libraries /opt/qt/lib, headers /opt/qt/include using -mt
  196. checking for moc... /opt/qt/bin/moc
  197. checking for uic... /opt/qt/bin/uic
  198. checking whether uic supports -L ... yes
  199. checking whether uic supports -nounload ... yes
  200. checking if Qt needs -ljpeg... no
  201. configure: creating ./config.status
  202. config.status: creating src/Makefile
  203. config.status: creating Makefile
  204. config.status: creating kio-msits/Makefile
  205. config.status: creating chmlib-0.35/Makefile
  206. config.status: creating src/config.h
  207. config.status: src/config.h is unchanged
  208. config.status: executing depfiles commands

  209. Please remember to use GNU make, often installed as gmake.

  210. Install prefix : /usr
  211. KDE support    : disabled.
  212. Qt includes    : -I/opt/qt/include
  213. Qt libraries   : -lqt-mt  $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread
复制代码


  1. /opt/qt/include/private/qucomextra_p.h:87: warning: ‘struct QUType_varptr’ has v                                             irtual functions but non-virtual destructor
  2. /bin/sh ../libtool --silent --tag=CXX --mode=link g++  -Wnon-virtual-dtor -Wno-l                                             ong-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversi                                             on -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -march=i686 -O                                             2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-                                             new -fno-common    -o kchmviewer -L/opt/qt/lib  iconstorage.o kchmbookmarkwindow                                             .o kchmconfig.o kchmindexwindow.o kchmmainwindow.o kchmsearchtoolbar.o kchmsearc                                             hwindow.o kchmsettings.o kchmsourcefactory.o kchmtextencoding.o kchmtreeviewitem                                             .o kchmviewwindow.o main.o xchmfile.o kchmdialogchooseurlfromlist.o kde-qt.o kch                                             mviewwindow_qtextbrowser.o kchmviewwindow_khtmlpart.o kchmsetupdialog.o kchmbook                                             markwindow.moc.o kchmsearchwindow.moc.o kchmviewwindow_qtextbrowser.moc.o kchmin                                             dexwindow.moc.o kchmdialogchooseurlfromlist.moc.o kchmmainwindow.moc.o kchmsearc                                             htoolbar.moc.o  ../chmlib-0.35/libchm.la -lqt-mt  -lz -lpng -lz -lm -lXext -lX11                                               -lSM -lICE -lpthread   
  3. /usr/bin/ld: cannot find -lXext
  4. collect2: ld returned 1 exit status
  5. make[2]: *** [kchmviewer] Error 1
  6. make[2]: Leaving directory `/var/abs/local/kchmviewer/src/kchmviewer-1.0/src'
  7. make[1]: *** [all] Error 2
  8. make[1]: Leaving directory `/var/abs/local/kchmviewer/src/kchmviewer-1.0/src'
  9. make: *** [all-recursive] Error 1
复制代码
 楼主| 发表于 2005-10-23 11:06:21 | 显示全部楼层
我把makefile改了
在kchmviewer_LDFLAGS = $(QT_LDFLAGS) $(KDE_LDFLAGS)后加了一个$(X_LDFLAGS)
回复 支持 反对

使用道具 举报

发表于 2005-11-22 23:53:38 | 显示全部楼层
Post by tmacd
我把makefile改了
在kchmviewer_LDFLAGS = $(QT_LDFLAGS) $(KDE_LDFLAGS)后加了一个$(X_LDFLAGS)



我的makefile里怎么没有这行?能否贴上修改的PKGBUILD或者编译成功的包?3x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-23 07:18:36 | 显示全部楼层
我是手动改的makefile~

不敢贴pkgbuild,估计只能在我的机器上用

直接传pkg包了

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2005-11-23 09:51:22 | 显示全部楼层
可用,谢谢!
BTW: 最新版似乎是1.2
回复 支持 反对

使用道具 举报

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

本版积分规则

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