设置在Visual Studio Cmake配置中不起作用

发布于 2025-02-06 14:48:16 字数 880 浏览 0 评论 0原文

我正在使用Visual Studio 2019和OpenCV-3.4.16构建OpenCV,

我选择了我选择的 file-> open-> cmake 和已加载的cmakelists.txt。从项目加载的root of Project

已加载,我做了正确的单击 cmakelists.txt-> cmake设置opencv

我确保在Visual Studio和CMake设置中都使用 X64-REELEASE 配置。

我向下滚动并检查框 build_opencv_world 如图所示。

保存的文件cmakesettings.json,cmake自动重新扫描并重新加载。

当我构建项目时,我看不到opencv_world.dllopencv_world.lib在x64-rease upput output文件夹中。我看到了所有其他DLL,这意味着此复选框设置不起作用

,我尝试使用 cmakelists.txt-> cache-> delete

我也尝试添加set(build_opencv_world on)

>到cmakelists

代码

I am building Opencv with visual studio 2019 and opencv-3.4.16 source files

I selected File->Open->Cmake and loaded CMakeLists.txt from root of project

Once project loaded, I did right click on CMakeLists.txt->CMake Settings for OpenCV

I made sure I am on x64-Release configuration both in Visual Studio and in CMake settings.

I scrolled down and checked box BUILD_opencv_world as shown in image.

Saved file CMakeSettings.json, Cmake automatically re-scanned and re-loaded.

When I build the project I don't see opencv_world.dll or opencv_world.lib in the x64-Release output folder. I see all the other DLL's, which means this checkbox setting did not work

I tried doing CMakeLists.txt->Cache->Delete

I also tried adding set(BUILD_opencv_world ON) to the top of CMakeLists.txt

Nothing worked and the Opencv_world libraries are not getting built

What step am I missing?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文