-2

I want to build an OpenCV library with Qt support from the source with CMake and Visual Studio 2019. Here are steps I did:

  1. Downloaded both opencv-4.5.5 and opencv_contrib-4.5.5 archives from GitHub;
  2. 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;
  3. 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.

ALEXander
  • 1
  • 1
  • The last time I tried to just configure the Qt 6.3.0 cmake solution for VS 2019 the cmake project definetly was broken (try-compile did fail for providing a invalid compilation of compiler flags even though MSVC could definetly compile the code checked... – fabian May 14 '22 at 17:55
  • I have no this path: Configuration Properties > C/C++ > Command Line. I think is not a clear Visual Studio project. – ALEXander May 14 '22 at 17:58
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community May 14 '22 at 21:12
  • Does this answer your question? [What is an undefined reference/unresolved external symbol error and how do I fix it?](https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) (If not, please edit your question to show how it is different than the linked one.) – JaMiT May 17 '22 at 09:12

0 Answers0