pjproject-1.5.5 cross compile to iPod -compile test -Passed and fix

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

 



Just got back to setting up my environment and testing that.  Seemed to be a version thing between Leopard and Snow-Leopard. But the following were my steps just to get a test compile to succeed:

1.       I uninstalled the Snow-Leapard (iphone_sdk_3.1.3_with_xcode_3.2.1_snow_leopard__10m2003a.dmg) and deleted all directory tree left behind (/Developer).

2.       Next I installed the Leopard version (iphone_sdk_3.1.3_with_xcode_3.1.4_leopard__9m2809a.dmg).  ** Still cant compile!  Different errors but same basic result.

3.       Rather than uninstalling the Leopard version, I re-installed the Snow-Leopard on top and verified that  "upgrade" was selected where appropriate.  **Im now beyond the basic compile test:

pjproject-1.5.5-21Feb10$ arm-apple-darwin9-gcc-4.2.1  -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk ./martin.c
ld: warning: -force_cpusubtype_ALL will become unsupported for ARM architectures

pjproject-1.5.5-21Feb10$ file a.outa.out: Mach-O executable arm
Ya Hoo!

Also required slight updates to the shell script listed in the  "Compilation" section of:
http://code.google.com/p/siphon/wiki/CompilationForiPhoneOS2_X

_________________________________________________
#!/bin/sh

export DEV=/Developer/Platforms/iPhoneOS.platform/Developer
export SDK=${DEV}/SDKs/iPhoneOS3.1.sdk

pushd ${DEV}/usr/bin
ln -s arm-apple-darwin9-gcc-4.2.1 arm-apple-darwin9-gcc
ln -s arm-apple-darwin9-g++-4.2.1 arm-apple-darwin9-g++
ln -s ranlib arm-apple-darwin9-ranlib
popd

export PATH=${DEV}/usr/bin:${PATH}

export CFLAGS=" -O2 -isysroot ${SDK}"

export LDFLAGS="-O2 -isysroot ${SDK}"

export CPP="${DEV}/usr/bin/cpp"

#./aconfigure --host=arm-apple-darwin9 -target=arm-apple-darwin9 \
./configure --host=arm-apple-darwin9 --disable-speex-aec \
   --disable-speex-codec --disable-l16-codec --disable-g722-codec \
   --disable-ilbc-codec --disable-ssl --disable-sound

make dep
make
_________________________________________________

Now onto Siphon build....

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

From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Woscek, Martin W.
Sent: Sunday, February 28, 2010 12:01 PM
To: pjsip list
Subject: pjproject-1.5.5 cross compile to iPod -compile test fail

Hello all,

I am now moving onto the cross compiling to the iPod (because I have one temporarily until I get an iPhone) and am having problems with the basics env setup.
I have followed both links for the pjproject-1.5.5 cross compile:

http://code.google.com/p/siphon/wiki/CompilationForiPhoneOS2_X

http://www.piemontewireless.net/PJSip155_and_iPhoneSDK312

Using the linked compiler arm-apple-darwin9-gcc I fail the simple compile test during the configure run and receive:

ld: library not found for -lcrt1.o

The GNU gcc worked for my earlier cross-compile over to the iPaq.   This was modified/enhanced version based on pjproject-1.0.1 with no problems executing on the iPAQ running Angstrom's Linux:
./configure arm --host arm-linux -target xscale

export CFLAGS="-mcpu=xscale"

export LDFLAGS="-static -static-libgcc"
make dep;make

Shouldn't I be able to use gcc with the -mcpu options rather than the
arm-apple-darwin9-gcc  -> arm-apple-darwin9-gcc-4.2.1 ??

This is probably a MAC OS environment issue here....but any help is appreciated.

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/20100303/4f818dbf/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