sym0529 2016-03-15 09:14 采纳率: 0%
浏览 5439

cmake编译opencv出错:求指导

编译opencv时候,出现如下提示:
CMake Error at calib3d/CMakeLists.txt:1 (define_opencv_module):
Unknown CMake command "define_opencv_module".

CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.4)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

为什么说define_opencv_module没有这个命令呢?我用的opencv2.3.1
我看了所有的cmakelist.txt,除了第一个androidcamera文件夹下是
IF(NOT ANDROID)
MESSAGE( FATAL_ERROR "This project is for ANDROID only" )
ENDIF()

if (BUILD_ANDROID_CAMERA_WRAPPER)
add_subdirectory(camera_wrapper)
endif()
........

其他的都是以define_opencv_module开始的,请问该怎么弄呢?
另外有没有什么其他的可以快速查看opencv函数定义的方法呀?

  • 写回答

1条回答

  • 少年-不忘初心 2016-08-05 03:19
    关注

    请问你解决了吗?

    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