Hi Hieu,
I've created MYLM.cpp, MYLM.h and defined them in FF/Factory.cpp. It turns
out that I also need to change the jamfile but it is not clear how to do
it. I looked at others and tried to add something similar but the "lib"
part keeps fails the build process. Here is what I added to the jamfile:
#MYLM
local with-mylm = [ option.get "with-mylm" ] ;
if $(with-mylm) {
lib mylm-lib : : <search>$(with-mylm)/external/toolkit/lib ;
obj MYLM.o : MYLM.cpp ..//headers : <include>$(with-mylm)/include ;
alias mylm : MYLM.o mylm-lib : : : <define>LM_MY ;
dependencies += mylm ;
lmmacros += LM_MY ;
}
*After calling:*
./bjam --with-boost=/LM/mosesdecoder/boost_1_55_0 -j8
--with-mylm=/MYLANGMOD/ toolset=gcc cxxflags="-std=c++11"
*I get this error:*
gcc.link moses-cmd/bin/gcc-4.9.2/release/link-static/threading-multi/moses
/usr/bin/ld: cannot find -lmylm-lib
collect2: error: ld returned 1 exit status
I cannot interpret the error as any solutions I tried have failed. Any
comments?
Thanks!
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support