<br>It worked !<br><br>indeed I have a glib 2.6 in /usr/local/lib and glib 2.10 /usr/lib and it was using the bad one.<br><br>So when I set PKG_CONFIG_PATH to /usr/lib/pkgconfig/ everything is ok.<br><br>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)
<br><br><br>Thanks a lot.<br>Christophe<br><br><br><div><span class="gmail_quote">On 6/9/06, <b class="gmail_sendername">Archana Shah</b> <<a href="mailto:archana.shah@wipro.com">archana.shah@wipro.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Christophe,<br><br>Try doing<br><br>$ pkg-config --modversion glib-2.0<br><br>Are you getting correct
2.10 version ?<br><br>If not, then find out where is glib-2.10 installed (what prefix ?) and<br>set the PKG_CONFIG_PATH to <prefix>/lib/pkgconfg:/usr/lib/pkgconfig.<br>Again if you run the same command<br>$ pkg-config --modversion
glib-2.0, you should see the correct version<br>of glib, and then your program should compile fine.<br><br>Regards,<br>Archana.<br><br><br>Christophe Dehais wrote:<br><br>> Hi all,<br>><br>> Well with:<br>><br>
> gstreamer 0.10.6<br>> glib 2.10.2<br>><br>> under Debian<br>><br>> I try to compile the hello world program on page 11 of app dev manual<br>> and I get:<br>><br>><br>> (référence indéfinie vers : undefined reference to)
<br>><br>> # gcc -Wall -g `pkg-config --cflags --libs gstreamer-0.10` simple.c -o<br>> simple<br>><br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>
> <<a href="http://0.10.so">http://0.10.so</a>>: référence indéfinie vers « g_intern_static_string »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>
> <<a href="http://0.10.so">http://0.10.so</a>>: référence indéfinie vers « g_mapped_file_get_length »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<br>> <a href="http://0.10.so">0.10.so
</a> <<a href="http://0.10.so">http://0.10.so</a>>: référence indéfinie vers « g_mapped_file_new »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>> <
<a href="http://0.10.so">http://0.10.so</a>>: référence indéfinie vers « g_mapped_file_free »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>> <<a href="http://0.10.so">
http://0.10.so</a>>: référence indéfinie vers « g_mkdir_with_parents »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<br>> <a href="http://0.10.so">0.10.so</a> <<a href="http://0.10.so">http://0.10.so
</a>>: référence indéfinie vers «<br>> g_mapped_file_get_contents »<br>> /usr/lib/gcc/i486-linux-gnu/4.0.4/../../../../lib/libgstreamer-<a href="http://0.10.so">0.10.so</a><br>> <<a href="http://0.10.so">http://0.10.so
</a>>: référence indéfinie vers « g_date_get_type »<br>> collect2: ld a retourné 1 code d'état d'exécution<br>> #<br>><br>> # ldd <a href="http://libgstreamer-0.10.so">libgstreamer-0.10.so</a> <<a href="http://libgstreamer-0.10.so">
http://libgstreamer-0.10.so</a>><br>> linux-gate.so.1 => (0xffffe000)<br>> libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7e74000)<br>> libgobject-2.0.so.0 => /usr/lib/libgobject-
2.0.so.0 (0xb7e3a000)<br>> libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7e36000)<br>> libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7e33000)<br>> libdl.so.2 => /lib/tls/libdl.so.2 (0xb7e2f000)
<br>> libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7da8000)<br>> libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7c8f000)<br>> libz.so.1 => /usr/lib/libz.so.1 (0xb7c7a000)<br>>
libm.so.6 => /lib/tls/libm.so.6 (0xb7c54000)<br>> libc.so.6 => /lib/tls/libc.so.6 (0xb7b1c000)<br>> /lib/ld-linux.so.2 (0x80000000)<br>> #<br>><br>><br>> I am not good at all about linking stuff, so I don't really understand
<br>> the problem.<br>><br>> I would appreciate any clue about this surely stupid problem.<br>><br>> thanks,<br>> Christophe<br>><br>><br>>------------------------------------------------------------------------
<br>><br>>_______________________________________________<br>>gstreamer-devel mailing list<br>><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>><br>><br><br><br><br> 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.
<a href="http://www.wipro.com">www.wipro.com</a><br></blockquote></div><br>