Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error #22

Open
Banyueqin opened this issue Apr 24, 2018 · 8 comments
Open

Install error #22

Banyueqin opened this issue Apr 24, 2018 · 8 comments

Comments

@Banyueqin
Copy link

$ 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
Copy link
Owner

Bartzi commented Apr 24, 2018

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

@Banyueqin
Copy link
Author

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

@Bartzi
Copy link
Owner

Bartzi commented Apr 24, 2018

did you install warpctc as mentioned in the README?

@Banyueqin
Copy link
Author

yes

@Bartzi
Copy link
Owner

Bartzi commented Apr 24, 2018

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
Copy link
Author

let me check, thank you

@Banyueqin
Copy link
Author

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

@Bartzi
Copy link
Owner

Bartzi commented Apr 24, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants