ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] LTIB Shell mode and GStreamer application compile.


From: Stuart Hughes
Subject: Re: [Ltib] LTIB Shell mode and GStreamer application compile.
Date: Thu, 15 Apr 2010 09:54:49 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Giorgio,

Check inside the ltib shell:

LTIB> which gcc
/opt/ltib/usr/spoof/gcc
LTIB> which ld
/opt/ltib/usr/spoof/ld
LTIB> which pkg-config
/opt/ltib/usr/bin/pkg-config

Check that pkg-config gives sensible output (you'll need to adjust
paths, but mine shows:)


LTIB> pkg-config --cflags --libs gstreamer-0.10
-pthread
-I/data/seh/Src/ltib_bsps/sv_test/rootfs/usr/include/gstreamer-0.10
-I/data/seh/Src/ltib_bsps/sv_test/rootfs/usr/include/glib-2.0
-I/data/seh/Src/ltib_bsps/sv_test/rootfs/usr/lib/glib-2.0/include
-I/data/seh/Src/ltib_bsps/sv_test/rootfs/usr/include/libxml2  -pthread
-L/data/seh/Src/ltib_bsps/sv_test/rootfs/usr/lib -lgstreamer-0.10
-lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lxml2 -lglib-2.0

If all that looks okay, make sure you have no .la files in your rootfs
area, these will break cross compiles.  To do this run a checked:

LTIB> find rootfs -name \*.la

If you still get no clue, then post the actually gcc command line you
get (you've cut that out).

Regards, Stuart

giorgio wrote:
> Hi, 
> 
> I would like to compile a multimedia test application for my ARM board
> ( feescale EVM with imx51) using ./ltib -m shell  mode.
> 
> I followed the instructions on this wiki
> (http://www.imxdev.org/wiki/index.php?title=All_Board_Creating_App_MP3)
> 
> When I compile my program with this command line:
> 
> LTIB> gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) playmp3.c
> -o playmp3
> 
> I Get this error:
> ....
> ....
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgstreamer-0.10.so 
> when searching for -lgstreamer-0.10
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgstreamer-0.10.a 
> when searching for -lgstreamer-0.10
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgobject-2.0.so 
> when searching for -lgobject-2.0
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgmodule-2.0.so 
> when searching for -lgmodule-2.0
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgthread-2.0.so 
> when searching for -lgthread-2.0
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/librt.so when
> searching for -lrt
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libxml2.so when
> searching for -lxml2
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libxml2.a when
> searching for -lxml2
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libglib-2.0.so
> when searching for -lglib-2.0
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgcc_s.so
> when searching for -lgcc_s
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libpthread.so
> when searching for -lpthread
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libc.so when
> searching for -lc
> /usr/bin/ld: skipping
> incompatible /home/giorgio/freescale/ltib/rootfs/usr/lib/libgcc_s.so
> when searching for -lgcc_s
> ......
> ......
> 
> It seems to be a linker error but, GStreamer is fully worker in my board
> and all .SO file included in my ltib rootfs are ARM compiled.
> 
> Someone can give me some suggestions?
> Any suggestions will be appreciated.
> 
> Thanks,
> Giorgio. 
> 
> 
> P.S.
> This is my gstreamer-0.10.PC file:
> 
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include/gstreamer-0.10
> toolsdir=${exec_prefix}/bin
> pluginsdir=${exec_prefix}/lib/gstreamer-0.10
> 
> Name: GStreamer
> Description: Streaming media framework
> Requires: glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0,
> libxml-2.0
> Version: 0.10.25
> Libs: -L${libdir} -lgstreamer-0.10
> Cflags: -I${includedir}
> 
> 
> 
> 
> 
> 
> _______________________________________________
> LTIB home page: http://ltib.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]