Open Banyueqin opened 6 years ago
Sorry, I can't read chinese... what's your problem?
没有那个文件或目录 this mean ‘can't find file or dirctory'
did you install warpctc
as mentioned in the README?
yes
okay, then there is something wrong with your paths... you have to make sure that the file ctc.h
can be found by the compiler... I don't know if anaconda makes things difficult or not, but as long as the file is in /usr/include
(and the library in its place in /usr/lib
) it should work...
let me check, thank you
I don't find the file ctc.h in /usr/include
That's what I said. Did you set the install_prefix
for warpctc
correctly? Did you do make install
?
$ python setup.py build_ext --inplace Warning: Extension name 'ctc_loss' does not match fully qualified name 'metrics.ctc.ctc_loss' of 'ctc_loss.pyx' running build_ext building 'ctc_loss' extension gcc -pthread -B /home/jxf/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jxf/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/home/jxf/anaconda3/include/python3.6m -c ctc_loss.cpp -o build/temp.linux-x86_64-3.6/ctc_loss.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ ctc_loss.cpp:509:17: fatal error: ctc.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1