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

Error in insallation: /usr/bin/ld: cannot find -lwarpctc #8

Open
varun-bankiti opened this issue Oct 31, 2017 · 4 comments
Open

Error in insallation: /usr/bin/ld: cannot find -lwarpctc #8

varun-bankiti opened this issue Oct 31, 2017 · 4 comments

Comments

@varun-bankiti
Copy link

varun-bankiti commented Oct 31, 2017

Hello @Bartzi

I fallowed the installation instruction and done up-to step 4 (i.e insall warp-ctc from here).

When I ran python setup.py build_ext --inplace initially it gave me
ctc_loss.cpp:509:17: fatal error: ctc.h: No such file or directory similar to this

When I added the include folder from warp-ctc to the $CPLUS_INCLUDE_PATH, that is gone.

But, now it is giving me this error : /usr/bin/ld: cannot find -lwarpctc

Here is the full stack trace, if that helps.

Can you please give more details about how to install warp-ctc and how to verify its installed correctly(w.r.t this project).

Some details about environment: Ubuntu 16.04, no GPU, python 3.5.2. LMK if any other details will be useful to resolve it.

Thanks.

@varun-bankiti varun-bankiti changed the title /usr/bin/ld: cannot find -lwarpctc Error: /usr/bin/ld: cannot find -lwarpctc Oct 31, 2017
@varun-bankiti varun-bankiti changed the title Error: /usr/bin/ld: cannot find -lwarpctc Error in insallation: /usr/bin/ld: cannot find -lwarpctc Oct 31, 2017
@Bartzi
Copy link
Owner

Bartzi commented Nov 1, 2017

Well...
you should try to run make install after you've followed all installation steps, provided in the warpctc readme.
You can change the install directory by editing the values in the cmake cache.

@jugg1024
Copy link

jugg1024 commented Dec 6, 2017

I've already put libwarpctc.so into $LD_LIBRARY_PATH
but setup.py build_ext --inplace still can not find -lwarpctc
by change -lwarpctc into -L/my/path/to/libwarpctc.so compilation done

@Bartzi
Copy link
Owner

Bartzi commented Dec 6, 2017

where did you put libwarpctc.so? Is it in one of the default search locations, like /usr/lib or /usr/local/lib or is it a path defined by yourself?
But even if you placed the library in a non-default path and added this path correctly to LD_LIBRARY_PATH it should be able to find the library by itself, although I'm not too proficient with the python build tools. It might be that there is another issue with that...

@jugg1024
Copy link

jugg1024 commented Dec 7, 2017

@Bartzi thx for reply, its in my local path, not system path like /usr/lib.

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

3 participants