Trying to compile GStreamer for windows for static linking

Andoni Morales ylatuya at gmail.com
Wed Feb 18 11:13:35 PST 2015


2015-02-18 16:05 GMT+01:00 JonnyJP <j.p.murrow at dunelm.org.uk>:
> Thanks.
>
> Unfortunately the .libs contained in those do not contained compiled code.
> This means that when you statically link against the .lib it still needs to
> be resolved with the .dll.
>
> Normally I'd expect the .lib to contain the compiled code. Then if you only
> statically link, say, 5% of a 10mb library only 5% of 10mb (i.e. 500k) is
> added to your .exe.
>
> In this case we need to have the full 10mb bundled alongside our .exe which
> means we're using up 9.5mb of space we need.
>
> (PS the file sizes above are arbitrary)

Hi,

For GStreamer 1.0 you should use the following cerbero repository
instead of the one you are using (note the difference between
gstreamer and gstreamer-sdk in the path):

http://cgit.freedesktop.org/gstreamer/cerbero

The static libraries shipped with the prebuilt binaries in the
development package uses the extension .a instead of .lib. The import
libraries with the .lib extension should be used with VS to link
against the dynamic libraries of GStreamer. For static linking you
should use the .a static libraries, that can be used in VS in the same
way you would use a .lib with static code (it's the same archive with
compiled object files, but with a different extension).

Andoni
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Trying-to-compile-GStreamer-for-windows-for-static-linking-tp4670777p4670795.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es


More information about the gstreamer-devel mailing list