Hi,<br>I have installed the glib and gstreamer-0.10.21 in <br>/users/rajesh/gstreamer_build/GLIB and /users/rajesh/gstreamer_build/GSt respectively<br>I am trying to build the helloworld example in gstreamer-0.10.21/tests/examples/manual/<br>
I have written my own make file as follows.<br>where $HOME is /users/rajesh/<br>MAKEFILE<br>****************************************************************************************<br><br>CC = gcc<br>GLIB_INCLUDE_DIR =-I/users/rajesh/gstreamer_build/GLIB/include/glib-2.0&nbsp; -I/users/rajesh/gstreamer_build/GLIB/lib/glib-2.0/include<br>
GLIB_LIB_DIR = -L/users/rajesh/gstreamer_build/GLIB/lib/<br><br>GST_INCLUDE_DIR=-I$(HOME)/gstreamer_build/GST/include/gstreamer-0.10/ -I/usr/include/libxml2/<br>GST_LIB_DIR=-L$(HOME)/gstreamer_build/GST/lib<br><br>PKG_CONFIG_PATH=$(HOME)/gstreamer_build/GST/lib/pkgconfig/<br>
GST_GLIB_LIBS= -lgstreamer-0.10 -lgobject-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -ldl -lglib-2.0 -lxml2<br><br>all: clean playbin<br>playbin:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(CC) $(GST_INCLUDE_DIR) $(GLIB_INCLUDE_DIR) -o playbin playbin.c&nbsp; $(GST_LIB_DIR) $(GLIB_LIB_DIR) $(GST_GLIB_LIBS) -pthread<br>
clean:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -rf playbin *.o<br>**********************************************************************************************************************<br>the executable playbin is built<br>The I set the LD_LIBRARY_PATH as follows<br>
$set LD_LIBRARY_PATH=($HOME/gstreamer_build/GST/include/gstreamer-0.10/:$HOME/gstreamer_build/GST/lib/:$LD_LIBRARY_PATH)<br>when I try to run playbin<br>It says it cannot find the shared library libgstreamer-0.10.21<br>ldd produces the following output<br>
$ldd ./playbin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgstreamer-0.10.so.0 =&gt; not found<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgobject-2.0.so.0 =&gt; /usr/lib/libgobject-2.0.so.0 (0x00c65000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgthread-2.0.so.0 =&gt; /usr/lib/libgthread-2.0.so.0 (0x00688000)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; librt.so.1 =&gt; /lib/tls/librt.so.1 (0x005bf000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libgmodule-2.0.so.0 =&gt; /usr/lib/libgmodule-2.0.so.0 (0x00c60000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libdl.so.2 =&gt; /lib/libdl.so.2 (0x008c9000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libglib-2.0.so.0 =&gt; /usr/lib/libglib-2.0.so.0 (0x00af6000)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libxml2.so.2 =&gt; /usr/lib/libxml2.so.2 (0x07d22000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libpthread.so.0 =&gt; /lib/tls/libpthread.so.0 (0x009ba000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libc.so.6 =&gt; /lib/tls/libc.so.6 (0x00778000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib/ld-linux.so.2 (0x0075b000)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libz.so.1 =&gt; /usr/lib/libz.so.1 (0x008cf000)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; libm.so.6 =&gt; /lib/tls/libm.so.6 (0x008a4000)<br><br>I don&#39;t understand <br>1.why it is not able to detect libgstreamer-0.10.21<br>2.why the default library paths are being set for other libarires<br>
<br>Any clues on this?<br>Regards<br>Rajesh<br><br><br><br><br>