cross-compile for xscale iPAQ h4350

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

 



Figured it out -sometimes the answer is so obvious it cant be seen.

And to help someone trying the same - I needed to statically link the system stuff so I set the LDFLAGS to:
LDFLAGS=-static -static-libgcc
CFLAGS=-mcpu=xscale

WAS:
file ../pjsua-xscale-unknown-none
../pjsua-xscale-unknown-none: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs),, for GNU/Linux 2.4.3, not stripped

NOW:
file ../pjsua-xscale-unknown-none
../pjsua-xscale-unknown-none: ELF 32-bit LSB executable, ARM, version 1, statically linked, for GNU/Linux 2.4.3, not stripped


All is good, I now have a multicastSIP client running on a handheld!
The world is round again, and Vulcan lives!

Happy New Year!

Martin Woscek
The MITRE Corporation
mwoscek at mitre.org<mailto:mwoscek at mitre.org>

From: Woscek, Martin W.
Sent: Tuesday, December 29, 2009 8:42 AM
To: pjsip at lists.pjsip.org
Subject: cross-compile for xscale iPAQ h4350

Hello all,

I have cross compiled pjsua for an iPAQ 4350 (xscale) running Angstrom's Linux (basic h4000-x11----image).

I do the following to build pjsip on my development machine (Fedora10):

export CFLAGS="-mcpu=xscale"
./configure arm --host arm-linux -target xscale | grep xscale

Example snippet of the successful compile (looks good):
arm-linux-gcc -c -ggdb -Wall  -DPJ_AUTOCONF=1 -mcpu=xscale   -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../../pjmedia/include \
                -o output/pjsua-lib-xscale-unknown-none/pjsua_media.o \
                ../src/pjsua-lib/pjsua_media.c


Problem is I receive the following when I try to execute on PDA:
sh:  pjsua-xscale-unknown-none: not found

Am I missing something?

Thanks,

Martin Woscek
The MITRE Corporation
mwoscek at mitre.org<mailto:mwoscek at mitre.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091230/1141c2df/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux