Good evening all
I recently pulled the latest version of moses using git. I ran into some
problems during compilation and installation. Using jam, I got many such
messages (more than a dozen I think):
gcc.link /home/sylvain/loria/mosesdecoder/lm/query
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
lm/bin/gcc-4.5.3/release/debug-symbols-on/threading-multi/ngram_query.o:
undefined reference to symbol 'util::scoped_memory::reset(void*, unsigned long,
util::scoped_memory::Alloc)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
note: 'util::scoped_memory::reset(void*, unsigned long,
util::scoped_memory::Alloc)' is defined in DSO
/home/sylvain/loria/mosesdecoder/util/bin/gcc-4.5.3/release/debug-symbols-
on/threading-multi/libkenutil.so so try adding it to the linker command line
/home/sylvain/loria/mosesdecoder/util/bin/gcc-4.5.3/release/debug-symbols-
on/threading-multi/libkenutil.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
"g++" -Wl,-R -Wl,"/home/sylvain/loria/mosesdecoder/lm" -Wl,-rpath-link -
Wl,"/home/sylvain/loria/mosesdecoder/lm/bin/gcc-4.5.3/release/debug-symbols-
on/threading-multi" -Wl,-rpath-link -
Wl,"/home/sylvain/loria/mosesdecoder/util/bin/gcc-4.5.3/release/debug-symbols-
on/threading-multi" -o "/home/sylvain/loria/mosesdecoder/lm/query" -Wl,--
start-group "lm/bin/gcc-4.5.3/release/debug-symbols-on/threading-
multi/ngram_query.o" "lm/bin/gcc-4.5.3/release/debug-symbols-on/threading-
multi/libkenlm.so" -Wl,-Bstatic -Wl,-Bdynamic -lboost_thread-mt -lrt -Wl,--
end-group -g -pthread
If I run the command manually and just add -lkenutil at the ends, it links
just fine. Am I missing something here?
I'm running into another problem wich I've been so far unable to solve: I'm
developping a software which makes use of Moses library. With previous
version, I used to include many headers (for example Sentence.h) which I could
install, as far as I remember, wherever suited my needs (/usr/local/include in
my case). Now, using bjam --prefix=/usr/local link=shared, I've been able to
install DSO into /usr/local/lib, but could find a way to install headers. Do I
have to specify -I/path/to/mosesdecoder/moses/src etc. in my software CFLAGS?
or is there a proper way to install headers? it seems rather strange to me
that I can install DSO but not headers as it seems quite useless...
best regards,
--
Sylvain Raybaud
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support