QT6 + OpenCV with mingw1120_64
-
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 )
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.
-
I solved the problem.
Using MSVC 2019 no errors occurred anymore.