Hi everyone,

I'm trying to compile the python interface to Moses in the latest commit of 
Moses. Following the readme, I compiled Moses with link=shared
./bjam -q -j4 --with-boost=/path/to/boost link=shared

And then I tried 
python setup.py build_ext -i

But I get the following error:
mosesdir=/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7
includes=['/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7',
 '/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/moses', 
'/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/OnDiskPt']
libdir=/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/lib
cmph=False
running build_ext
building 'moses.dictree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -fPIC -I. 
-I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7 
-I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/moses 
-I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/OnDiskPt
 -I/home/nicruiz/.pythonbrew/pythons/Python-2.7.3/include/python2.7 -c 
moses/dictree.cpp -o build/temp.linux-x86_64-2.7/moses/dictree.o -O3 
-DMAX_NUM_FACTORS=1
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
moses/dictree.cpp:258:34: error: PhraseDictionaryTree.h: No such file or 
directory
moses/dictree.cpp:632: error: ISO C++ forbids declaration of 
‘PhraseDictionaryTree’ with no type
...

I also tried setting the --moses-lib param explicitly, but it didn't work. Any 
ideas?

Thanks,
Nick
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to