如何在不使用CMake的情况下使用Visual Studio编译opencv
我想用Visual Studio编译opencv,所以opencv的代码将像所有其他本地代码一样在我的计算机上。即我希望能够更改它并调试它。 我在任何地方都找不到包含所有 opencv 文件的简单目录文件。它被分为包含文件、模块等。 opencv 文档中的所有解释都使用 CMake。 我不明白 CMake 到底是什么以及为什么我需要它才能像所有其他常规代码一样在本地编译库。 有人可以解释我该怎么做吗?
I want to compile opencv with visual studio, so the code of opencv will be on my computer like all other local code. i.e. i want to be able to change it and debug it.
I can't find anywhere a simple directory file with all the opencv files. It is segmented into include files, modules and similar.
All explanations in the opencv documentations use CMake.
I don't understand what exactly is CMake and why would I need it in order to compile the library locally just like all other regular code.
Can anybody explain me how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
cmake 是一个独立于平台的 makefile。您还可以从 cmake 生成 Visual Studio 项目,然后将其导入到 Visual Studio 中。但你的电脑上需要安装cmake。
要创建一个 Visual Studio 项目,请像这样调用 cmake:
Cmake Wiki
cmake is an platform independent makefile. You can generate from cmake also visual studio projects, which can than imported into visual studio. But you need to install cmake on your computer.
To make a visual studio project call cmake like this:
Cmake Wiki