2 u012116537 u012116537 于 2016.03.15 17:14 提问

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个回答

zailushang_csl
zailushang_csl   2016.08.05 11:19

请问你解决了吗?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!