travatar icon indicating copy to clipboard operation
travatar copied to clipboard

Got error with icui18n when compiling

Open xuanchien opened this issue 8 years ago • 4 comments

Hi,

I got the following issue when compiling travatar on my Mac (version OS X 10.10.5). Here is the log:

depbase=`echo travatar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -DHAVE_CONFIG_H -I. -I../../src/include/travatar    -g -O3 -Wall -DKENLM_MAX_ORDER=6 -I./../include -pthread -I/usr/local/include -g -O2 -MT travatar.o -MD -MP -MF $depbase.Tpo -c -o travatar.o travatar.cc &&\
    mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../libtool --tag=CXX   --mode=link g++ -g -O3 -Wall -DKENLM_MAX_ORDER=6 -I./../include -pthread -I/usr/local/include -g -O2   -o travatar travatar.o ../lib/libtravatar.la ../kenlm/lm/libklm.la ../kenlm/util/libklm_util.la ../kenlm/search/libklm_search.la ../tercpp/libter.la ../marisa/libmarisa.la ../liblbfgs/liblbfgs.la -L/usr/local/lib -lboost_thread-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_system -lboost_locale-mt  -lz -licui18n -licuuc -licudata
libtool: link: g++ -g -O3 -Wall -DKENLM_MAX_ORDER=6 -I./../include -pthread -I/usr/local/include -g -O2 -o .libs/travatar travatar.o -Wl,-bind_at_load  ../lib/.libs/libtravatar.dylib ../kenlm/lm/.libs/libklm.dylib ../kenlm/util/.libs/libklm_util.dylib ../kenlm/search/.libs/libklm_search.dylib ../tercpp/.libs/libter.dylib ../marisa/.libs/libmarisa.dylib ../liblbfgs/.libs/liblbfgs.a -L/usr/local/lib -lboost_thread-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_system -lboost_locale-mt -lz -licui18n -licuuc -licudata -pthread
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [travatar] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Even though I have already installed icu4c using Homebrew, it does not solve the issue. Do you have any suggestions for resolving this?

Thanks in advance!

xuanchien avatar Jul 28 '16 09:07 xuanchien