[oe] application not getting loaded

Anand Sivaram aspnair at gmail.com
Mon Aug 9 11:43:03 UTC 2010


On Mon, Aug 9, 2010 at 05:12, Graham Gower <graham.gower at gmail.com> wrote:

> On 8 August 2010 20:25, Anand Sivaram <aspnair at gmail.com> wrote:
> > Dear All,
> >
> > I wrote a custom gstreamer application on ARM (dm6446) angstrom.
> > Whenever I try to run the application, I am getting the following error,
> > that looks
> > as if the shell is treating the application as a shell script.
> >
> > /usr/bin/app: line 1: syntax error: word unexpected (expecting ")")
> >
> > I made sure that the application is having 755 permission and
> readelf/file
> > etc. from
> > a linux pc shows this as an ELF 32 bit ARM executable.
>
> This error message is typical when the system is trying to execute a
> binary built for a different architecture.
>
>
> > These are the dynamic library dependencies during compilation.
> > pkg-config --libs gtk+-2.0 gstreamer-0.10 gstreamer-interfaces-0.10
> >
> > Is it due to some shared library loading problem?  In that case is there
> > any arm "ldd" available on openembedded target or on build host to
> > verify what is missing?
>
> You can invoke the dynamic linker and have it print out the dependent
> dynamic libs. e.g.
> $ /lib/ld.so.1 --list /path/to/bin
>
> But this will execute the binary to make the list, so if your system
> doesn't recognise the binary, this won't work.
>
> -Graham
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

Thanks Graham,  I am looking into that.

Also I noticed the following error while linking, but still the executable
is getting built.

/mnt/project/angstrom-dev/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld:
warning: libc.so, needed by
/mnt/project/angstrom-dev/cross/armv5te/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/lib/libgcc_s.so,
not found (try using -rpath or -rpath-link)

Any idea?

Thanks and Regards

Anand



More information about the Openembedded-devel mailing list