[SRILM User List] Srilm C++ library compile problem
Yi Yang
yangyiycc at gmail.com
Wed Feb 27 17:03:07 PST 2013
Hi Andreas,
Thanks for your reply.
I rebuilt SRILM again. My machine is 64bit Linux. The process is as
following:
1. set NO_TCL = X in common/Makefile.machine.i686-m64
2. make World
3. make MACHINE_TYPE=i686-m64 World
4. make test
5. make cleanest
And after I run make test, the last lines of the output are:
*** Running test lattice-word-posteriors ***
real 0m0.033s
user 0m0.006s
sys 0m0.023s
lattice-word-posteriors: stdout output IDENTICAL.
lattice-word-posteriors: stderr output IDENTICAL.
make[1]: Leaving directory `/nethome/yyang319/software/srilm/lattice/test'
I did not meet any errors during the building process. However, I still got
the same errors when I try to compile my program with srilm library.
Did I make some mistakes while building SRILM?
Thank you so much.
Yi
On Wed, Feb 27, 2013 at 5:19 PM, Andreas Stolcke
<stolcke at icsi.berkeley.edu>wrote:
> On 2/27/2013 7:42 AM, Yi Yang wrote:
>
> Hi,
>
> I have a problem when I try to compile my C++ problem with srilm library.
>
> My commend is
>
> g++ srilmTest.cc -I/nethome/yyang319/software/srilm/include/
> -L/nethome/yyang319/software/srilm/lib/i686-m64/ -ldstruct -lflm -lmisc
> -loolm -ldl -lpthread -o srilmTest
>
>
> Did SRIM itself build correctly? Have you run '"make test" and did it
> work?
>
>
>
> And I got a lot of this kind of errors:
>
> /nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
> undefined reference to `srilm_tls_get_key()'
> /nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o):/nethome/yyang319/software/srilm/lm/src/../../include/TLSWrapper.h:50:
> more undefined references to `srilm_tls_get_key()' follow
>
>
> If you are having trouble with TLS you should try compiling with -DNO_TLS .
>
>
>
>
> /nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o): In
> function `LHash<unsigned int, NBestWordInfo>::alloc(unsigned int)':
> /nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:140:
> undefined reference to `BM_malloc'
> /nethome/yyang319/software/srilm/lib/i686-m64//liboolm.a(WordMesh.o): In
> function `LHash<unsigned int, NBestWordInfo>::insert(unsigned int, bool&)':
> /nethome/yyang319/software/srilm/lm/src/../../include/LHash.cc:407:
> undefined reference to `BM_free'
>
> This strongly indicates that your libraries didn't all build properly
> (hence my question above).
> BM_malloc, BM_free are defined in -ldstruct .
>
> Andreas
>
>
>
> I tried to address it for a long time, but failed.
>
> Does anybody have solutions for this problem?
>
> Thanks a lot!
>
> --
> Sincerely,
> Yi Yang
> http://www.cc.gatech.edu/~yyang319/
>
>
> _______________________________________________
> SRILM-User site listSRILM-User at speech.sri.comhttp://www.speech.sri.com/mailman/listinfo/srilm-user
>
>
>
--
Sincerely,
Yi Yang
http://www.cc.gatech.edu/~yyang319/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20130227/dfba448f/attachment.html>
More information about the SRILM-User
mailing list