Bartzi / stn-ocr

Code for the paper STN-OCR: A single Neural Network for Text Detection and Text Recognition
https://arxiv.org/abs/1707.08831
GNU General Public License v3.0
499 stars 137 forks source link

Install error #22

Open Banyueqin opened 6 years ago

Banyueqin commented 6 years ago

$ 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

Bartzi commented 6 years ago

Sorry, I can't read chinese... what's your problem?

Banyueqin commented 6 years ago

没有那个文件或目录 this mean ‘can't find file or dirctory'

Bartzi commented 6 years ago

did you install warpctc as mentioned in the README?

Banyueqin commented 6 years ago

yes

Bartzi commented 6 years ago

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...

Banyueqin commented 6 years ago

let me check, thank you

Banyueqin commented 6 years ago

I don't find the file ctc.h in /usr/include

Bartzi commented 6 years ago

That's what I said. Did you set the install_prefix for warpctc correctly? Did you do make install?