-
Notifications
You must be signed in to change notification settings - Fork 48
Description
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。 停止。