OpenCV 3.4.11 build with Visual Studio 2019 fails
Hi,
I have followed the instructions for building OpenCV from source on Windows with Gstreamer support and contrib modules using CMake GUI and Visual Studio.
CMake is able to generate all configuration files successfully.
However, when I go to Visual Studio OpenCV solution and try to build it, almost 78 of the 153 total projects in the solution fail with the following error message:
fatal error: LNK1181: could not open input file '../../lib/Release/opencv_highgui.lib'
I checked and for some reason the highgui .lib is not being created in the lib/Release folder, so all projects depending on that are failing. Any help would be much appreciated.
EDIT: After trying to trace the problem, I have found that highgui is not built because videoio is not built, and videoio is not built because it is unable to find "gst/gst.h". But I have added the correct include path for the gstreamer files, so I don't understand why it is unable to find the header files.
EDIT: I manually added the include directories and library directories to the opencv_videoio project in the OpenCV solution. I also added gstreamer-1.0.lib and glib-2.0.lib to the library files in the linker. Now I am getting an unresolved external symbols error. I don't know what other library I am supposed to link.
OpenCV version: 3.4.11
Platform: Windows 10
IDE: Visual Studio 16.7.2