Adnan-R3PI / siphon

Automatically exported from code.google.com/p/siphon
0 stars 0 forks source link

How to Compile siphon2 with Xcode 4.0? (Compilation) #542

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

I followed the instruction from the given below link

http://tharindufit.wordpress.com/2010/06/18/how-to-compile-siphon-for-non-jail-b
roken-iphone-make-voip-calls-on-wifi/

Faced Issues
----------------

1. Directory not found for
#import <AddressBookUI/ABFavoritesList.h>
#import <AddressBookUI/ABFavoritesEntry.h>

2. library not found for -lg729a  error with exit code 1

Original issue reported on code.google.com by prs...@gmail.com on 28 Sep 2011 at 5:03

GoogleCodeExporter commented 8 years ago
The simplest solution is :
   - Remove Favorites feature
   - Remove libg729a from your xcode project.

The full solution is:
   - About Favorites, read and follow the wiki instructions (http://code.google.com/p/siphon/wiki/SiphonCompilation)
   - About g729a download the source code (same place that Siphon code) and compile. Next, patch pjsip (the patch is available on download page) and recompile pjsip

Original comment by samuelv0...@gmail.com on 1 Oct 2011 at 5:48

GoogleCodeExporter commented 8 years ago

Original comment by samuelv0...@gmail.com on 1 Oct 2011 at 5:52

GoogleCodeExporter commented 8 years ago
Thanks a lot for your first response.. :)

Problem with Favorites and -lg729a Solved..

I am trying to compile application in iPhone simulator

But I am facing another issue, 

this is my error details
------------------------
Ld build/Debug-iphonesimulator/Siphon.app/Siphon normal i386
    cd /Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/build/Debug-iphonesimulator -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjlib/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjsip/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjmedia/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjlib-util/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjnath/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/third_party/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjmedia/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/third_party/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjlib/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjlib-util/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjmedia/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjnath/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/pjsip/lib -L/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/../../pjproject_sim/third_party/lib -F/Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/build/Debug-iphonesimulator -filelist /Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/build/Siphon.build/Debug-iphonesimulator/Siphon.build/Objects-normal/i386/Siphon.LinkFileList -mmacosx-version-min=10.6 -framework Foundation -framework UIKit -Xlinker -objc_abi_version -Xlinker 2 -lg7221codec-arm-apple-darwin9 -lgsmcodec-arm-apple-darwin9 -lilbccodec-arm-apple-darwin9 -lmilenage-arm-apple-darwin9 -lresample-arm-apple-darwin9 -lspeex-arm-apple-darwin9 -lsrtp-arm-apple-darwin9 -lpjsip-arm-apple-darwin9 -lpjsip-simple-arm-apple-darwin9 -lpjsip-ua-arm-apple-darwin9 -lpjsua-arm-apple-darwin9 -lpjnath-arm-apple-darwin9 -lpjmedia-arm-apple-darwin9 -lpjmedia-audiodev-arm-apple-darwin9 -lpjmedia-codec-arm-apple-darwin9 -lpjmedia-videodev-arm-apple-darwin9 -lpjsdp-arm-apple-darwin9 -lpjlib-util-arm-apple-darwin9 -lpj-arm-apple-darwin9 -framework SystemConfiguration -framework UIKit -framework AddressBookUI -framework AddressBook -framework Foundation -framework AudioToolbox -framework CoreGraphics -lsqlite3.0 -framework CFNetwork -framework IOKit -o /Users/eyuser/Desktop/Siphone2/Siphon1/siphon/Siphon2/build/Debug-iphonesimulator/Siphon.app/Siphon
--------------------------------------------------------------------------------
----

Undefined symbols for architecture i386:
  "_pjsua_media_transports_create", referenced from:
      _sip_startup in call.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
-------------------------------------------

