gpt4 book ai didi

python - 无法使用 opencv_contrib 3.2.0 构建 opencv 3.2.0

转载 作者:太空宇宙 更新时间:2023-11-03 22:48:33 25 4
gpt4 key购买 nike

我正在尝试构建 opencv 和 opencv_contrib 模块,但在使用 cmake-gui 构建时我得到了关注:

Detected version of GNU GCC: 54 (504)
Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
Checking for module 'gtk+-3.0'
No package 'gtk+-3.0' found
Checking for module 'gstreamer-base-1.0'
No package 'gstreamer-base-1.0' found
Checking for module 'gstreamer-video-1.0'
No package 'gstreamer-video-1.0' found
Checking for module 'gstreamer-app-1.0'
No package 'gstreamer-app-1.0' found
Checking for module 'gstreamer-riff-1.0'
No package 'gstreamer-riff-1.0' found
Checking for module 'gstreamer-pbutils-1.0'
No package 'gstreamer-pbutils-1.0' found
Checking for module 'gstreamer-base-0.10'
No package 'gstreamer-base-0.10' found
Checking for module 'gstreamer-video-0.10'
No package 'gstreamer-video-0.10' found
Checking for module 'gstreamer-app-0.10'
No package 'gstreamer-app-0.10' found
Checking for module 'gstreamer-riff-0.10'
No package 'gstreamer-riff-0.10' found
Checking for module 'gstreamer-pbutils-0.10'
No package 'gstreamer-pbutils-0.10' found
Looking for linux/videodev.h
Looking for linux/videodev.h - not found
Looking for linux/videodev2.h
Looking for linux/videodev2.h - found
Looking for sys/videoio.h
Looking for sys/videoio.h - not found
Checking for module 'libavresample'
No package 'libavresample' found
Checking for module 'libgphoto2'
No package 'libgphoto2' found
found IPP (ICV version): 9.0.1 [9.0.1]
at: /opencv-master/build/3rdparty/ippicv/ippicv_lnx
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
A library with BLAS API found.
A library with LAPACK API found.
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
Caffe: NO
Protobuf: NO
Glog: NO
The protocol buffer compiler is found (/usr/bin/protoc)
CMake Error at /opencv_contrib-master/modules/dnn/cmake/OpenCVFindLibProtobuf.cmake:17 (PROTOBUF_GENERATE_CPP):
Unknown CMake command "PROTOBUF_GENERATE_CPP".
Call Stack (most recent call first):
/opencv_contrib-master/modules/dnn/CMakeLists.txt:5 (include)


Configuring incomplete, errors occurred!
See also "/opencv-master/build/CMakeFiles/CMakeOutput.log".
See also "/opencv-master/build/CMakeFiles/CMakeError.log".

错误框:配置过程中出错,项目文件可能无效

请查收。

最佳答案

您必须具有 opencv_contrib 和 opencv 本身的匹配版本。

另一个人有类似的问题,是由同样的事情引起的。你可以在堆栈溢出上看到我的答案HERE

关于python - 无法使用 opencv_contrib 3.2.0 构建 opencv 3.2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43410511/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com