How to create Gstreamer plugin for Windows

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

How to create Gstreamer plugin for Windows

sameerthigale08
Hello all, I see lot of unanswered questions on stackoverflow on how to create gstreamer plugin for Windows using Visual Studio. Can someone please provide detailed steps if there are already?

I tried to make sense using the existing Linux tutorial, but find myself struggling to build plugin for Windows.

Additional question is: do we need to export any function when compiling DLL?

Thanks for your time.

--

Sameer Thigale

The information contained in this email transmission and any attachments is intended only for the personal and confidential use of the designated named herein. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document and its attachment in error, and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender and return and delete the original message immediately.


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

Re: How to create Gstreamer plugin for Windows

Josh Doe
On Wed, Apr 22, 2020 at 4:56 AM Sameer Thigale <[hidden email]> wrote:
Hello all, I see lot of unanswered questions on stackoverflow on how to create gstreamer plugin for Windows using Visual Studio. Can someone please provide detailed steps if there are already?

Several ways:
1) meson, how the GStreamer project does it
2) Visual Studio property files provided by official GStreamer installers (https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c)
3) CMake (how my project gst-plugins-vision does it, though I plan to move to meson eventually, https://github.com/joshdoe/gst-plugins-vision)

I suggest starting with a plugin that is close to what you want, then modify it.

Additional question is: do we need to export any function when compiling DLL?

Yes, gst_plugin_PLUGINNAME_get_desc and  gst_plugin_PLUGINNAME_register, however those get defined for you by using GST_PLUGIN_DEFINE.

-Josh

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel