Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to integrate G729 with pjsip library in ios apps ?(VOIP based app)

I am a newbie in pjsip build with iPhone. I am using iOS 9.3.2, Xcode 7.3 and Pjsip 2.5. I have successfully build Pjsip 2.5 without g729 and it's working fine without g729. As My application require g729 also, I follow all instruction from http://trac.etellicom.com/wiki/G729CodecForPJSIP2x_iOS6

After enabling g729 using above steps, upon "make dep && make clean && make" , it gives below error for all architecture I am using for my application.


../src/pjsua2-test/main.cppif test !-d ../bin;then mkdir -p ../bin;fi/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o ../bin/pjsua2-test-armv7-apple-darwin_ios \
output
/pjsua2-test-armv7-apple-darwin_ios/main.o -L/MyApps/pjproject/pjlib/lib -L/MyApps/pjproject/pjlib-util/lib -L/MyApps/pjproject/pjnath/lib -L/MyApps/pjproject/pjmedia/lib -L/MyApps/pjproject/pjsip/lib -L/MyApps/pjproject/third_party/lib -O2 -arch armv7 -isysroot /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk-framework AudioToolbox-framework Foundation-lpjsua2-armv7-apple-darwin_ios -lstdc++-lpjsua-armv7-apple-darwin_ios -lpjsip-ua-armv7-apple-darwin_ios -lpjsip-simple-armv7-apple-darwin_ios -lpjsip-armv7-apple-darwin_ios -lpjmedia-codec-armv7-apple-darwin_ios -lpjmedia-armv7-apple-darwin_ios -lpjmedia-videodev-armv7-apple-darwin_ios -lpjmedia-audiodev-armv7-apple-darwin_ios -lpjmedia-armv7-apple-darwin_ios -lpjnath-armv7-apple-darwin_ios -lpjlib-util-armv7-apple-darwin_ios -lsrtp-armv7-apple-darwin_ios -lresample-armv7-apple-darwin_ios -lgsmcodec-armv7-apple-darwin_ios -lspeex-armv7-apple-darwin_ios -lilbccodec-armv7-apple-darwin_ios -lg7221codec-armv7-apple-darwin_ios -lpj-armv7-apple-darwin_ios -lm -lpthread -framework CoreAudio-framework CoreFoundation-framework AudioToolbox-framework CFNetwork-framework UIKit-framework UIKit-framework OpenGLES-framework AVFoundation-framework CoreGraphics-framework QuartzCore-framework CoreVideo-framework CoreMediaUndefined symbols for architecture armv7:
"_pjmedia_codec_g729_init", referenced from: _pjmedia_codec_register_audio_codecs in libpjmedia-codec-armv7-apple-darwin_ios.a(audio_codecs.o)ld: symbol(s)not found for architecture armv7
clang
: error: linker command failed withexit code 1(use-v to see invocation)make[2]:***[../bin/pjsua2-test-armv7-apple-darwin_ios]Error1make[1]:***[pjsua2-test-armv7-apple-darwin_ios]Error2make:***[all]Error1

I am really stuck here. Please help me out to solve this. A single clue from anybody will be helpful.

iOS 9.3.2

Posted on Jun 9, 2016 8:55 PM

Reply
1 reply

How to integrate G729 with pjsip library in ios apps ?(VOIP based app)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.