[gst-devel] helloworld build problems

Rajesh K gstdoubts at gmail.com
Tue Dec 23 07:27:00 CET 2008


Hi,
I have installed the glib and gstreamer-0.10.21 in
/users/rajesh/gstreamer_build/GLIB and /users/rajesh/gstreamer_build/GSt
respectively
I am trying to build the helloworld example in
gstreamer-0.10.21/tests/examples/manual/
I have written my own make file as follows.
where $HOME is /users/rajesh/
MAKEFILE
****************************************************************************************

CC = gcc
GLIB_INCLUDE_DIR =-I/users/rajesh/gstreamer_build/GLIB/include/glib-2.0
-I/users/rajesh/gstreamer_build/GLIB/lib/glib-2.0/include
GLIB_LIB_DIR = -L/users/rajesh/gstreamer_build/GLIB/lib/

GST_INCLUDE_DIR=-I$(HOME)/gstreamer_build/GST/include/gstreamer-0.10/
-I/usr/include/libxml2/
GST_LIB_DIR=-L$(HOME)/gstreamer_build/GST/lib

PKG_CONFIG_PATH=$(HOME)/gstreamer_build/GST/lib/pkgconfig/
GST_GLIB_LIBS= -lgstreamer-0.10 -lgobject-2.0 -lgthread-2.0 -lrt
-lgmodule-2.0 -ldl -lglib-2.0 -lxml2

all: clean playbin
playbin:
        $(CC) $(GST_INCLUDE_DIR) $(GLIB_INCLUDE_DIR) -o playbin playbin.c
$(GST_LIB_DIR) $(GLIB_LIB_DIR) $(GST_GLIB_LIBS) -pthread
clean:
        rm -rf playbin *.o
**********************************************************************************************************************
the executable playbin is built
The I set the LD_LIBRARY_PATH as follows
$set
LD_LIBRARY_PATH=($HOME/gstreamer_build/GST/include/gstreamer-0.10/:$HOME/gstreamer_build/GST/lib/:$LD_LIBRARY_PATH)
when I try to run playbin
It says it cannot find the shared library libgstreamer-0.10.21
ldd produces the following output
$ldd ./playbin
        libgstreamer-0.10.so.0 => not found
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00c65000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00688000)
        librt.so.1 => /lib/tls/librt.so.1 (0x005bf000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00c60000)
        libdl.so.2 => /lib/libdl.so.2 (0x008c9000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00af6000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x07d22000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x009ba000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00778000)
        /lib/ld-linux.so.2 (0x0075b000)
        libz.so.1 => /usr/lib/libz.so.1 (0x008cf000)
        libm.so.6 => /lib/tls/libm.so.6 (0x008a4000)

I don't understand
1.why it is not able to detect libgstreamer-0.10.21
2.why the default library paths are being set for other libarires

Any clues on this?
Regards
Rajesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20081223/6775114f/attachment.htm>


More information about the gstreamer-devel mailing list