Problems with luarocks install cv - lipopenblas dependency
gbenaa opened this issue · 3 comments
Hi, I'm having problems installing the cv module - have not been able to find the problem reported elsewhere. Will continue to try to resolve but any help appreciated.
Operating Environment:
Ubuntu 16.04.2 LTS
OpenCV 3.1.0
Steps to recreate:
$ sudo luarocks install cv
Installing https://raw.githubusercontent.com/torch/rocks/master/cv-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cv-scm-1.rockspec... switching to 'build' mode
Cloning into 'torch-opencv'...
remote: Counting objects: 203, done.
remote: Compressing objects: 100% (181/181), done.
remote: Total 203 (delta 39), reused 76 (delta 19), pack-reused 0
Receiving objects: 100% (203/203), 2.03 MiB | 811.00 KiB/s, done.
Resolving deltas: 100% (39/39), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/lib/luarocks/rocks/cv/scm-1";
make
-- 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
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr (found suitable exact version "7.5")
-- Found Torch7 in /usr
-- Found CUDA: /usr (found version "7.5")
-- Modules to wrap: cudaobjdetect, cudastereo, cudaimgproc, cudafeatures2d, cudabgsegm, cudaoptflow, cudafilters, cudawarping, cudacodec, cudaarithm, stitching, calib3d, objdetect, video, videoio, superres, photo, ml, imgproc, flann, features2d, highgui, imgcodecs,
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_cv-scm-1-5561/torch-opencv/build
Scanning dependencies of target Common
[ 1%] Building CXX object CMakeFiles/Common.dir/src/Common.cpp.o
make[2]: *** No rule to make target '/usr/lib/libopenblas.so', needed by 'lib/libCommon.so'. Stop.
CMakeFiles/Makefile2:330: recipe for target 'CMakeFiles/Common.dir/all' failed
make[1]: *** [CMakeFiles/Common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Hi, have you tried installing OpenBLAS?
Thanks, I believe it is installed but I'll double check.
My guess is that it's an OpenCV installation issue. I suggest running OpenCV tests (for example, do make test
at OpenCV build directory) to verify this.