building gstreamer applications with visual studio

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

building gstreamer applications with visual studio

glenne
I'm trying to follow the getting started samples using Visual Studio on
windows but the examples are all linux based.  I see a lot of .a, .dll.a and
.la files in the lib directory of the gstreamer installation.  What exactly
is a dll.a or .la file?  When I try and build a project I can compile fine
using the provided header files but when I link against
libgstreamer-1.0.lib, I get errors like this:

libgstreamer-1.0.a(libgstreamer_1.0_la-gstvalue.o) : error LNK2001:
unresolved external symbol g_type_class_ref

I assume that g_type_class_ref is defined in some other .lib file.   I feel
like I might end up with 20 .lib files to link against tracking these down
one-by-one so I wonder if I'm approaching this wrong.

Does anyone have a Visual Studio project they can share that would be a good
starting point?

My ultimate goal is to build a .exe using gst-rtsp-server to provide a rtsp
server.

Advice appreciated.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: building gstreamer applications with visual studio

Michael MacIntosh
Hey glenne,

Check to make sure you are linking against these libs:

For core functionality:
gstreamer-1.0
gobject-2.0
glib-2.0

For RTSP support (since you mentioned it):
gstrtsp-1.0
gstrtspserver-1.0

For video overlay support (important if you want to embed your video
output in your own application!)
gstvideo-1.0

To use appsrc / appsink:
gstapp-1.0


There are probably plenty more, but these are the ones I use. (I'm using
qt creator on windows)

Cheers,
Michael.


On 10/27/2017 12:56 PM, glenne wrote:

> I'm trying to follow the getting started samples using Visual Studio on
> windows but the examples are all linux based.  I see a lot of .a, .dll.a and
> .la files in the lib directory of the gstreamer installation.  What exactly
> is a dll.a or .la file?  When I try and build a project I can compile fine
> using the provided header files but when I link against
> libgstreamer-1.0.lib, I get errors like this:
>
> libgstreamer-1.0.a(libgstreamer_1.0_la-gstvalue.o) : error LNK2001:
> unresolved external symbol g_type_class_ref
>
> I assume that g_type_class_ref is defined in some other .lib file.   I feel
> like I might end up with 20 .lib files to link against tracking these down
> one-by-one so I wonder if I'm approaching this wrong.
>
> Does anyone have a Visual Studio project they can share that would be a good
> starting point?
>
> My ultimate goal is to build a .exe using gst-rtsp-server to provide a rtsp
> server.
>
> Advice appreciated.
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: building gstreamer applications with visual studio

Tim Müller
In reply to this post by glenne
On Fri, 2017-10-27 at 12:56 -0700, glenne wrote:

I'm trying to follow the getting started samples using Visual Studio on windows but the examples are all linux based.

There are also some hints here fwiw:


Cheers
-Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: building gstreamer applications with visual studio

glenne
Thanks Tim and Michael!

I totally missed finding the build on windows tutorial.  It was very helpful
and between the two posts I was able to build the tutorials and make some
progress on my rtsp server app.  The link for the windows install got
mangled so for the record the correct link is:
Installing on Windows
<https://gstreamer.freedesktop.org/documentation/installing/on-windows.html>
.

I did find I had to make two changes to get the tutorial to build with
Visual Studio 2015:

1. Change the recommended environment variable from GSTREAMER_ROOT_X86_64 to
GSTREAMER_1_0_ROOT_X86_64 as that is what the vcxproj files have in them.

2. Set Linker/Ignore All Default Libraries to No.  Otherwise I got numerous
undefined references from msvcrt.lib.

-Glenn



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel