Discussione:Compile available codecs in PJSip with iPhoneSDK312

Da PiemonteWireless.

If you want you can write here comments and questions.


NIKHIL said ...
14:10, 3 mar 2010 (CET)
HI,

I have compiled according to your instructions & I got libraries also. When I register it is throwing exception

EXC-BAD-ACCESS after sip_connect. callback function is not being called. Please suggest me where is the problem.


Andy said ...
16:58, 9 mar 2010 (CET)
Hi, thanks for the above info.

I have this working with G729 but would like to try iLBC, how did you get it to work with iLBC? what did you add to siphon to make it work?

Thanks


Paul V said ...
12:03, 22 mar 2010 (CET)
Hi! I am interested in compiling g729 not only for iPhoneOS, but also for iPhoneSimulator.

I changed Env values and other listed down script that way (http://groups.google.com/group/siphon/browse_thread/thread/c3b55ea15ae1ee29):

  1. !/bin/sh

export DEV=/Developer/Platforms/iPhoneSimulator.platform/Developer export SDK=${DEV}/SDKs/iPhoneSimulator3.1.2.sdk export PATH=${DEV}/usr/bin:${PATH} export CFLAGS="-O2 -arch i686 -isysroot ${SDK}" export LDFLAGS="-O2 -arch i686 -isysroot ${SDK}" export CPP="${DEV}/usr/bin/cpp"

cd ${DEV}/usr/bin ln -s i686-apple-darwin9-gcc-4.0.1 i686-apple-darwin9-gcc ln -s i686-apple-darwin9-g++-4.0.1 i686-apple-darwin9-g++ ln -s ranlib i686-apple-darwin9-ranlib

cd ~/Desktop/siPhon/pjproject-svn/

autoconf aconfigure.ac > aconfigure

./aconfigure --host=i686-apple-darwin9 --disable-speex-aec \ --disable-speex-codec --enable-g729-codec --disable-ssl

make dep make

BUT, I get error while make:

make -f /Users/useruser1/Desktop/siPhon/pjproject-svn/build/rules.mak APP=G729_CODEC app=libg729codec ../../lib/libg729codec-i686-apple-darwin9.a i686-apple-darwin9-gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -arch i686 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.2.sdk -I../.. -I../../g729/Headers -I../../../pjlib/include \ -o output/libg729codec-i686-apple-darwin9/Sources/acelp_ca.o \ ../../g729/Sources/acelp_ca.c make[3]: i686-apple-darwin9-gcc: Command not found make[3]: *** [output/libg729codec-i686-apple-darwin9/Sources/acelp_ca.o] Error 127 make[2]: *** [libg729codec] Error 2 make[1]: *** [all] Error 1 make: *** [all] Error 1 Jock-2:pjproject-svn useruser1$ make -f /Users/useruser1/Desktop/siPhon/pjproject-svn/build/rules.mak APP=G729_CODEC app=libg729codec ../../lib/libg729codec-i686-apple-darwin9.a make: *** No rule to make target `../../lib/libg729codec-i686-apple-darwin9.a'. Stop.

What should I do to compile g729 for Simulator ???


Andy said ...
17:52, 25 mar 2010 (CET)
As far as I am aware you cant compile the g729 codec or any codec to run on the simulator, it has to be built and installed on an iPhone using the SDK.


Oleg said ...
00:19, 11 apr 2010 (CEST)
First of all — thanks for great manual!

I have done all steps and have compiled libs. But while building Xcode project with linked libs, I have error:

...../compat/setjmp.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pj_jmp_buf'

Screen shot: http://grab.by/3FCO

Alejandro Orellana said ...
14:58, 12 apr 2010 (CEST)
Great guide. i have followed all the steps successfully and compile a simple pjsua example.

however when i make a call, i have no audio. the logs are fine. signaling looks good even seems like the rtp streams are good and connected to the proper ports in pjsip, but no audio., nothing.

I see some people here also have the same problem.

any help it would be much appreciated.
fvisticot said ...
20:36, 16 apr 2010 (CEST)
Thank you for this very useful tutorial !!!!

Unfortunately, all is working exception to the sound... It seems that i'm not alone to have this pb....

Is it possible to have your view regarding possible issue with sound feature...
Ghazanfar Ali said ...
15:45, 5 ago 2010 (CEST)
Hi All,

Is it possible to compile this G729 library for PJSIP on Microsoft Windows Desktop. I have searched lot of forums and sites but couldn't find a better resource how to integrate G729 Codec in PJSIP on Microsoft Windows Platform.

Thanking in advance, Regards, Ghazanfar Ali

email: ghazanfar.ali@hotmail.com
arif.zaman said ...
13:44, 21 ott 2010 (CEST)
During G729 compilation part, I'm getting the following errors:

no such instruction: `qadd16 %eax,%eax,%ecx' no such instruction: `smulbb %edi, %eax,%eax' no such instruction: `qdadd %edx, %edx,%edi' no such instruction: `smulbb %edi, %eax,%eax' no such instruction: `qdadd %edx, %edx,%edi' no such instruction: `smulbb %edi, %eax,%eax' no such instruction: `qdadd %edx, %edx,%edi' no such instruction: `smulbb %edi, %eax,%eax' no such instruction: `qdadd %edx, %edx,%edi' no such instruction: `smulbb %edi, %eax,%eax' no such instruction: `qdadd %edx, %edx,%edi' no such instruction: `smulbb %esi, %edx,%eax' ...

Is any anything I'm missing here???
Strumenti personali