I am trying to build openh264 for ios. I have downloaded the source code from the latest release. then changed the PREFIX
in makefile to ios_local
. After that I did make OS=ios ARCH=arm64
which completed with lot of warning.
After that when I did sudo make OS=ios ARCH=arm64 install
It exited with error like below
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libopenh264.2.0.0.dylib] Error 1
After researching it seems like Apple does not support libstdc++ now, so mac os compatible version is libc++ which is supposed to be installed when you install XCode. My XCode version is Version 10.2.1 (10E1001)
which is more than enough to get this libc++ I think.I am using macOS Mojave. What's going wrong here?