Hi guys,
I am trying to compile the latest sihpon2 with xcode 3.2.6 / ios 4.3
sdk . and i keep hitting this issue. i have seen on
http://code.google.com/p/siphon/issues/detail?id=542#makechanges
another guy faced the same issue , but i believe i am creating the
correct arm7 library (
here are my steps:
1) patched pjsip following :
http://www.piemontewireless.net/PJSip155_and_iPhoneSDK312
2) export LDFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
export CFLAGS+=" -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8"
3) instead of doing autoconfig from that site, i used
./configure-iphone --host=arm-apple-darwin9 --disable-speex-aec --
disable-speex-codec --disable-l16-codec --disable-g722-codec --disable-
ilbc-codec --disable-ssl
4. put libg729.a in a proper folder
and tried to compile siphon2 using xcode:
Build Siphon of project Siphon with configuration Debug
Ld build/Debug-iphoneos/Siphon.app/Siphon normal armv7
cd "/Users/mac1/Documents/XCode WorkSpace/iSipPhone/Siphon2"
setenv IPHONEOS_DEPLOYMENT_TARGET 2.2
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/
Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch
armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
iPhoneOS4.3.sdk "-L/Users/mac1/Documents/XCode WorkSpace/iSipPhone/
Siphon2/build/Debug-iphoneos" -L../pjproject-svn/pjlib/lib -L../
pjproject-svn/pjsip/lib -L../pjproject-svn/pjmedia/lib -L../pjproject-
svn/pjlib-util/lib -L../pjproject-svn/pjnath/lib -L../pjproject-svn/
third_party/lib -L../pjproject-svn/pjmedia/lib -L../pjproject-svn/
third_party/lib "-L/Users/mac1/Documents/XCode WorkSpace/iSipPhone/
Siphon2/../pjproject-svn/third_party/lib" "-L/Users/mac1/Documents/
XCode WorkSpace/iSipPhone/Siphon2/../pjproject-svn/pjmedia/lib" "-F/
Users/mac1/Documents/XCode WorkSpace/iSipPhone/Siphon2/build/Debug-
iphoneos" -filelist "/Users/mac1/Documents/XCode WorkSpace/iSipPhone/
Siphon2/build/Siphon.build/Debug-iphoneos/Siphon.build/Objects-normal/
armv7/Siphon.LinkFileList" -dead_strip -framework Foundation -
framework UIKit -miphoneos-version-min=2.2 -framework
SystemConfiguration -framework UIKit -framework AddressBookUI -
framework AddressBook -framework Foundation -framework AudioToolbox -
lpj-arm-apple-darwin9 -lpjlib-util-arm-apple-darwin9 -lpjnath-arm-
apple-darwin9 -lpjmedia-arm-apple-darwin9 -lpjsip-arm-apple-darwin9 -
lpjsip-simple-arm-apple-darwin9 -lpjsip-ua-arm-apple-darwin9 -lpjsua-
arm-apple-darwin9 -framework CoreGraphics -lsqlite3.0 -lpjmedia-codec-
arm-apple-darwin9 -lgsmcodec-arm-apple-darwin9 -framework CFNetwork -
lpjmedia-audiodev-arm-apple-darwin9 -lresample-arm-apple-darwin9 -
lg7221codec-arm-apple-darwin9 -lg729a -framework IOKit -o "/Users/mac1/
Documents/XCode WorkSpace/iSipPhone/Siphon2/build/Debug-iphoneos/
Siphon.app/Siphon"
Undefined symbols for architecture armv7:
"_pjsua_media_transports_create", referenced from:
_sip_startup in call.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
Does anyone have any idea where I am going wrong?