pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

iOS cannot use openh264

Open bukira opened this issue 3 years ago • 4 comments

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

bukira avatar Jul 12 '21 08:07 bukira

Screenshot 2021-07-30 at 21 52 52

johanlantz avatar Jul 30 '21 19:07 johanlantz

I have the same problem, can this be explained in detail?

YuZebra avatar Jan 03 '22 02:01 YuZebra

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

Truong-Thanh-Quang avatar Apr 18 '22 08:04 Truong-Thanh-Quang

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

YuZebra avatar Apr 19 '22 00:04 YuZebra