I have been trying to build Libyuv for arm64 architecture and then integrate it to PJSIP library. But I am not getting any progress as Pjsip is not able to find the libyuv.a
framework.
While configuring the Pjsip build, I use following command :
ARCH='-arch arm64' ./configure-iphone --with-libyuv=/Users/Mayur/Desktop/pjsip/externals/libyuv/out_ios/Release-iphoneos
This is the folder where libyuv.a
is located.
But, while configuration, this line appears :
checking for I420Scale in -lyuv... no
Any suggestions on what's wrong here?
References :
Building Pjsip for iPhone : https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
Building libyuv : https://trac.pjsip.org/repos/ticket/1776
UPDATE
This is how I built libyuv.a
GYP_DEFINES="OS=ios target_arch=arm64 target_subarch=arm64" GYP_CROSSCOMPILE=1 GYP_GENERATOR_FLAGS="output_dir=out_ios" ./gyp_libyuv -f ninja --depth=. libyuv_test.gyp
ninja -j7 -C out_ios/Release-iphoneos libyuv_unittest
This successfully creates the library, but I am not getting a proper way to connect that lib!
Turns out that if you use the latest revision for PJSIP and install the libyuv
framework as described in the question, it just builds perfectly.
Just check out the revision 5128, using the following command :
svn checkout -r 5128 http://svn.pjsip.org/repos/pjproject/trunk pjproject
It also contains fixes for orientation in iOS!