0

我尝试按照随处给出的以下所有步骤,使用CMakeVS 2013构建OpenCV 。构建成功,跳过了几个项目。然后我通过构建INSTALL项目来安装它。问题是,我已经为个别任务构建了库,但我需要opencv_world300.dll才能使用。(我已经使用了预建库中的 opencv_world300.dll,但已经一年了,并且有很多提交来掌握 GIT 存储库和我在预建版本中遇到了错误,所以我需要从头开始构建)。 MS VC2013 解决方案资源管理器中没有构建 opencv_world300.dll 的项目。我如何构建或找到它? 截至目前,我做了一些探索并做到了这一点:


在遵循从头开始构建 OpenCV 二进制文件的步骤时,我找到了勾选WITH_OPENCV_WORLD的选项。我检查了它并点击配置。它配置成功,然后我点击生成,它显示如下错误(红色):

CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjpeg" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libwebp" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libpng" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libtiff" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjasper" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "IlmImf" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "zlib" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjpeg" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libwebp" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libpng" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libtiff" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "libjasper" that is not in the export set.
CMake Error: install(EXPORT "OpenCVModules" ...) includes target "opencv_world" which requires target "IlmImf" that is not in the export set.
Generating done

看到它,我估计存在依赖问题,因为 opencv_world300 使用了所有其他模块。

有没有人了解 OpenCV 或 CMake,可以告诉我这个问题的解决方案。我需要更改 Cmake 根文件或缓存文件吗?我对 CMake 完全一无所知。

4

1 回答 1

1

也许以下 OpenCV 错误报告可能适用于您的情况。

http://code.opencv.org/issues/3448

于 2015-04-14T14:43:42.067 回答