[pjsip] Pjsip video support errors in ios

Ashok Narvaneni ashoknarvaneni7 at gmail.com
Thu Jan 12 04:46:33 EST 2017


Hi,

I compiled pjsip for all architectures with video support in ios.

I have all library files along with libyuv.a and openh264.a But when run in
Xcode for iPhone simulator(iPhone 6s) it’s getting below errors.
Please share any suggestions.

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_CAEAGLLayer", referenced from:
      objc-class-ref in UConnect
  "_glDeleteFramebuffers", referenced from:
      _pjmedia_vid_dev_opengl_destroy_buffers in UConnect
  "_glDeleteTextures", referenced from:
      _pjmedia_vid_dev_opengl_destroy_buffers in UConnect
  "_glTexParameteri", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glFlush", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glViewport", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glVertexAttribPointer", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glDrawArrays", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glDeleteProgram", referenced from:
      _pjmedia_vid_dev_opengl_destroy_buffers in UConnect
  "_glGetRenderbufferParameteriv", referenced from:
      _pjmedia_vid_dev_opengl_init_buffers in UConnect
  "_glFramebufferRenderbuffer", referenced from:
      _pjmedia_vid_dev_opengl_init_buffers in UConnect
  "_glCheckFramebufferStatus", referenced from:
      _pjmedia_vid_dev_opengl_init_buffers in UConnect
  "_glDisable", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
  "_OBJC_CLASS_$_EAGLContext", referenced from:
      objc-class-ref in UConnect
  "_glUseProgram", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glGenFramebuffers", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
  "_glEnableVertexAttribArray", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glBindFramebuffer", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glBindRenderbuffer", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_glBindAttribLocation", referenced from:
      _create_program in UConnect
  "_glDeleteShader", referenced from:
      _create_program in UConnect
  "_glTexImage2D", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_kCVPixelBufferPixelFormatTypeKey", referenced from:
      _darwin_factory_create_stream in UConnect
  "_glCreateShader", referenced from:
      _compile_shader in UConnect
      _create_program in UConnect
  "_glShaderSource", referenced from:
      _compile_shader in UConnect
      _create_program in UConnect
  "_glLinkProgram", referenced from:
      _create_program in UConnect
  "_glCreateProgram", referenced from:
      _create_program in UConnect
  "_glAttachShader", referenced from:
      _create_program in UConnect
  "_glCompileShader", referenced from:
      _compile_shader in UConnect
      _create_program in UConnect
  "_glGetShaderiv", referenced from:
      _compile_shader in UConnect
      _create_program in UConnect
  "_glBindTexture", referenced from:
      _pjmedia_vid_dev_opengl_draw in UConnect
  "_CMTimeMake", referenced from:
      _darwin_factory_create_stream in UConnect
  "_glGenRenderbuffers", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
  "_CVPixelBufferGetBaseAddress", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_kEAGLColorFormatRGBA8", referenced from:
      -[GLView init_gl] in UConnect
  "_glGetProgramiv", referenced from:
      _create_program in UConnect
  "_CVPixelBufferGetHeight", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_kEAGLDrawablePropertyColorFormat", referenced from:
      -[GLView init_gl] in UConnect
  "_kEAGLDrawablePropertyRetainedBacking", referenced from:
      -[GLView init_gl] in UConnect
  "_glGenTextures", referenced from:
      _pjmedia_vid_dev_opengl_create_buffers in UConnect
  "_CMSampleBufferGetImageBuffer", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_glDeleteRenderbuffers", referenced from:
      _pjmedia_vid_dev_opengl_destroy_buffers in UConnect
  "_CVPixelBufferLockBaseAddress", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_CVPixelBufferUnlockBaseAddress", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_CVPixelBufferGetBytesPerRowOfPlane", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
  "_CVPixelBufferGetBaseAddressOfPlane", referenced from:
      -[VOutDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
in UConnect
ld: symbol(s) not found for architecture x86_64


Thanks & Regards,
Ashok Narvaneni.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20170112/ad18f07a/attachment-0002.html>


More information about the pjsip mailing list