Before compiling, I made 2 changes in configure-iphone file in pjsipproject

 1. DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer

 2.if test "${CC}" = ""; then
  for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/i686-apple-darwin*`; do

After this I run the following commands

export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer

export 
CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2

CFLAGS="-O2 -m32 -miphoneos-version-min=3.0" LDFLAGS="-O2 -m32"

./configure-iphone

make dep && make clean && make

After all I copied newly generated libraries into my project and modified 
Header and Library search path..

Original comment by prs...@gmail.com on 3 Oct 2011 at 11:28

GoogleCodeExporter commented 8 years ago
The message looks clear ;-) You try to link with arm library (ex. 
pj-arm-apple-darwin9) and not i386 library.
First solution, you remove arm libraries and you add i386 libraries.
Second solution, you make universal libraries. I propose a script in downloads 
tab, to build a universal library for iphone (arm6 & arm7). It's easy to add 
the i386 versions.

Original comment by samuelv0...@gmail.com on 3 Oct 2011 at 8:07

GoogleCodeExporter commented 8 years ago
Dear Samuel,

Still I am facing the same issue, My Current working platform is Macmini4.1 
having 2.4GHz Intel Core 2 Duo Processor, Mac OS X 10.6.7,   X Code 4.0

Thanks & Regards,

Sreejith P.R.

Original comment by prs...@gmail.com on 10 Oct 2011 at 8:55

GoogleCodeExporter commented 8 years ago
Same problem but for device:

Undefined symbols for architecture armv7:
  "_pjsua_media_transports_create", referenced from:
      _sip_startup in call.o
ld: symbol(s) not found for architecture armv7

Any ideas?
Cheers,
Alex

Original comment by godexsoft on 21 Oct 2011 at 12:59

GoogleCodeExporter commented 8 years ago
Found a solution to get Siphon compiled:

in pjsip/src/pjsua-lib/pjsua_media.c

there are lines like this:

#if DISABLED_FOR_TICKET_1185

you need to remove them all and also don't forget to remove corresponding 
#endif tags.

then you will get a compilation failure of pjproject which you need to fix:
was: status = create_ice_media_transport(cfg, call_med);
now: status = create_ice_media_transport(cfg, call_med, 0);

HTH,
Alex

Original comment by godexsoft on 21 Oct 2011 at 1:14

GoogleCodeExporter commented 8 years ago
hi alex, even after deleting all the DISABLED_FOR_TICKET_1185 from the 
pjsip/src/pjsua-lib/pjsua_media.c and managing to compile the pjproject, i am 
getting the same error.

i am compiling only for amv7 , iphone device , using iOs sdk 4.3

which version of pjsip are you using ? mine is the latest from trunk

Original comment by shroukK...@gmail.com on 21 Oct 2011 at 6:24

GoogleCodeExporter commented 8 years ago
my complete error looks like this , i think I am trying to link to correct 
architechture:

Ld build/Debug-iphoneos/Siphon.app/Siphon normal armv7
cd "/Users/mac1/Documents/XCode WorkSpace/iSipPhone/Siphon2"
setenv IPHONEOS_DEPLOYMENT_TARGET 3.2
setenv PATH 
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/us
r/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/Objec
ts-normal/armv7/Siphon.LinkFileList" -dead_strip -framework Foundation 
-framework UIKit -miphoneos-version-min=3.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

Original comment by shroukK...@gmail.com on 21 Oct 2011 at 6:43

GoogleCodeExporter commented 8 years ago
As Benny said in pjsip mailing list "media transports are now created on
demand/dynamically as needed by calls", I think you can comment the following 
lines in call.m:

  /* Add RTP transports */
  status = pjsua_media_transports_create(&app_config->rtp_cfg);
  if (status != PJ_SUCCESS)
    goto error;

Original comment by samuelv0...@gmail.com on 23 Oct 2011 at 9:56

GoogleCodeExporter commented 8 years ago
#import <AddressBookUI/ABFavoritesList.h>
#import <AddressBookUI/ABFavoritesEntry.h>

files not found error showing what is the solution where can i get these files 
.. i have been checked out new code but i am not able to find these files in 
the source code.

Original comment by giriprat...@gmail.com on 16 Apr 2012 at 11:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You can create a folder into Header directory of siphon project called 
AddressBookUI and create this 2 file and paste the code from 
http://code.google.com/p/runtimebrowser/source/browse/trunk/iOS_headers/Framewor
ks/AddressBookUI.framework/ABFavoritesEntry.h?spec=svn69&r=69  and from 
http://code.google.com/p/runtimebrowser/source/browse/trunk/iOS_headers/Framewor
ks/AddressBookUI.framework/ABFavoritesList.h?r=69

Original comment by pasqual...@gmail.com on 18 Apr 2012 at 10:16

GoogleCodeExporter commented 8 years ago
autoconf aconfigure.ac > aconfigure 
executing this on mac terminal showing:
"no such file or directory"
and if i execute 
./aconfigure --host=arm-apple-darwin9 --disable-speex-aec \
--disable-speex-codec --disable-l16-codec --disable-g722-codec \
--disable-ilbc-codec --disable-ssl
showing:
"-bash: ./aconfigure: Permission denied"
please help...... it's urgent 
thanks in advance

Original comment by torongo....@gmail.com on 1 Jul 2013 at 4:44