I want to build an OpenCV library with Qt support from the source with CMake and Visual Studio 2019. Here are steps I did:
- Downloaded both opencv-4.5.5 and opencv_contrib-4.5.5 archives from GitHub;
- Used CMake to generate the solution file for the Visual Studio. I chose the WITH_QT flag and provided a path for OpenCV extra modules;
- Finally, I started building OpenCV in Visual Studio 2019 but faced the this errors.
How can I fix this error and build OpenCV with Qt support? Thanks in advance.