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

compile CRNN #7

Open
PythonImageDeveloper opened this issue Feb 6, 2018 · 8 comments
Open

compile CRNN #7

PythonImageDeveloper opened this issue Feb 6, 2018 · 8 comments

Comments

@PythonImageDeveloper
Copy link

PythonImageDeveloper commented Feb 6, 2018

hi.
in this directory : cd crnn/src/ ,
when i use sh build_cpp.sh , i faced with this error :

mm@mm:~/TextBoxes_plusplus/crnn/src$ sh build_cpp.sh
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUAT_LIBRARY
linked by target "crnn" in directory /home/mm/TextBoxes_plusplus/crnn/src/cpp
THC_LIBRARY
linked by target "crnn" in directory /home/mm/TextBoxes_plusplus/crnn/src/cpp
THPP_LIBRARY
linked by target "crnn" in directory /home/mm/TextBoxes_plusplus/crnn/src/cpp
TH_LIBRARY
linked by target "crnn" in directory /home/mm/TextBoxes_plusplus/crnn/src/cpp

-- Configuring incomplete, errors occurred!
See also "/home/mm/TextBoxes_plusplus/crnn/src/cpp/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
cp: cannot stat '*.so': No such file or directory

@MhLiao
Copy link
Owner

MhLiao commented Feb 6, 2018

Please refer to https://github.com/bgshih/crnn to check your dependencies.
You should first install Torch7, fblualib and LMDB.

@PythonImageDeveloper
Copy link
Author

PythonImageDeveloper commented Feb 6, 2018

i installed those library , but i again get that error
which version of ubuntu you tested this ? 14 or 16 ?

@MhLiao
Copy link
Owner

MhLiao commented Feb 9, 2018

The versions of 14 and 16 are OK. From the error information, it seems that you lacks some libararies such as LUAT_LIBRARY, THC_LIBRARY, THPP_LIBRARY and TH_LIBRARY.

@qkgia
Copy link

qkgia commented Feb 9, 2018

You need to set TORCH_ROOT where you installed Torch7.

@dissendahl
Copy link

@zeynali: Could your problem be resolved in the meantime?
I am also struggeling getting THPP_LIBRARY
@MhLiao: Could you maybe provide some guidance on how to install THPP_LIBRARY as I am running into the same problems with same config. Cannot install TH++ standalone or as part of fbluabib.

@MhLiao
Copy link
Owner

MhLiao commented Mar 13, 2018

Maybe #29 is helpful.

@zhongyi-zhou
Copy link

@dissendahl you should install common the TH++ installation in the install_all.sh and install it manually

  1. downloading the gtest-1.7.0.zip towards /tmp/XXX/thpp/thpp
  2. comment the rm command, downloading and checking command in the build file

it works for me

@jiachen0212
Copy link

@zeynali have you solver the bug? i meet the same problem....

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

6 participants