jiaxibei2008 / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

LM building error in makefile #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
error after make command
i want to develop language model but following error occurs
checke attached make file
mitlm using latest version from svn repository
ubuntu 12.04 32bit system

libtool: link: /usr/bin/nm -B  src/util/.libs/CommandOptions.o 
src/util/.libs/RefCounter.o src/util/.libs/Logger.o src/.libs/NgramLM.o 
src/.libs/Vocab.o src/.libs/PerplexityOptimizer.o src/.libs/Lattice.o 
src/.libs/Smoothing.o src/.libs/NgramModel.o src/.libs/NgramVector.o 
src/.libs/MaxLikelihoodSmoothing.o src/.libs/KneserNeySmoothing.o 
src/.libs/InterpolatedNgramLM.o src/optimize/.libs/lbfgs.o 
src/optimize/.libs/lbfgsb.o src/optimize/.libs/fortran_wrapper.o 
src/.libs/WordErrorRateOptimizer.o   | sed -n -e 's/^.*[     
]\([ABCDGIRSTW][ABCDGIRSTW]*\)[  ][  ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' 
| sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libmitlm.exp
libtool: link: /bin/grep -E -e "mitlm" ".libs/libmitlm.exp" > 
".libs/libmitlm.expT"
libtool: link: mv -f ".libs/libmitlm.expT" ".libs/libmitlm.exp"
libtool: link: g++  -fPIC -DPIC -shared -nostdlib 
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crti.o 
/usr/lib/gcc/i686-linux-gnu/4.6/crtbeginS.o  src/util/.libs/CommandOptions.o 
src/util/.libs/RefCounter.o src/util/.libs/Logger.o src/.libs/NgramLM.o 
src/.libs/Vocab.o src/.libs/PerplexityOptimizer.o src/.libs/Lattice.o 
src/.libs/Smoothing.o src/.libs/NgramModel.o src/.libs/NgramVector.o 
src/.libs/MaxLikelihoodSmoothing.o src/.libs/KneserNeySmoothing.o 
src/.libs/InterpolatedNgramLM.o src/optimize/.libs/lbfgs.o 
src/optimize/.libs/lbfgsb.o src/optimize/.libs/fortran_wrapper.o 
src/.libs/WordErrorRateOptimizer.o   -Wl,-rpath -Wl,/home/java/test/mitlm/.libs 
-L. -lgfortran /home/java/test/mitlm/.libs/libmitlm.so 
-L/usr/lib/gcc/i686-linux-gnu/4.6 
-L/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu 
-L/usr/lib/gcc/i686-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu 
-L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib 
-L/usr/lib/gcc/i686-linux-gnu/4.6/../../.. -lstdc++ -lm -lc -lgcc_s 
/usr/lib/gcc/i686-linux-gnu/4.6/crtendS.o 
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crtn.o    -Wl,-soname 
-Wl,libmitlm.so.0 -Wl,-retain-symbols-file -Wl,.libs/libmitlm.exp -o 
.libs/libmitlm.so.0.0.0
g++: error: /home/java/test/mitlm/.libs/libmitlm.so: No such file or directory
make[1]: *** [libmitlm.la] Error 1
make[1]: Leaving directory `/home/java/test/mitlm'
make: *** [all-recursive] Error 1

Original issue reported on code.google.com by chandios...@gmail.com on 21 Feb 2015 at 7:18

Attachments:

GoogleCodeExporter commented 8 years ago
Is there any other web service like lmtool to build language model.? which give 
better result than lmtool. i have a problem in using mitlm to build language 
model.

 any other tool to build language model or any open source speech api which i can use to develop speech recognition application with accuracy as same as gooogle speech api provides 

any help will be appreciated 
thanks in advance 

Original comment by chandios...@gmail.com on 23 Feb 2015 at 7:32

GoogleCodeExporter commented 8 years ago
I think I had a similar error. Try downloading MITLM from this fork 
https://github.com/orezpraw/MIT-Language-Modeling-Toolkit. Then try the 
directions on this SO question 
http://stackoverflow.com/questions/29588994/mac-error-undefined-symbols-for-arch
itecture-x86-64/29589207#29589207

Original comment by a.goodk...@gmail.com on 14 Apr 2015 at 8:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
thanks for your reply

hi dear i am  following the instructions given on the stack overflow page but 
now following error occurs 

cc1plus: error: unrecognized command line option '-std=c++11'
cc1plus: error: unrecognized command line option '-std=c++11'
cc1plus: error: unrecognized command line option '-stdlib=libc++'
make[1]: *** [src/util/CommandOptions.lo] Error 1
make[1]: Leaving directory 
`/home/saddam/softwareforsphinx/MIT-Language-Modeling-Toolkit'
make: *** [all-recursive] Error 1

Original comment by chandios...@gmail.com on 21 Apr 2015 at 4:21