Compiling PJSIP 2.0 universal binary for IOS

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

 



I am currently trying to build universal binaries of PJSIP 2.0 with the IOS 5.0 SDK. The directions being followed are the build instructions at,

http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone

and I am also taking a few directions from, http://trac.pjsip.org/repos/wiki/ReleaseNotes-2.0#OnDemandMediaTransport, including the instructions to add, "#define PJMEDIA_HAS_VIDEO	1" to my config_site.h

my compile commands are as follows,

for armv6 

export ARCH="-arch armv6"
./configure-iphone --disable-sdl
make dep && make clean && make

for armv7

export ARCH="-arch armv7"
./configure-iphone --disable-sdl
make dep && make clean && make

I then create the universal binaries using lipo as directed.  

Everything seems to go well.  When I run my xcode project on device I get the following errors

Undefined symbols for architecture armv6:
  "_pjmedia_vid_dev_stream_get_param", referenced from:
      _client_port_event_cb in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_put_frame", referenced from:
      _dec_clock_cb in libpjmedia-arm-apple-darwin9.a(vid_port.o)
      _vid_pasv_port_put_frame in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_destroy", referenced from:
      _pjmedia_vid_port_destroy in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_get_info", referenced from:
      _pjsua_call_media_init in libpjsua-arm-apple-darwin9.a(pjsua_media.o)
      _create_vid_win in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
      _video_channel_update in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
      _pjmedia_vid_port_create in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_create", referenced from:
      _pjmedia_vid_port_create in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_stop", referenced from:
      _client_port_event_cb in libpjmedia-arm-apple-darwin9.a(vid_port.o)
      _pjmedia_vid_port_stop in libpjmedia-arm-apple-darwin9.a(vid_port.o)
      _pjmedia_vid_port_start in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_subsys_shutdown", referenced from:
      _pjsua_vid_subsys_destroy in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
  "_pjmedia_vid_dev_default_param", referenced from:
      _create_vid_win in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
  "_pjmedia_vid_dev_subsys_init", referenced from:
      _pjsua_vid_subsys_init in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
  "_pjmedia_vid_dev_stream_get_frame", referenced from:
      _enc_clock_cb in libpjmedia-arm-apple-darwin9.a(vid_port.o)
      _vid_pasv_port_get_frame in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_start", referenced from:
      _pjmedia_vid_port_start in libpjmedia-arm-apple-darwin9.a(vid_port.o)
  "_pjmedia_vid_dev_stream_set_cap", referenced from:
      _create_vid_win in libpjsua-arm-apple-darwin9.a(pjsua_vid.o)
      _client_port_event_cb in libpjmedia-arm-apple-darwin9.a(vid_port.o)
ld: symbol(s) not found for architecture armv6e
clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I rebuild the libraries with the same instructions but define PJMEDIA_HAS_VIDEO as 0 in my config_site.h my project runs on my device and I am able to make a successful audio only call.  I wonder if there might be something that I am missing.  There is some mention of building for the IOS platform in the PJSIP 2.0 release notes, but there is not much the Video User Guide.

Would anyone care to offer some ideas to what I might be missing?


_____________________
Brad Sweeney
brad.sweeney at gmail.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120124/21b30eac/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