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

没有规则可制作目标"......opencv-4.5.0/release/lib/libopencv_dnn.so.4.5.0" #30

Open
Zuoqiu-Yingyi opened this issue Dec 20, 2020 · 1 comment

Comments

@Zuoqiu-Yingyi
Copy link

EDCC-Palmprint-Recognition/build$ cmake .. && sudo make install
CMake Warning (dev) at CMakeLists.txt:7 (PROJECT):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    CMAKE_PROJECT_VERSION
    CMAKE_PROJECT_VERSION_MAJOR
    CMAKE_PROJECT_VERSION_MINOR
    CMAKE_PROJECT_VERSION_PATCH
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/zuoqiuyingyi/软件/EDCC-Palmprint-Recognition/build/googletest-download
[ 11%] Performing update step for 'googletest'
当前分支 master 是最新的。
[ 22%] No configure step for 'googletest'
[ 33%] No build step for 'googletest'
[ 44%] No install step for 'googletest'
[ 55%] No test step for 'googletest'
[ 66%] Completed 'googletest'
[100%] Built target googletest
Downloading https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/a_01.bmp......
Download https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/a_01.bmp success!
Downloading https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/a_02.bmp......
Download https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/a_02.bmp success!
Downloading https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/b_01.bmp......
Download https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/b_01.bmp success!
Downloading https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/b_02.bmp......
Download https://blog-images-1257621236.cos.ap-shanghai.myqcloud.com/edcc_data/for_test_and_example/b_02.bmp success!
CMake Warning (dev) at build/edcc-config.cmake:11 (INCLUDE):
  Policy CMP0024 is not set: Disallow include export result.  Run "cmake
  --help-policy CMP0024" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  The file

    /home/zuoqiuyingyi/软件/EDCC-Palmprint-Recognition/build/edcc-targets.cmake

  was generated by the export() command.  It should not be used as the
  argument to the include() command.  Use ALIAS targets instead to refer to
  targets by alternative names.

Call Stack (most recent call first):
  examples/c_example/CMakeLists.txt:7 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/zuoqiuyingyi/软件/EDCC-Palmprint-Recognition/build
[sudo] zuoqiuyingyi 的密码: 
Scanning dependencies of target edcc
[  4%] Building CXX object CMakeFiles/edcc.dir/src/config/reader.cpp.o
[  8%] Building CXX object CMakeFiles/edcc.dir/src/controller/c_api.cpp.o
[ 13%] Building CXX object CMakeFiles/edcc.dir/src/controller/facade.cpp.o
[ 17%] Building CXX object CMakeFiles/edcc.dir/src/core/comparer.cpp.o
[ 21%] Building CXX object CMakeFiles/edcc.dir/src/core/encoder.cpp.o
[ 26%] Building CXX object CMakeFiles/edcc.dir/src/core/gabor_filter.cpp.o
make[2]: *** 没有规则可制作目标“/home/zuoqiuyingyi/软件/opencv-4.5.0/release/lib/libopencv_dnn.so.4.5.0”,由“libedcc.so.0.2.0” 需求。 停止。
make[1]: *** [CMakeFiles/Makefile2:228:CMakeFiles/edcc.dir/all] 错误 2
make: *** [Makefile:130:all] 错误 2

这是否意味着该项目不支持OpenCV 4.5.0呀?

@leosocy
Copy link
Owner

leosocy commented Feb 8, 2021

我自己试了下是支持的,应该是你OpenCV4.5没有正确的安装,你再按照官网的installation重装下试试呢?
https://docs.opencv.org/4.5.1/d7/d9f/tutorial_linux_install.html

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

2 participants