compilation problem with MSYS/MinGW

Vincent Torri vtorri at univ-evry.fr
Tue Feb 15 14:47:28 PST 2011


Hey,

i have MSYS/MinGW (gcc 4.5.0)

glib 2.24 and libxml2 are installed.

I tried gstreamer 0.10.32. I configure it with:

CXXFLAGS="$CXXFLAGS -fno-common" CFLAGS="$CFLAGS -fno-common -O3" LDFLAGS="-Wl,-s -Wl,-no-undefined" ./configure --disable-gtk-doc --enable-silent-rules --disable-poisoning --disable-tests --disable-examples

First, it complains because glib.h is not found in gst_private.h. glib is 
installed in /usr/local, glib.pc is correctly set. It seems that glib is 
detected in configure.ac (glib 2.22 is required) but the flags are not set 
properly (GLIB_CFLAGS is empty in Makefile). On the other hand, 
GLIB_ONLY_CFLAGS is correctly set but not used in Makefile.am...

So I have to add CPPFLAGS="-IC:/msys/1.0/local/include/glib-2.0" during 
configuration. Just a hack to see if gstreamer can be compiled. 
Unfortunately, I have link errors:

   CCLD   libgstreamer-0.10.la
Creating library file: .libs/libgstreamer-0.10.dll.a
..libs/libgstreamer_0.10_la-gstbin.o: In function `gst_bin_child_proxy_get_children_count':
C:\msys\1.0\home\torri\tmp\gstreamer-0.10.32\gst/gstbin.c:358: multiple definition of `forbiddenExp'
..libs/libgstreamer_0.10_la-gstobject.o:C:\msys\1.0\home\torri\tmp\gstreamer-0.10.32\gst/gstobject.c:1228: first defined here

and other similar errors.

Note also that for the compilation, I have those warnings:

make[3]: Entering directory `/home/torri/tmp/gstreamer-0.10.32/gst/parse'
   GEN    lex._gst_parse_yy.c
   CC     libgstparse_la-lex._gst_parse_yy.lo
lex._gst_parse_yy.c:2098:5: warning: no previous prototype for '_gst_parse_yyget_column'
lex._gst_parse_yy.c:2174:6: warning: no previous prototype for '_gst_parse_yyset_column'
   CC     libgstparse_la-grammar.tab.lo
grammar.tab.c:913:7: warning: redundant redeclaration of 'malloc'
grammar.tab.c:920:6: warning: redundant redeclaration of 'free'


Vincent Torri
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list