[SRILM User List] make fails: libiconv functions undefined
Andreas Stolcke
stolcke at icsi.berkeley.edu
Sat Sep 6 11:54:57 PDT 2014
On 9/6/2014 7:10 AM, nimrod d wrote:
> Hello,
>
> When drying to build SRILM make fails for me because it cannot find
> the definition for libincov functions.
> How can I tell SRILM libinconv's location on my computer?
>
> I'm running Ubuntu 14.04
> I have libinconv installed at: /nimrod/libinconv-1.14
> and srilm installed at: /nimrod/srilm
>
> I do need unicode support so I cannot compile with the NO_ICONV flag
> activated.
>
> Thank you,
>
> following is the last part of the output I get for $ Make World
>
> g++ -march=athlon64 -m64 -Wall -Wno-unused-variable -Wno-uninitialized
> -DINSTANTIATE_TEMPLATES -fopenmp -I. -I../../include -u matherr
> -L../../lib/i686-m64 -g -O3 -o ../bin/i686-m64/ngram
> ../obj/i686-m64/ngram.o ../obj/i686-m64/liboolm.a
> ../../lib/i686-m64/libflm.a ../../lib/i686-m64/libdstruct.a
> ../../lib/i686-m64/libmisc.a ../../lib/i686-m64/libz.a -lm -lpthread
> 2>&1 | c++filt
The -liconv appears nowhere in the link command, so that's why you're
getting the undefined references. Try putting
SYS_LIBRARIES = -L/nimrod/libinconv-1.14 -liconv
in common/Makefile.site.i686-m64 . Make sure the -L option points to
the directory that has the libiconv.so or libiconv.a file.
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20140906/2af5f466/attachment.html>
More information about the SRILM-User
mailing list