GError and GStreamer

Good morning.

I was trying to get setup using gstreamer in UE4 and ran into the problem that gstreamer uses GError in gerror.h:



typedef struct _GError GError;

struct _GError
{
GQuark domain;
gint code;
gchar *message;
};

and UE4 also uses GError in CoreGlobals.h:



CORE_API extern class FOutputDeviceError* GError;

Is there a good/proper/easy way to deconflict this?

1 Like

Apparently the GError is from GLib and not just gstreamer. It would conflict with any library using GLib. :confused: I’m going to try and rename the GError in UE4 and do a source build like that.

2 Likes

@Burnrate Did you have any success?

I’ve also run into the same issue here. Any success with renaming GError? @Burnrate Or any other suggestions for ways to avoid clashing of global variables?