linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Error compiling linphone-sdk


From: john
Subject: Re: [Linphone-developers] Error compiling linphone-sdk
Date: Thu, 25 Aug 2022 14:09:31 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

Answering my own question...

I got past this by compiling bctoolbox without strict rules:

./linphone-sdk/build/WORK/desktop/Build/bctoolbox% cmake . -DENABLE_STRIC
T=NO

make

I then continued overall build with the cmake in the build directory.

I am not sure why this is not a general problem.   Maybe it occurs with certain versions of gcc.

John

On 8/15/22 10:17, john wrote:

Hello,

I previously had linphone-sdk compiled on my Fedora (36) linux computer.   Recently I started up qtcreator and it would not build my linphone-sdk application anymore.   I re-cloned the SDK and configured it with same options I used previously.  However now I get these errors when I go to make it:

Any idea where I should look to address it?  

I did double check the dependencies listed on the linphone-sdk github page and all seems fine.   After the errors I provide the config step.

[snip first 9% of build]

[ 10%] Performing configure step for 'EP_bctoolbox'
loading initial cache file /usr/local/src/linphone-sdk/build/WORK/desktop//tmp/EP_bctoolbox/EP_bcto
olbox-cache-RelWithDebInfo.cmake
CMake Warning (dev) at /usr/local/src/linphone-sdk/build/WORK/desktop/tmp/EP_bctoolbox/EP_bctoolbox
-cache-RelWithDebInfo.cmake:9 (set):                                                                
 implicitly converting 'LIST' to 'STRING' type.                                                    
This warning is for project developers.  Use -Wno-dev to suppress it.                               
                                                                                                   
CMake Warning (dev) at /usr/local/src/linphone-sdk/build/WORK/desktop/tmp/EP_bctoolbox/EP_bctoolbox
-cache-RelWithDebInfo.cmake:16 (set):                                                               
 implicitly converting 'LIST' to 'STRING' type.                                                    
This warning is for project developers.  Use -Wno-dev to suppress it.                               
                                                                                                   
CMake Warning (dev) at /usr/local/src/linphone-sdk/build/WORK/desktop/tmp/EP_bctoolbox/EP_bctoolbox
-cache-RelWithDebInfo.cmake:27 (set):                                                               
 implicitly converting 'LIST' to 'STRING' type.                                                    
This warning is for project developers.  Use -Wno-dev to suppress it.                               
                                                                                                   
CMake Warning (dev) at /usr/local/src/linphone-sdk/build/WORK/desktop/tmp/EP_bctoolbox/EP_bctoolbox
-cache-RelWithDebInfo.cmake:36 (set):                                                               
 implicitly converting 'LIST' to 'STRING' type.                                                    
This warning is for project developers.  Use -Wno-dev to suppress it.                               
                                                                                                   
-- MBEDTLS Enabled
-- MBEDTLS Enabled search enabled
-- Using mbedTLS
-- Using Decaf
-- DTLS SRTP available
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/linphone-sdk/build/WORK/desktop/Build/bctoolbox
[ 10%] Forcing build for 'EP_bctoolbox'
[ 10%] Performing build step for 'EP_bctoolbox'
Consolidate compiler generated dependencies of target bctoolbox
[  3%] Building CXX object src/CMakeFiles/bctoolbox.dir/utils/regex.cc.o
In file included from /usr/include/c++/12/regex:48,
                from /usr/local/src/linphone-sdk/bctoolbox/src/utils/regex.cc:24:
In constructor ‘std::function<_Res(_ArgTypes ...)>::function(std::function<_Res(_ArgTypes ...)>&&)
[with _Res = bool; _ArgTypes = {char}]’,
   inlined from ‘std::__detail::_State<_Char_type>::_State(std::__detail::_State<_Char_type>&&) [w
ith _Char_type = char]’ at /usr/include/c++/12/bits/regex_automaton.h:149:4,
   inlined from ‘std::__detail::_State<_Char_type>::_State(std::__detail::_State<_Char_type>&&) [w
ith _Char_type = char]’ at /usr/include/c++/12/bits/regex_automaton.h:146:7,
   inlined from ‘std::__detail::_StateIdT std::__detail::_NFA<_TraitsT>::_M_insert_subexpr_end() [
with _TraitsT = std::__cxx11::regex_traits<char>]’ at /usr/include/c++/12/bits/regex_automaton.h:29
0:24:
/usr/include/c++/12/bits/std_function.h:405:42: error: *(std::function<bool(char)>*)((char*)&__tmp
+ offsetof(std::__detail::_StateT, std::__detail::_State<char>::<unnamed>.std::__detail::_State_ba
se::<unnamed>)).std::function<bool(char)>::_M_invoker’ may be used uninitialized [-Werror=maybe-uni
nitialized]
 405 |       : _Function_base(), _M_invoker(__x._M_invoker)
     |                                      ~~~~^~~~~~~~~~
In file included from /usr/include/c++/12/regex:63:
/usr/include/c++/12/bits/regex_automaton.h: In member function ‘std::__detail::_StateIdT std::__det
ail::_NFA<_TraitsT>::_M_insert_subexpr_end() [with _TraitsT = std::__cxx11::regex_traits<char>]’:
/usr/include/c++/12/bits/regex_automaton.h:287:17: note: __tmp’ declared here
 287 |         _StateT __tmp(_S_opcode_subexpr_end);
     |                 ^~~~~
In member function ‘bool std::_Function_base::_M_empty() const’,
   inlined from ‘std::function<_Res(_ArgTypes ...)>::operator bool() const [with _Res = bool; _Arg
Types = {char}]’ at /usr/include/c++/12/bits/std_function.h:574:25,
   inlined from ‘std::function<_Res(_ArgTypes ...)>::function(std::function<_Res(_ArgTypes ...)>&&
) [with _Res = bool; _ArgTypes = {char}]’ at /usr/include/c++/12/bits/std_function.h:407:6,
   inlined from ‘std::__detail::_State<_Char_type>::_State(std::__detail::_State<_Char_type>&&) [w
ith _Char_type = char]’ at /usr/include/c++/12/bits/regex_automaton.h:149:4,
   inlined from ‘std::__detail::_State<_Char_type>::_State(std::__detail::_State<_Char_type>&&) [w
ith _Char_type = char]’ at /usr/include/c++/12/bits/regex_automaton.h:146:7,
   inlined from ‘std::__detail::_StateIdT std::__detail::_NFA<_TraitsT>::_M_insert_subexpr_end() [
with _TraitsT = std::__cxx11::regex_traits<char>]’ at /usr/include/c++/12/bits/regex_automaton.h:29
0:24:
/usr/include/c++/12/bits/std_function.h:247:37: error: *(const std::_Function_base*)((char*)&__tmp
+ offsetof(std::__detail::_StateT, std::__detail::_State<char>::<unnamed>.std::__detail::_State_ba
se::<unnamed>)).std::_Function_base::_M_manager’ may be used uninitialized [-Werror=maybe-uninitial
ized]
 247 |     bool _M_empty() const { return !_M_manager; }
     |                                     ^~~~~~~~~~
/usr/include/c++/12/bits/regex_automaton.h: In member function ‘std::__detail::_StateIdT std::__det
ail::_NFA<_TraitsT>::_M_insert_subexpr_end() [with _TraitsT = std::__cxx11::regex_traits<char>]’:
/usr/include/c++/12/bits/regex_automaton.h:287:17: note: __tmp’ declared here
 287 |         _StateT __tmp(_S_opcode_subexpr_end);
     |                 ^~~~~
cc1plus: all warnings being treated as errors
gmake[8]: *** [src/CMakeFiles/bctoolbox.dir/build.make:258: src/CMakeFiles/bctoolbox.dir/utils/rege
x.cc.o] Error 1
gmake[7]: *** [CMakeFiles/Makefile2:136: src/CMakeFiles/bctoolbox.dir/all] Error 2
gmake[6]: *** [Makefile:136: all] Error 2
gmake[5]: *** [CMakeFiles/EP_bctoolbox.dir/build.make:88: /usr/local/src/linphone-sdk/build/WORK/de
sktop/Stamp/EP_bctoolbox/EP_bctoolbox-build] Error 2
gmake[4]: *** [CMakeFiles/Makefile2:679: CMakeFiles/EP_bctoolbox.dir/all] Error 2
gmake[3]: *** [Makefile:91: all] Error 2
gmake[2]: *** [CMakeFiles/sdk.dir/build.make:88: sdk-prefix/src/sdk-stamp/sdk-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/sdk.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2


Configuration:


/usr/local/src/linphone-sdk/build% cmake -DENABLE_NON_FREE_CODECS=YES \
     -DENABLE_OPENH264=YES \
     -DENABLE_MKV=YES \
     -DENABLE_VIDEO=YES \
     -DENABLE_CONSOLE_UI=YES \
     -DENABLE_V4L=YES \
     -DENABLE_FFMPEG=YES \
     -DENABLE_QT_GL=YES ..
-- Enabled features:
* Unit tests, Enable unit tests support with BCUnit library.
* Tools, Enable tools binary compilation.
* Xml2, Enable bc version of libxml2
* Sqlite, Enable bc version of sqlite3
* Zlib, Enable bc version of zlib
* OpenSSL Export, Enable OpenSSL deployment
* Mbedtls, Crypto stack implementation based on mbeddtls.
* Non free codecs, Allow inclusion of non-free codecs in the build.
* SRTP, SRTP media encryption support.
* ZRTP, ZRTP media encryption support.
* WebRTC AEC, WebRTC echo canceller support.
* GSM, GSM audio encoding/decoding support.
* iLBC, iLBC audio encoding/decoding support.
* OPUS, OPUS audio encoding/decoding support.
* Speex, Speex audio encoding/decoding support.
* BV16, BroadVoice 16 audio encoding/decoding support.
* Video, Ability to capture and display video.
* V4L, Ability to capture and display video using libv4l2 .
* jpeg, JPEG support with libjpeg-turbo.
* Qt GL, Enable Qt OpenGL rendering support.
* FFmpeg, Some video processing features via FFmpeg: JPEG encoding/decoding, video scaling, H264 d
ecoding...
* 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.
* LibYUV, Enable LibYUV support
* CXX wrapper, Build the C++ wrapper for Liblinphone.
* FlexiAPI, Enable the FlexiAPI support in Liblinphone.
* LIME X3DH, Enable Linphone IM Encryption version 2 support in  Liblinphone.
* LDAP, Enable LDAP Liblinphone.
* Daemon, Enable Linphone Daemon.
* VCARD, Enable vCard 4 support in Linphone and Liblinphone.
* Assets, Enable packaging of assets (ringtones) when building the SDK.
* Advanced IM, Enable advanced instant messaging such as group chat.
* DB Storage, Enable the database storage.

-- Disabled features:
* Embedded OpenH264, Embed the openh264 library instead of downloading it from Cisco.
* Debug logs, Enable debug level logs in libinphone and mediastreamer2.
* Doc, Enable documentation generation with Doxygen
* unmaintained, Allow inclusion of unmaintained code in the build.
* Soci mysql, Enable mysql support of SOCI
* Sanitizer, Enable Clang sanitizer
* HW Sanitizer, Enable Android HW sanitizer
* Polarssl, Crypto stack implementation based on polarssl.
* PQCrypto, Post Quantum Cryptography (require license).
* Tunnel, Secure tunnel for SIP/RTP (require license).
* RTP Map always in SDP, Always include rtpmap in SDP.
* mDNS, Multicast DNS support
* DNS_SERVICE, Enable Apple DNS Service. Available on Mac and iOS. Incompatible with ENABLE_MDNS.
* GPL third parties, Usage of GPL third-party code (FFmpeg and x264).
* WebRTC AECM, WebRTC echo canceller for mobile support.
* 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.
* G729B CNG, G.729 annex B confort noise generation.
* G726, G.726 audio encoding/decoding support.
* ISAC, ISAC audio encoding/decoding support.
* Silk, Silk audio encoding/decoding support.
* WebRTC VAD, WebRTC voice activation detector support.
* qrcode, QRCode support with zxing.
* H263, H263 video encoding/decoding support (require license).
* H263p, H263+ video encoding/decoding support (require license).
* MPEG4, MPEG4 video encoding/decoding support (require license).
* X264, H.264 video encoding support with the x264 library (require license).
* AAudio, AAudio Android sound card for Android 8+.
* Oboe, Oboe Android sound card for Android 8+.
* Camera2, Android capture filter using Camera2 API for Android 8+
* PCAP, PCAP support.
* GTK UI, Enable the GTK user interface of Linphone.
* CSharp wrapper, Build the C# wrapper from Liblinphone.
* Swift wrapper, Build the Swift wrapper sources from Liblinphone.
* Swift wrapper compilation, Compile and package the swift wrapper framework. Require at least cma
ke 3.16.3.
* Jazzy doc, Build the Swift doc from Liblinphone.
* Java wrapper, Build the Java wrapper from Liblinphone.
* LIME, Enable Linphone IM Encryption support in  Liblinphone.
* NLS, Enable internationalization of Linphone and Liblinphone.
* Update Check, Enable update check.
* Relative prefix, liblinphone and mediastreamer will look for their respective ressources relativ
ely to their location.

-- 'pystache' python module found
-- 'six' python module found

 ***************************************************************************
 ***************************************************************************
 ***** Linphone SDK without third party GPL software                   *****
 ***** If you acquired a proprietary license from Belledonne           *****
 ***** Communications, this SDK can be used to create                  *****
 ***** a proprietary Linphone-based application.                       *****
 ***************************************************************************
 ***************************************************************************
  
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/linphone-sdk/build


reply via email to

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