bgshih / crnn

Convolutional Recurrent Neural Network (CRNN) for image-based sequence recognition.
MIT License
2.06k stars 552 forks source link

sh build_cpp.sh #103

Open PythonImageDeveloper opened 6 years ago

PythonImageDeveloper commented 6 years ago

Hi when i run sh build_cpp.sh , i faced this error .

mm@mm:~/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: THPP_LIBRARY linked by target "crnn" in directory /home/mm/crnn/src/cpp

-- Configuring incomplete, errors occurred! See also "/home/mm/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

i also installed Torch7, fblualib and LMDB , my system ubuntu 16.04 , cuda8 , cudnn 5 , opencv3 . the fblualib library must be installed only with this command : sh install_all.sh ????? and must to be installed fblualib separately or needed to add torch folder ?
this worked on ubuntu 16.04?

qnkhuat commented 6 years ago

I solved byinstall thpp separately But the current commit is not run on 16.04. I find that this commit is works. Hope it helps. Get THPP at https://github.com/facebook/thpp, then git checkout d358a52

PythonImageDeveloper commented 6 years ago

Hi, " I find that this commit is works." what's your mean ? worked on 16.04 or no ? Do you install folly , fbthrift before install THPP , these are optional , i don't know these are must be installed or no ? please give me commands for install THPP. when i run THPP_NOFB=1 ./build.sh for compile THPP , i faced with this error :

In file included from thpp/detail/TensorGeneric.h:1:0, from /home/mm/torch/install/include/TH/THGenerateFloatTypes.h:10, from /home/mm/torch/install/include/TH/THGenerateAllTypes.h:10, from /home/mm/thpp/thpp/../thpp/detail/Tensor.h:30, from /home/mm/thpp/thpp/../thpp/Tensor.h:16, from /home/mm/thpp/thpp/TensorSerialization.cpp:11: /home/mm/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor >::_max(THFloatTensor, THLongTensor, THFloatTensor, int)’: /home/mm/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor, THLongTensor, THFloatTensor, int, int)’ return THTensor_(max)(values, indices, t, dim); [.............] ^ CMakeFiles/thpp.dir/build.make:134: recipe for target 'CMakeFiles/thpp.dir/TensorSerialization.cpp.o' failed make[2]: [CMakeFiles/thpp.dir/TensorSerialization.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed make[1]: [CMakeFiles/thpp.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

arsalan993 commented 6 years ago

@qnkhuat please tell me how to install thpp

dissendahl commented 6 years ago

@arsalan993 : Have you been able to install thpp? I am running into the same error.

arsalan993 commented 6 years ago

I gave up on this repository

hobbs commented 6 years ago

@arsalan993 did you find a suitable alternative? I can't get this to build either

qnkhuat commented 6 years ago

@arsalan993 clone thpp and then check out to d358a52 then run ./build.sh. I did the following

saxenarohit commented 6 years ago

check out to d358a52 does not work

In file included from thpp/detail/TensorGeneric.h:1:0, from /home/u556552/torch/install/include/TH/THGenerateFloatTypes.h:10, from /home/u556552/torch/install/include/TH/THGenerateAllTypes.h:10, from /tmp/fblualib-build.NiwTzw/thpp/thpp/../thpp/detail/Tensor.h:30, from /tmp/fblualib-build.NiwTzw/thpp/thpp/../thpp/Tensor.h:16, from /tmp/fblualib-build.NiwTzw/thpp/thpp/TensorSerialization.cpp:11: /tmp/fblualib-build.NiwTzw/thpp/thpp/../thpp/detail/TensorGeneric.h: In static member function ‘static void thpp::detail::TensorOps<thpp::Tensor<float> >::_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int)’: /tmp/fblualib-build.NiwTzw/thpp/thpp/../thpp/detail/TensorGeneric.h:191:50: error: too few arguments to function ‘void THFloatTensor_max(THFloatTensor*, THLongTensor*, THFloatTensor*, int, int)’ return THTensor_(max)(values, indices, t, dim);

ashavish commented 6 years ago

Has anybody been able to solve this error.. ran fblualib without any errors, but still got this CMake error for THPP_LIBRARY. Tried out the other option to install thpp and check out the d358a52, but then it starts searching for folly and errors out there.

sungwonida commented 5 years ago

Has anybody been able to solve this error.. ran fblualib without any errors, but still got this CMake error for THPP_LIBRARY. Tried out the other option to install thpp and check out the d358a52, but then it starts searching for folly and errors out there.

@ashavish You can ignore folly by passing an argument. Try THPP_NOFB=1 ./build.sh