我尝试使用 CMake 与 VS 2013 构建 OpenCV ,并执行以下所有步骤。构建成功,跳过了一些项目。然后我通过构建 INSTALL 项目来安装它。问题是,我已经为各个任务构建了库,但是我需要使用 opencv_world300.dll 。(我已经使用了预先构建的库中的opencv_world300.dll,但它已经使用了一年,而且已经有了许多人承诺掌握GIT ripository,我遇到了预建版本的bug,所以我需要从头开始构建。)
没有项目在MS VC2013解决方案资源管理器中构建opencv_world300.dll。我如何建立或找到它?
截至目前,我做了一些探索并做到了这一点:
按照从头开始构建OpenCV二进制文件的步骤,我找到了选中 WITH_OPENCV_WORLD 的选项。我检查了它并点击了配置。它配置成功,然后我点击Generate,它显示错误如下(红色):
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 Root文件或缓存文件中进行更改?我对CMake完全无能为力。