Ask Your Question
0

OpenCV 3.4.11 build with Visual Studio 2019 fails

asked 2020-08-20 04:16:11 -0600

drfastolfe gravatar image

updated 2020-08-20 23:26:24 -0600

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-08-25 12:40:16 -0600

barb gravatar image

To install OpenCV, I had to first install the video stabilization library: libvidstab and then ffmpeg that converts and streams audio and video.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-20 04:16:11 -0600

Seen: 708 times

Last updated: Aug 20 '20