因为一些原因需要用到C++来写OpenCV,经过几次尝试后,发现无法单纯的把OpenCV内需要的文件放在同一目录然后include
进来,就可以直接编译运行,网上很多的教程都是在VS
的条件下配置一堆东西,然后再使用,因为VS
体积加上不常用的关系,不想安装VS
,(平常C++程序都是用C-free编译)请问一下如何在没有VS的情况下编译运行用到OpenCV的程序?
谢谢。
高洛峰2017-04-17 13:49:10
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.
阿神2017-04-17 13:49:10
Qt can also be used, just add a few lines of code to the Qt configuration file.
怪我咯2017-04-17 13:49:10
Just write the makefile or cmake directly to reference it. Anyway, they are all references to external libraries, there is no difference