Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@EnigmaHong
Copy link

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:

/home/zzh/Mywork/opencv310/OpenCVConfig.cmake, version: 4.0.0
/home/zzh/opencv/cmake/OpenCVConfig.cmake, version: unknown
/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 4.0.0
/usr/share/OpenCV/OpenCVConfig.cmake, version: 2.4.9.1

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cv-scm-1-1557/torch-opencv/build/CMakeFiles/CMakeOutput.log".
make: *** 没有指明目标并且找不到 makefile。 停止。

@shrubb
Copy link
Contributor

shrubb commented May 19, 2018

The bindings need OpenCV 3.1.0 exact version, while /home/zzh/Mywork/opencv310/ contains 4.0.0.

@Ashley1124-m
Copy link

I have the same problem. How can I modify it?

@shrubb
Copy link
Contributor

shrubb commented Mar 19, 2020

Did you read my comment above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants