# Compile OpenCV with gstreamer on Windows

**URL:** https://forum.opencv.org/t/compile-opencv-with-gstreamer-on-windows/7101
**Category:** C++
**Created:** [January 12, 2022, 9:47am UTC](https://forum.opencv.org/t/compile-opencv-with-gstreamer-on-windows/7101 "2022-01-12T09:47:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![skypalace](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@skypalace](https://forum.opencv.org/u/skypalace)
#### Post date: [January 12, 2022, 9:47am UTC](https://forum.opencv.org/t/compile-opencv-with-gstreamer-on-windows/7101/1 "2022-01-12T09:47:35Z")

</div>

I am trying to compile OpenCV with gstreamer on Windows, following this tutorial:

> **[Compile Opencv with GStreamer for Visual Studio 2019 on windows 10 with and...](https://funvision.blogspot.com/2020/03/compile-opencv-4-for-visual-studio-2019.html)**
>
> This tutorial show how to install opencv with extra modules and GStreamer on windows for Visual Studio Projects. Step By step picture by picture, tested on opencv 4 and GStreamer VS 2019 project configured from CMAKE and build in Visual Studio.

The cmake portion works and the project is generated, but then when I build the solution in Visual Studio, I get the following linker error:

71\> Creating library C:/dev/opencvbuild/lib/Release/opencv\_videoio455.lib and object C:/dev/opencvbuild/lib/Release/opencv\_videoio455.exp  
71\>cap\_gstreamer.obj : error LNK2019: unresolved external symbol \_\_imp\_gst\_audio\_info\_from\_caps referenced in function “public: bool \_\_cdecl cv::GStreamerCapture::grabAudioFrame(void)” (?grabAudioFrame@GStreamerCapture@cv@@QEAA\_NXZ)  
71\>C:\dev\opencvbuild\bin\Release\opencv\_videoio455.dll : fatal error LNK1120: 1 unresolved externals

Any help is greatly appreciated, thanks!
