Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt/OpenCV installation, configuration
Forum Updated to NodeBB v4.3 + New Features

Qt/OpenCV installation, configuration

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
4 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    starter123
    wrote on 17 Feb 2017, 23:50 last edited by
    #1

    Hi,

    I would like to do a project on image processing using Qt with pre_built OpenCV libraries. I'm using Windows 7 64-bit OS and I've been struggling to compile Qt with OpenCV for a while. Could someone please give a short explanation on how to configure these (what versions to use, what compiler, what paths to include in the system, how to include paths in the .pro file for pre-built OpenCV libraries).

    Thank You.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Feb 2017, 23:57 last edited by
      #2

      Hi and welcome to devnet,

      There are already several threads on this topic on this forum, you should search for them.

      Basically:

      • Select the compiler: MinGW/VS20XX.
      • Verify that the prebuilt OpenCV supports it
      • Install the matching Qt (you can't mix and match compilers on Windows)
      • Adding 3rd party library from Qt documentation
      • Adding 3rd party library with Qt Creator

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        starter123
        wrote on 19 Feb 2017, 00:29 last edited by
        #3

        Thank you for your answer SGaist,

        Right, so following your bulletpoints:

        *I've selected a compiler - VS2013

        • I've chosen OpenCV 2.4.13. There are vs11 and vs12 folders, which correspond to Visual Studio 2012 and Visual Studio 2013 respectively, so this version does support VS2013.

        • Finally, I've installed Qt 5.6.2 for Windows 64-bit VS 2013 version. However, when I try to run a sample program I get an error saying : Error while building/deploying project "..." (kit: Desktop Qt 5.6.2 MSVC2013 64bit) When executing "Make". So I go to Tools->Options->Build & Run ->Qt version and there is a red warning with exclamation mark saying "No compiler can produce code for this Qt version. Please define one or more compilers." Hence, I go to Compilers tab and I see that it is empty with no auto-detected compilers. I've tried to follow guidelines in Qt documentation file on how to add a compiler, but I can't figure out how to add MSVC2013 compiler specifically.

        How can I sort it out?

        Thank you.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 19 Feb 2017, 20:10 last edited by
          #4

          They should be auto-detected however there might be a catch with Visual Studio, at least with VS2015 you have to specifically select the C++ to be installed.

          Note you will also need to install the debugging tools. The debugger from Visual Studio is "internal".

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          17 Feb 2017, 23:50

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved