TextBoxes_plusplus icon indicating copy to clipboard operation
TextBoxes_plusplus copied to clipboard

compile CRNN

Open PythonImageDeveloper opened this issue 7 years ago • 8 comments

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

PythonImageDeveloper avatar Feb 06 '18 09:02 PythonImageDeveloper

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

MhLiao avatar Feb 06 '18 12:02 MhLiao

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

PythonImageDeveloper avatar Feb 06 '18 13:02 PythonImageDeveloper

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.

MhLiao avatar Feb 09 '18 04:02 MhLiao

You need to set TORCH_ROOT where you installed Torch7.

qkgia avatar Feb 09 '18 23:02 qkgia

@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.

dissendahl avatar Feb 20 '18 16:02 dissendahl

Maybe #29 is helpful.

MhLiao avatar Mar 13 '18 13:03 MhLiao

@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

zhongyi-zhou avatar May 23 '18 08:05 zhongyi-zhou

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

jiachen0212 avatar Nov 18 '18 08:11 jiachen0212