设置在Visual Studio Cmake配置中不起作用
我正在使用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.dll
或opencv_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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论