c++ - 没VS的情况下,怎么使用OpenCV?
PHP中文网
PHP中文网 2017-04-17 13:47:10
0
6
560

因为一些原因需要用到C++来写OpenCV,经过几次尝试后,发现无法单纯的把OpenCV内需要的文件放在同一目录然后include进来,就可以直接编译运行,网上很多的教程都是在VS的条件下配置一堆东西,然后再使用,因为VS体积加上不常用的关系,不想安装VS,(平常C++程序都是用C-free编译)请问一下如何在没有VS的情况下编译运行用到OpenCV的程序?

谢谢。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(6)
小葫芦

I have always used qt+opencv, just check how to write the qmake command. If you don't use qt or vs, you can use cmake directly. The tutorial on the official website explains how to use cmake.

小葫芦

stackoverflow

Also, don’t use this antique c-free...

黄舟

Recommend codeblocks, cross-platform, easy to apply

伊谢尔伦

qt is very good. . . .

阿神

Qt can also be used, just add a few lines of code to the Qt configuration file.

刘奇

Just write the makefile or cmake directly to reference it. Anyway, they are all references to external libraries, there is no difference

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template