You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed OpenCV 3.1 and Torch7. However, when I try to run luarocks install cv, it fails on No targets specified and no makefile found. Stop.
#204
Open
EnigmaHong opened this issue
May 18, 2018
· 3 comments
-- 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
CMake Error at CMakeLists.txt:34 (FIND_PACKAGE):
Could not find a configuration file for package "OpenCV" that exactly
matches requested version "3.1".
The following configuration files were considered but not accepted:
zh@ZZH:~/下载/torch-opencv-demos-master/age_gender$ OpenCV_DIR=/home/zzh/Mywork/opencv310 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
正克隆到 'torch-opencv'...
remote: Counting objects: 208, done.
remote: Compressing objects: 100% (186/186), done.
remote: Total 208 (delta 40), reused 81 (delta 19), pack-reused 0
接收对象中: 100% (208/208), 2.03 MiB | 776.00 KiB/s, 完成.
处理 delta 中: 100% (40/40), 完成.
检查连接... 完成。
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/zzh/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/zzh/torch/install/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
CMake Error at CMakeLists.txt:34 (FIND_PACKAGE):
Could not find a configuration file for package "OpenCV" that exactly
matches requested version "3.1".
The following configuration files were considered but not accepted:
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cv-scm-1-1557/torch-opencv/build/CMakeFiles/CMakeOutput.log".
make: *** 没有指明目标并且找不到 makefile。 停止。
The text was updated successfully, but these errors were encountered: