linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Compile error: Could NOT find OpenH264 (missin


From: Mostafa Farzane
Subject: Re: [Linphone-developers] Compile error: Could NOT find OpenH264 (missing: HAVE_WELS_CREATE_DECODER)
Date: Tue, 27 Jul 2021 18:49:20 +0430

Found the problem. In msopenh264/cmake/FindOpenH264.cmake file, executing check_cxx_symbol_exists("WelsCreateDecoder" "wels/codec_api.h" HAVE_WELS_CREATE_DECODER) fails.
apparently, it needs pthread to link with.
So I added list(APPEND CMAKE_REQUIRED_LIBRARIES pthread), and it fixed the problem.

On Tue, Jul 20, 2021 at 9:26 AM Mostafa Farzane <farzanemostafa@gmail.com> wrote:

I am trying to compile linphone-sdk on debian 9. Here are the commands to compile:

cmake -DENABLE_NON_FREE_CODECS=YES -DENABLE_OPENH264=YES -DENABLE_EMBEDDED_OPENH264=YES -DENABLE_FFMPEG=YES -DENABLE_GPL_THIRD_PARTIES=YES ../
cmake --build . --parallel 4
The ouput:
[ 65%] Completed 'EP_openh264'
[ 67%] Built target EP_openh264
[ 67%] Performing configure step for 'EP_msopenh264'
loading initial cache file /home/mosi/projects/sip/linphone-sdk/build/WORK/desktop//tmp/EP_msopenh264/EP_msopenh264-cache-RelWithDebInfo.cmake
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenH264 (missing: HAVE_WELS_CREATE_DECODER)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindOpenH264.cmake:64 (find_package_handle_standard_args)
  CMakeLists.txt:57 (find_package)


-- Configuring incomplete, errors occurred!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]