Compiling gstreamer plugin in windows

Posted by utnapistim on Stack Overflow See other posts from Stack Overflow or by utnapistim
Published on 2010-06-02T11:29:27Z Indexed on 2010/06/02 12:33 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

Hello all,

My question: What is the correct way to compile a gstreamer plugin in windows, so that it will be accepted by gstreamer (actually Songbird on top of gstreamer).

My setup:

I have downloaded the songbird sources following the steps described here and I have a trunk/dependencies/windows-i686-msvc8 directory within my svn sources with all the gstreamer binaries.

I have created a gstreamer empty plugin skeleton following the steps detailed in the GStreamer Plugin Writer's Guide, and compiled it against the gstreamer binaries in the Songbird dependencies folder.

The compilation was done with VS2010 RC1 (Visual Studio 2008 yelded the same results), using an empty DLL project with the .h and .c files generated using the GStreamer Plugin Writer's Guide. The DLL was lined with libcpmt.lib, libcmt.lib, ws2_32.lib, gobject-2.0.lib, gthread-2.0.lib, gstreamer-0.10-0.lib, glib-2.0.lib, kernel32.lib, nspr4.lib and ignoring all default libraries. I have compiled the files as both .c and .cpp with the same results.

Testing:

I have installed the Songbird binaries corresponding to the correct svn version, then installed Songbird Developer Tools addon and used it to create an addon for testing my gstreamer plugin.

Songbird will not load the pluggin.

I have also tried to load it with gst-launch.exe from the trunk/dependencies/windows-i686-msvc8/[...] directory and that generated runtime error R6034:

An application has made an attempt to load the C runtime library incorrectly.

Most resources I found for this problem recommended restarting or reinstalling windows :(.

© Stack Overflow or respective owner

Related posts about c++

Related posts about c