Discussione:Compile available codecs in PJSip with iPhoneSDK312
Da PiemonteWireless.
If you want you can write here comments and questions.
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
I changed Env values and other listed down script that way (http://groups.google.com/group/siphon/browse_thread/thread/c3b55ea15ae1ee29):
- !/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 ???
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
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.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...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.comno 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???

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.