search

Home  >  Q&A  >  body text

c++ - 没VS的情况下,怎么使用OpenCV?

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

谢谢。

PHP中文网PHP中文网2774 days ago544

reply all(6)I'll reply

  • 高洛峰

    高洛峰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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 13:49:10

    stackoverflow

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

    reply
    0
  • 黄舟

    黄舟2017-04-17 13:49:10

    Recommend codeblocks, cross-platform, easy to apply

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:49:10

    qt is very good. . . .

    reply
    0
  • 阿神

    阿神2017-04-17 13:49:10

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

    reply
    0
  • 怪我咯

    怪我咯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

    reply
    0
  • Cancelreply