PJSIP2.0-dev on iOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I try to compile pjsip2.0 r3602 for iOS 4.2 but still link error.
I can compile FFmpeg version SVN-r26400 with 
./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='/Developer/Platforms/iPhoneOS.platform/Devel      oper/usr/bin/gcc -arch armv7' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk --cpu      =cortex-a8 --enable-pic

But when I compile pjsip2.0 with 
export DEVPATH=/Developer/Platforms/iPhoneOS.platform/Developer./configure-iphone --disable-sdl --disable-v4l2 --with-ffmpeg="/Users/apple/subversion_work/working_copy/ffmpeg"./configure-iphone --disable-sdl --disable-v4l2 --disable-ffmpegmake dep && make clean && make
Configuation in usr.mak file is
export CFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8export LDFLAGS += -march=armv7 -mcpu=arm1176jzf-s -mcpu=cortex-a8

configure output is 
Using ffmpeg prefix... /Users/apple/subversion_work/working_copy/ffmpegchecking for avdevice_version in -lavdevice... yeschecking for av_register_all in -lavformat... nochecking for avcodec_init in -lavcodec... nochecking for sws_scale in -lswscale... nochecking for av_malloc in -lavutil... yeschecking for avcore_version in -lavcore... yesChecking if V4L2 is disabled... yes
It cannot find av_register, avcodec_init, sws_scale function in FFMpeg library  then link error.
Undefined symbols:  "_sws_getContext", referenced from:      _factory_create_converter in libpjmedia-arm-apple-darwin9.a(converter_libswscale.o)  "_avcodec_open", referenced from:      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_sws_freeContext", referenced from:      _libswscale_conv_destroy in libpjmedia-arm-apple-darwin9.a(converter_libswscale.o)  "_avcodec_register_all", referenced from:      _pjmedia_codec_ffmpeg_init in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_av_codec_next", referenced from:      _pjmedia_codec_ffmpeg_init in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_av_init_packet", referenced from:      _ffmpeg_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_avcodec_alloc_context", referenced from:      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_avcodec_get_frame_defaults", referenced from:      _ffmpeg_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_avcodec_decode_video2", referenced from:      _ffmpeg_codec_decode in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_avcodec_close", referenced from:      _ffmpeg_codec_close in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_close in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)      _ffmpeg_codec_open in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_sws_scale", referenced from:      _libswscale_conv_convert in libpjmedia-arm-apple-darwin9.a(converter_libswscale.o)  "_avcodec_encode_video", referenced from:      _ffmpeg_codec_encode in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)  "_av_register_all", referenced from:      _pjmedia_ffmpeg_add_ref in libpjmedia-arm-apple-darwin9.a(ffmpeg_util.o)  "_avcodec_init", referenced from:      _pjmedia_codec_ffmpeg_init in libpjmedia-codec-arm-apple-darwin9.a(ffmpeg_codecs.o)

Please help.
Thanks in advance
Parada
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110704/a18f60e9/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux