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

ctc_loss.cpp:509:10: fatal error: 'ctc.h' file not found #28

Open
eravallirao opened this issue Jun 17, 2019 · 15 comments
Open

ctc_loss.cpp:509:10: fatal error: 'ctc.h' file not found #28

eravallirao opened this issue Jun 17, 2019 · 15 comments

Comments

@eravallirao
Copy link

Screenshot 2019-06-17 at 4 44 56 PM
I am getting the above warning while running "make"

After that while running this command python3 setup.py build_ext --inplace I am getting the below error.
Screenshot 2019-06-17 at 4 46 49 PM
Can you please help me with this

@Bartzi
Copy link
Owner

Bartzi commented Jun 17, 2019

did you run make install after building warp_ctc? Did you make sure that Cython is able to find the header files of warp_ctc.

@eravallirao
Copy link
Author

Screenshot 2019-06-17 at 4 53 40 PM
I am getting this while running make install

@eravallirao
Copy link
Author

I tried giving "sudo"
Screenshot 2019-06-17 at 4 55 37 PM

@eravallirao
Copy link
Author

Did you make sure that Cython is able to find the header files of warp_ctc?
How can we check this? I am little bit new to this, please don't mind if I am asking for basics.

@Bartzi
Copy link
Owner

Bartzi commented Jun 17, 2019

if your CMAKE_INSTALL_PREFIX is set to /usr/local. Cython should be able to find your files, once you did run make install successfully.

@eravallirao
Copy link
Author

I followed the path you asked to, still I am getting the error of ctc.h not found

@eravallirao
Copy link
Author

Do you have any docker setup available

@Bartzi
Copy link
Owner

Bartzi commented Jun 19, 2019

did you check that ctc.h is in /usr/local/include?
Unfortunately, I can not provide a docker image at the moment.

@eravallirao
Copy link
Author

Sorry for late reply.
Yeah I did check, It was not there. I copied the ctc.h file and copied into the path you specified and ran it. I am getting other error
Screenshot 2019-06-20 at 11 57 49 AM

@Bartzi
Copy link
Owner

Bartzi commented Jun 20, 2019

It seems that the linker can not find the library. Where is your compiled library stored on your pc? Is that path in your environment variable LD_LIBRARY_PATH?

@eravallirao
Copy link
Author

Sorry can you please tell me about the compiled library? FYI I don't have CUDA. I am running it on MAC

@eravallirao
Copy link
Author

sukshis-MacBook-Air-2:ctc Puru$ echo $LD_LIBRARY_PATH
/Users/sukshi/torch/install/lib:

@Bartzi
Copy link
Owner

Bartzi commented Jun 20, 2019

the compiler creates a .so file once you are done with compiling the warpctc library. That is the file I'm talking about. If you place this file in /Users/sukshi/torch/install/lib the compiler, compiling the python extension, might find it.

@eravallirao
Copy link
Author

Screenshot 2019-06-20 at 2 00 37 PM
Are you talking about the same .so file which is in that directory?

@Bartzi
Copy link
Owner

Bartzi commented Jun 20, 2019

No, I'm talking about a file that sshould be named libwarpctc.so or something like that. I see that you have a libwarpctc.dylib file. This might be a mac equivalent of a .so file but I don't know anything about macs and I can not help you with that. In the Linux world you'll need a .so file for the linker but how that stuff works on mac (if it is different at all) I really don't know.

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