[gst-devel] basic compilation problem

Christophe Dehais christophe.dehais at gmail.com
Fri Jun 9 15:04:03 CEST 2006


It worked !

indeed I have a glib 2.6 in /usr/local/lib and glib 2.10 /usr/lib and it was
using the bad one.

So when I set PKG_CONFIG_PATH to /usr/lib/pkgconfig/ everything is ok.

But I don't understand why pkg_config is, by default, searching
/usr/local/lib/ for glib and /usr/lib/ for all the rest (here gstreamer)


Thanks a lot.
Christophe


On 6/9/06, Archana Shah <archana.shah at wipro.com> wrote:
>
>
> Hi Christophe,
>
> Try doing
>
> $ pkg-config --modversion glib-2.0
>
> Are you getting correct 2.10 version ?
>
> If not, then find out where is glib-2.10 installed (what prefix ?) and
> set the PKG_CONFIG_PATH to <prefix>/lib/pkgconfg:/usr/lib/pkgconfig.
> Again if you run the same command
> $ pkg-config --modversion glib-2.0, you should see the correct version
> of glib, and then your program should compile fine.
>
> Regards,
> Archana.
>
>
> Christophe Dehais wrote:
>
> > Hi all,
> >
> > Well with:
> >
> > gstreamer 0.10.6
> > glib 2.10.2
> >
> > under Debian
> >
> > I try to compile the hello world program on page 11 of app dev manual
> > and I get:
> >
> >
> > (référence indéfinie vers : undefined reference to)
> >
> > # gcc -Wall -g `pkg-config --cflags --libs gstreamer-0.10` simple.c -o
> > simple
> >
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-0.10.so
> > <http://0.10.so>: référence indéfinie vers « g_intern_static_string »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-0.10.so
> > <http://0.10.so>: référence indéfinie vers « g_mapped_file_get_length »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-
> > 0.10.so <http://0.10.so>: référence indéfinie vers « g_mapped_file_new »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-0.10.so
> > <http://0.10.so>: référence indéfinie vers « g_mapped_file_free »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-0.10.so
> > <http://0.10.so>: référence indéfinie vers « g_mkdir_with_parents »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-
> > 0.10.so <http://0.10.so>: référence indéfinie vers «
> > g_mapped_file_get_contents »
> > /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-0.10.so
> > <http://0.10.so>: référence indéfinie vers « g_date_get_type »
> > collect2: ld a retourné 1 code d'état d'exécution
> > #
> >
> > # ldd libgstreamer-0.10.so <http://libgstreamer-0.10.so>
> >         linux-gate.so.1 =>  (0xffffe000)
> >         libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7e74000)
> >         libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb7e3a000)
> >         libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7e36000)
> >         libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7e33000)
> >         libdl.so.2 => /lib/tls/libdl.so.2 (0xb7e2f000)
> >         libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7da8000)
> >         libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7c8f000)
> >         libz.so.1 => /usr/lib/libz.so.1 (0xb7c7a000)
> >         libm.so.6 => /lib/tls/libm.so.6 (0xb7c54000)
> >         libc.so.6 => /lib/tls/libc.so.6 (0xb7b1c000)
> >         /lib/ld-linux.so.2 (0x80000000)
> > #
> >
> >
> > I am not good at all about linking stuff, so I don't really understand
> > the problem.
> >
> > I would appreciate any clue about this surely stupid problem.
> >
> > thanks,
> > Christophe
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >gstreamer-devel mailing list
> >gstreamer-devel at lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
>
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.   WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20060609/51a18689/attachment.htm>


More information about the gstreamer-devel mailing list