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

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

Open varun-bankiti opened 7 years ago

varun-bankiti commented 7 years ago

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.

Bartzi commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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