Gordon Nickel
Gordon Nickel

Reputation: 31

Building Gstreamer 1.0.5 on Windows

I have the projects setup as described in the readme, and have GLib 2.28.8 installed and compiling. When I get to compiling gstreamer, I get thousands of errors that indicate to me that something is wrong with the build setup or with GLib versions. I couldn't find an easy source of other GLib versions for windows (I've tried both the dev and sources version of GLib here: http://www.gtk.org/download/win32.php ).

The first compile error is:

...\build\gstreamer-1.0.5\gst/gstobject.h(170): error C2079: 'lock' uses undefined struct '_GMutex'

In gstobject, lock is defined as:

GMutex         lock;        /* object LOCK */

Which Visual studio finds as defined in gthread.h

typedef struct _GMutex          GMutex;

So everything looks fine to me, but maybe I'm overlooking something. glibconfig.h also defines _GMutex* as GStaticMutex, could that be interfering?

Upvotes: 3

Views: 1546

Answers (2)

Richard
Richard

Reputation: 149

I am using glib.2.28.8, also encountered the same problem. The following two threads (1 and 2) also discuss the related problem.

In my case, just add

struct _GMutex
{
  /*< private >*/
  gpointer p;
  guint i[2];
};

before

struct _GMutex GMutex;

Upvotes: 2

Jingtao Chen
Jingtao Chen

Reputation: 1

Maybe you should try to update your Glib to 2.32.0

I successfully build GStreamer-1.0.5 both on Linux and Windows Xp, with Glib 2.32.4

See configure.ac

dnl GLib

GLIB_REQ=2.32.0

AG_GST_GLIB_CHECK([$GLIB_REQ])

Upvotes: 0

Related Questions