2013-10-24 61 views
0

我在Cygwin上構建httrack,但它總是「檢查iconv中-liconv ... no」並編譯錯誤。如何使「檢查iconv in -liconv ... no」是

collect2: error: ld returned 1 exit status 
./.libs/libhttrack.a(htscharset.o): In function `hts_convertStringCharset': 
/home/myname/httrack/src/htscharset.c:441: undefined reference to `libiconv_open' 
/home/myname/httrack/src/htscharset.c:460: undefined reference to `libiconv' 
/home/myname/httrack/src/htscharset.c:491: undefined reference to `libiconv_close 

我在/ usr /本地/ libiconv的安裝libiconv1.1.4,但它仍然是錯誤。

nm /lib/libiconv.a | grep iconv 
iconv.o: 
00000000 D __libiconv_version 
00015960 T _iconv_canonicalize 
00015120 T _libiconv 
00015180 T _libiconv_close 
00014d00 T _libiconv_open 
000151a0 T _libiconv_open_into 
00015690 T _libiconvctl 
00015810 T _libiconvlist 
    U _libiconv_relocate 
000000d0 T _libiconv_relocate 
00000000 T _libiconv_set_relocation_prefix 
iconv-exports.o: 
00000000 D __imp___libiconv_version 
    U __libiconv_version 
libiconv.res.o: 

在配置代碼的iconv檢查:

### Check for iconv 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5 
$as_echo_n "checking for iconv in -liconv... " >&6; } 
if ${ac_cv_lib_iconv_iconv+:} false; then : 
    $as_echo_n "(cached) " >&6 
else 
    ac_check_lib_save_LIBS=$LIBS 
LIBS="-liconv $LIBS" 
+0

您需要仔細查看配置和構建日誌。 –

回答

0

httrack需要several patches建立和Cygwin的正常運行。 libiconv修補程序修復了iconv配置測試以在Cygwin(以及使用GNU libiconv的其他平臺)上工作。