GNOME Bugzilla – Bug 574288
[dshowvideosink] mingw compile patch
Last modified: 2011-08-19 23:37:15 UTC
dshowvideosink doesn't compile under mingw. the following patch fixed this for me: --- dshowvideosink.cpp.org 2009-03-02 22:30:31.000000000 +0100 +++ dshowvideosink.cpp 2009-03-04 20:58:16.000000000 +0100 @@ -1602,8 +1602,8 @@ } /* Plugin entry point */ -extern "C" static gboolean -plugin_init (GstPlugin * plugin) +extern "C" { +static gboolean plugin_init (GstPlugin * plugin) { /* PRIMARY: this is the best videosink to use on windows */ if (!gst_element_register (plugin, "dshowvideosink", @@ -1612,9 +1612,12 @@ return TRUE; } +} -extern "C" GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, +extern "C" { +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "dshowsinkwrapper", "DirectShow sink wrapper plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) +}
Is this still a problem? I think generally things compile fine with mingw these days.
This was meant to be set to NEEDINFO, not FIXED.
Get a "dshowvideosink.cpp:1613: Error: invalid use of »static« in linkage specification" here using Ubuntu 10.4 with mingw32.
> Get a "dshowvideosink.cpp:1613: Error: invalid use of »static« in linkage > specification" here using Ubuntu 10.4 with mingw32. Could you try the git version please? (or the upcoming pre-release) There've been quite a few changes lately.
I've tried this some days ago and give up after some hours (mixing mingw and microsoft headers) - can't get it to compile here, sorry.
Reopening as the requested information has been provided.
What are the exact compiler errors you get with latest GIT? Does it work now?
Thomas, does git source (master) compile for you ?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!