Linphone SDK with OpenH264 cannot be built using NDK 20
Linphone SDK with OpenH264 cannot be built using NDK 20 (in fact, any NDK > 16 will fail but I need to use exactly 20)
I'm using branch release/4.3.
Android NDK is r20b.
CMake v 3.15.5
System: Linux app-nuc 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cmake .. -DLINPHONESDK_PLATFORM=Android -DLINPHONESDK_ANDROID_ARCHS="arm64, armv7" -DENABLE_GPL_THIRD_PARTIES=NO -DENABLE_FFMPEG=OFF -DENABLE_VCARD=OFF -DENABLE_VPX=OFF -DENABLE_MKV=OFF -DENABLE_OPENH264=ON -DENABLE_SRTP=ON -DENABLE_ZRTP=ON -DENABLE_NON_FREE_CODECS=ON -DENABLE_EMBEDDED_OPENH264=ON -DENABLE_DB_STORAGE=OFF -DENABLE_ADVANCED_IM=OFF -DENABLE_UNIT_TESTS=OFF -DENABLE_QRCODE=OFF -DENABLE_LIME_X3DH=OFF
Scanning dependencies of target EP_openh264 [ 82%] Creating directories for 'EP_openh264' [ 83%] No download step for 'EP_openh264' [ 84%] No patch step for 'EP_openh264' [ 84%] No update step for 'EP_openh264' [ 84%] Performing configure step for 'EP_openh264' [ 85%] Forcing build for 'EP_openh264' [ 86%] Performing build step for 'EP_openh264' ../../../../..//external/openh264/build/platform-android.mk:54: *** Compiler not found, bad NDKROOT or ARCH?. Stop. CMakeFiles/EP_openh264.dir/build.make:114: recipe for target '/home/user/linphone/linphone-sdk/build/WORK/android-arm64/Stamp/EP_openh264/EP_openh264-build' failed make: *** [/home/user/linphone/linphone-sdk/build/WORK/android-arm64/Stamp/EP_openh264/EP_openh264-build] Error 2 CMakeFiles/Makefile2:534: recipe for target 'CMakeFiles/EP_openh264.dir/all' failed make: *** [CMakeFiles/EP_openh264.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 CMakeFiles/android-arm64.dir/build.make:113: recipe for target 'android-arm64-prefix/src/android-arm64-stamp/android-arm64-build' failed make: *** [android-arm64-prefix/src/android-arm64-stamp/android-arm64-build] Error 2 CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/android-arm64.dir/all' failed make: *** [CMakeFiles/android-arm64.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
Looks like OpenH264 version is 1.8.0 and the latest is 2.0.0, so it's a bit outdated and is incompatible with the latest NDK.
Is there any solution for this issue? Thanks