pjproject
pjproject copied to clipboard
iOS cannot use openh264
Describe the bug
I have followed the docs on using openh263 but the docs are too old for the current os, they are 5 or more years old
https://trac.pjsip.org/repos/ticket/1947 https://github.com/cisco/openh264/releases/tag/v1.6.0
Add libopenh264.a and iOS-SDK's libstdc++.dylib to your application project in Xcode.
libstc++.dlib is no longer part of Xcode since Xcode 9
When I try to compile openh264 I get cannot find libstc++.dlib as its no longer there
I can do this make OS="ios" ARCH=arm64 install -stdlib=libc++
which seems to create the libraries, but when I try to use in pjsip
./configure-iphone --with-openh264=/usr/local/openh264/lib/
I just keep getting
Using OpenH264 prefix... /usr/local/openh264/lib/ checking OpenH264 usability... no
How do I support openh264 with current OS and Xcode 12
Steps to reproduce
followed the docs
PJSIP version
2.11
Context
when trying to configure with openh264
Log, call stack, etc
Using OpenH264 prefix... /usr/local/openh264/lib/
checking OpenH264 usability... no
I have the same problem, can this be explained in detail?
Folder structure: /home/src/pjproject /home/src/openh264
Build example for arm64: cd /home/src/openh264 make OS=ios ARCH=arm64 SDK_MIN=7.1 clean sudo make OS=ios ARCH=arm64 SDK_MIN=7.1 install cd /home/src/pjproject ARCH="-arch arm64" ./configure-iphone --with-openh264=/usr/local/ make dep && make clean && make
Folder structure: /home/src/pjproject /home/src/openh264
Build example for arm64: cd /home/src/openh264 make OS=ios ARCH=arm64 SDK_MIN=7.1 clean sudo make OS=ios ARCH=arm64 SDK_MIN=7.1 install cd /home/src/pjproject ARCH="-arch arm64" ./configure-iphone --with-openh264=/usr/local/ make dep && make clean && make
This is helpful
Using OpenH264 prefix... /usr/local/ checking OpenH264 usability... yes