How to fix the "unresolved external symbol" error during OpenCV 4.5.5 building with Qt 6.3.0 support in Visual Studio 2019?
Unsolved
General and Desktop
-
I want to build an OpenCV 4.5.5 library from the source with Qt 6.3.0 support with CMake and Visual Studio 2019. Here are the 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 these errors:
How can I fix these errors and build OpenCV with Qt support? Thanks in advance.