configuration for iphone

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

 



Hi all

I try to compile the pjproject_1.10 for iphone and have a problem.
I want to compile pjproject separately for armv6 and armv7.

I have added the line 
ARCH='-arch armv6'
at the beginning of the file  ./configure-iphone

and configuration finished with error

configure-iphone: DEVPATH is not specified, using /Developer/Platforms/iPhoneOS.platform/Developer
configure-iphone: IPHONESDK is not specified, choosing iPhoneOS4.2.sdk
configure-iphone: CC is not specified, choosing /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
configure-iphone: CXX is not specified, using /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-g++-4.2.1
configure-iphone: calling ./aconfigure with env vars:
 CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
 CXX = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-g++-4.2.1
 SDKPATH = /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
 CFLAGS = -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneOS4.2.sdk\"" -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
 LDFLAGS = -O2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -framework AudioToolbox -framework Foundation
 AR = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static -o
 RANLIB = echo ranlib
aconfigure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin10.7.0
checking host system type... arm-apple-darwin9
checking target system type... arm-apple-darwin9
checking for arm-apple-darwin9-gcc... /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
checking whether the C compiler works... no
aconfigure: error: in `/Users/dima/Work/PjSip/pjproject-1.10':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details.


without that line ARCH='-arch armv6' configuration and compilation finished successfully.

How can I compile pjproject for armv6 and armv7 separately?

Best regards, Dima.


[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