crnn icon indicating copy to clipboard operation
crnn copied to clipboard

sh build_cpp.sh

Open PythonImageDeveloper opened this issue 6 years ago • 10 comments

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?

PythonImageDeveloper avatar Feb 06 '18 13:02 PythonImageDeveloper

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

qnkhuat avatar Feb 07 '18 00:02 qnkhuat

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

PythonImageDeveloper avatar Feb 07 '18 06:02 PythonImageDeveloper

@qnkhuat please tell me how to install thpp

arsalan993 avatar Feb 08 '18 07:02 arsalan993

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

dissendahl avatar Feb 20 '18 17:02 dissendahl

I gave up on this repository

arsalan993 avatar Feb 20 '18 17:02 arsalan993

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

hobbs avatar Feb 21 '18 21:02 hobbs

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

qnkhuat avatar Feb 22 '18 01:02 qnkhuat

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);

saxenarohit avatar May 23 '18 13:05 saxenarohit

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 avatar Jun 28 '18 12:06 ashavish

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

sungwonida avatar Apr 10 '19 08:04 sungwonida