|
From: | jim |
Subject: | [Linphone-developers] Build error for open H264 when compliming for Android platform. |
Date: | Fri, 1 Apr 2016 15:31:11 +0800 |
Dear Developers,
I’m trying to compile the linphone sdk for Android with OpenH264, but I got error with it, any advice is appreciated!
I got the source code from github, and using the ndk-10rc, and export the ndk directory in env path.
I tried to config it using the following command:
./prepare.py --enable-non-free-codecs -DENABLE_OPENH264=YES armv7
And it seems to work properly,
-- Enabled features:
* Unit tests , Build unit tests programs for belle-sip, mediastreamer2 and linphone.
* Documentation , Enable documentation generation with Doxygen.
* GPL third parties , Usage of GPL third-party code (FFmpeg and x264).
* Non free codecs , Allow inclusion of non-free codecs in the build.
* SRTP , SRTP media encryption support.
* ZRTP , ZRTP media encryption support.
* DTLS , DTLS media encryption support.
* WebRTC AEC , WebRTC echo canceller support.
* GSM , GSM audio encoding/decoding support.
* iLBC , iLBC audio encoding/decoding support.
* ISAC , ISAC audio encoding/decoding support.
* OPUS , OPUS audio encoding/decoding support.
* Silk , Silk audio encoding/decoding support.
* Speex , Speex audio encoding/decoding support.
* Video , Ability to capture and display video.
* FFmpeg , Some video processing features via FFmpeg: JPEG encoding/decoding, video scaling, H264 decoding...
* MKV , MKV playing and recording support.
* OpenH264 , H.264 video encoding/decoding support with the openh264 library (require license).
* VPX , VPX (VP8) video encoding/decoding support.
* Mbedtls , Crypto stack implementation based on mbeddtls
* NLS , Enable internationalization of Linphone and Liblinphone. (Only for the desktop target)
* VCARD , Enable vCard 4 support Linphone and Liblinphone.
-- Disabled features:
* Tunnel , Secure tunnel for SIP/RTP (require license).
* RTP MAP , Always include rtpmap in SDP.
* Belledonne Antlr , Do not build the Belledonne version of Antlr3c
* WASAPI , Windows Audio Session API (WASAPI) sound card support.
* AMRNB , AMR narrow-band audio encoding/decoding support (require license).
* AMRWB , AMR wide-band audio encoding/decoding support (require license).
* Codec2 , Codec2 audio encoding/decoding support.
* G729 , G.729 audio encoding/decoding support (require license).
* BV16 , BroadVoice 16 audio encoding/decoding support.
* H263 , H263 video encoding/decoding support (require license).
* H263p , H263+ video encoding/decoding support (require license).
* MPEG4 , MPEG4 video encoding/decoding support (require license).
* V4L , V4L camera driver.
* X264 , H.264 video encoding support with the x264 library (require license).
* PCAP , PCAP support.
* Polarssl , Crypto stack implementation based on polarssl
* Relative prefix , liblinphone and mediastreamer will look for their respective ressources relatively to their location.
-- Configuring done
[ 88%] Performing post-installation for 'EP_openh264'
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: warning for library: /Users/jimwei/Public/REM/linphone/linphone-android/linphone-android-release/liblinphone-sdk/android-armv7/lib/libopenh264.a the table of contents is empty (no object file members in the library define global symbols)
[ 88%] Completed 'EP_openh264'
[ 88%] Built target EP_openh264
Scanning dependencies of target EP_msopenh264
[ 88%] Creating directories for 'EP_msopenh264'
[ 88%] No download step for 'EP_msopenh264'
[ 88%] No patch step for 'EP_msopenh264'
[ 89%] No update step for 'EP_msopenh264'
[ 90%] Performing configure step for 'EP_msopenh264'
loading initial cache file /Users/jimwei/Public/REM/linphone/linphone-android/linphone-android-release/WORK/android-armv7//tmp/EP_msopenh264/EP_msopenh264-cache-Release.cmake
-- Using sysroot path: /Users/jimwei/DevTool/Android/android-ndk-r10c/platforms/android-14/arch-arm
-- Using sysroot path: /Users/jimwei/DevTool/Android/android-ndk-r10c/platforms/android-14/arch-arm
-- Looking for C++ include stdbool.h
-- Looking for C++ include stdbool.h - found
-- Looking for WelsCreateDecoder
-- Looking for WelsCreateDecoder - not found
CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find OpenH264 (missing: HAVE_WELS_CREATE_DECODER)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/FindOpenH264.cmake:64 (find_package_handle_standard_args)
CMakeLists.txt:58 (find_package)
-- Configuring incomplete, errors occurred!
Thanks,
Jim
Justek Tech. LLC
[Prev in Thread] | Current Thread | [Next in Thread] |