Compiling siphon2 with xcode / ios sdk 4.3 : Undefined symbols for architecture armv7: "_pjsua_media_transports_create", referenced from: _sip_startup in call.o

347 views
Skip to first unread message

khan

unread,
Oct 19, 2011, 4:21:57 AM10/19/11
to Siphon
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?

Samuel Vinson

unread,
Oct 19, 2011, 5:07:06 PM10/19/11
to sip...@googlegroups.com
Hi,

Which version of pjsip do you use ?

Samuel

2011/10/19 khan <shrou...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Siphon" group.
To post to this group, send email to sip...@googlegroups.com.
To unsubscribe from this group, send email to siphon+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siphon?hl=en.


khan

unread,
Oct 19, 2011, 9:16:35 PM10/19/11
to Siphon
hi, i had trouble compiling the latest one from trunk (the video wont
compile) .
this one is pjsip revision 3495.

can it be because of the version of pjsip ?

On Oct 20, 4:07 am, Samuel Vinson <samuelv0...@gmail.com> wrote:
> Hi,
>
> Which version of pjsip do you use ?
>
> Samuel
>
> 2011/10/19 khan <shroukk...@gmail.com>

khan

unread,
Oct 20, 2011, 1:15:04 PM10/20/11
to Siphon
infact trying to compile latest pjsip for arm7 with gives issue with
mips test . i am trying to disable it. i have already patched the
mips_test.c file , but it was not very helpful, i am still getting
these errors:

Undefined symbols for architecture armv7:
"_pjmedia_codec_ilbc_deinit", referenced from:
_ilbc_encode_decode in mips_test.o
"_pjmedia_codec_g722_init", referenced from:
_g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o
"_pjmedia_codec_g722_deinit", referenced from:
_g722_encode_decode in mips_test.o
_create_stream_g722 in mips_test.o
"_pjmedia_codec_speex_init_default", referenced from:
_speex8_encode_decode in mips_test.o
_speex16_encode_decode in mips_test.o
"_pjmedia_codec_speex_deinit", referenced from:
_speex8_encode_decode in mips_test.o
_speex16_encode_decode in mips_test.o
"_pjmedia_codec_ilbc_init", referenced from:
_ilbc_init in mips_test.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
make[2]: *** [../bin/pjmedia-test-arm-apple-darwin9] Error 1
make[1]: *** [pjmedia-test] Error 2
make: *** [all] Error 1
Softverk-Mac1s-iMac:trunk mac1$

khan

unread,
Oct 21, 2011, 2:30:40 PM10/21/11
to Siphon
Hi samuel,

I managed to compile the latest pjsip from trunk for arm7 (i edited
the makefile in the pjmedia and deleted the part relating to
mips_test.o )

but now I am back to old error:

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


Do you have any idea?

Khan
Reply all
Reply to author
Forward
0 new messages