Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QT6 + OpenCV with mingw1120_64
Forum Updated to NodeBB v4.3 + New Features

QT6 + OpenCV with mingw1120_64

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 437 Views
  • 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.
  • N Offline
    N Offline
    not_converging
    wrote on last edited by
    #1

    Hi,

    I have developed a qt desktop application on Mac (QT 6.2.4 with opencv 4.5.5) and want to generate an installation wizard for windows now. To my best knowledge, I need to compile the code on windows at least once.

    For now, I ran into the problem that:

    "CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool."
    (with mingw1120_64 )
    4bb44dd4-ebeb-4ca4-b768-0d9e2b70ae1c-image.png

    My first idea was to use older qt versions (i.e. 6.0.4) that support mingw810_64. There I have no problems to make opencv.
    The problem is. that when trying to qmake the application in the qt creator multiple errors regarding Qt functions occur like:

    Error: no match for 'operator!='

    or

    Error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’

    Do you have any suggestions what to change?

    (I am quite new to C++, compiling libraries etc. I followed this tutorial

    Thank you for your suggestions.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      not_converging
      wrote on last edited by
      #2

      I solved the problem.

      Using MSVC 2019 no errors occurred anymore.

      1 Reply Last reply
      0

      • Login

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