[gst-devel] compiling
Tim Müller
t.i.m at zen.co.uk
Sun Jul 10 03:51:25 CEST 2005
On Sunday 10 July 2005 07:56, Fabian Hergenreder wrote:
> fabian at jaguar$gcc -Wall $(pkg-config --cflags --libs gstreamer-0.8
> glib-2.0) hello.c -ohello
>
> /usr/local/lib/libgstreamer-0.8.so: undefined reference to
> `g_assert_warning'
> /usr/local/lib/libgstreamer-0.8.so: undefined reference to
> `g_return_if_fail_warning'
> collect2: ld returned 1 exit status
To me this looks like you have an older version of libglib-2.0 on your system
somewhere that gets drawn in somehow (in addition to the glib from package),
while at the same time the includes from the newer packaged version are used.
Do you have /usr/local/lib/libglib-2.0* on your system by any chance? If yes,
you should get rid of the non-package version by doing something like:
# rm /usr/local/lib/libglib-2.0*
# rm /usr/local/lib/libgobject-2.0*
# rm /usr/local/lib/libgthread-2.0*
# rm /usr/local/lib/libmodule-2.0*
# rm /usr/local/lib/pkgconfig/glib-2.0.pc
# rm /usr/local/lib/pkgconfig/gobject-2.0.pc
# rm /usr/local/lib/pkgconfig/gthread-2.0.pc
# rm /usr/local/lib/pkgconfig/gmodule*2.0.pc
# rm -rf /usr/local/include/glib-2.0
# /sbin/ldconfig
(if you still have the glib source tree around, 'make uninstall' would be
better of course).
After that things should work.
Cheers
-Tim
More information about the gstreamer-devel
mailing list