linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users] Linphone 3.6.1 for Ubuntu -- multiple compilation w


From: J G Miller
Subject: Re: [Linphone-users] Linphone 3.6.1 for Ubuntu -- multiple compilation warning/error bugs and deprecated functions
Date: Fri, 12 Jul 2013 21:58:29 +0200

At 09:40h, on Friday, July 12, 2013,
in message <address@hidden>,
on the subject of "Re: [Linphone-users] Linphone 3.6.1 for Ubuntu",
"Elizabeth W." <address@hidden> wrote -

 > That was actually what I tried to do originally before asking the mailing
 > list about Ubuntu packages for 3.6.
 > Maybe someone on here can help me: the build would fail because it would
 > require the srtp library (it would fail at build with something like
 > "missing packages: srtp") regardless of what flags I tried for configure
 > and build.

I am just in the process of trying to compile and install the latest linphone 
3.6.1
on Linux Mint 14 Nadia (Ubuntu 12.10 Quantal Quetzal).

In order to avoid building the git version of srtp and causing possible library
conflicts with other applications, I am compiling without srtp support.

To achieve this, it appears that there is no --disable-zrtp flag only
an "--enable-zrtp           Turn on zrtp support".

The configure script fails to honor this flag not being as it checks to see
if there are libzrtpcpp regardless.

So to build linphone without the zrtcpp and thus without needing the git version
of srtp, for the duration of the compilation ensure that you do not have the
zrtcpp headers present on the system viz

       dpkg --purge libsrtp0-dev libzrtpcpp-dev

After you have run configure, you can of course reinstall them if you need
them for building other software.

Also if you are using gcc, you are going to run into a compilation problem in
the mediastreamer2 directory.  Treat all warnings as errors has been set
except for -Wno-error=deprecated-declarations, but there is an unused variable 
vad
in audiofilters/pasnd.lo:

  CC     audiofilters/pasnd.lo
  audiofilters/pasnd.c: In function 'WaveInCallback':
  audiofilters/pasnd.c:115:11: error: variable 'vad' set but not used 
[-Werror=unused-but-set-variable]
  cc1: all warnings being treated as errors
  make[5]: *** [audiofilters/pasnd.lo] Error 1
  make[5]: Leaving directory `/usr/src/build/linphone-3.6.1/mediastreamer2/src

and then the issue of implicit declaration of function in 
videofilters/videoenc.c:

  CC     videofilters/videoenc.lo
  videofilters/videoenc.c: In function 'prepare':
  videofilters/videoenc.c:245:2: error: implicit declaration of function 
'avcodec_get_context_defaults' [-Werror=implicit-function-declaration]
  videofilters/videoenc.c: In function 'enc_preprocess':
  videofilters/videoenc.c:351:2: error: implicit declaration of function 
'avcodec_open' [-Werror=implicit-function-declaration]
  videofilters/videoenc.c: In function 'process_frame':
  videofilters/videoenc.c:800:2: warning: 'avcodec_encode_video' is deprecated 
(declared at /usr/local/X11R6/include/libavcodec/avcodec.h:4030) 
[-Wdeprecated-declarations]
  cc1: all warnings being treated as errors
  make[5]: *** [videofilters/videoenc.lo] Error 1
  make[5]: Leaving directory `/usr/src/build/linphone-3.6.1/mediastreamer2/src'

and then there is the error in videofilters/jpegwriter.c

  videofilters/jpegwriter.c:93:26: error: initialization makes pointer from 
integer without a cast [-Werror]

And then once all those issues have been resolved

Making all in tools
make[2]: Entering directory `/usr/src/build/linphone-3.6.1/mediastreamer2/tools'
  CC     mediastream.o
  CCLD   mediastream
../src/.libs/libmediastreamer_voip.so: undefined reference to 
`avcodec_get_context_defaults'
../src/.libs/libmediastreamer_voip.so: undefined reference to `avcodec_open'
../src/.libs/libmediastreamer_voip.so: undefined reference to 
`avcodec_alloc_context'
collect2: error: ld returned 1 exit status
make[2]: *** [mediastream] Error 1
make[2]: Leaving directory `/usr/src/build/linphone-3.6.1/mediastreamer2/tools'


These three functions are all deprecated in 

      libavcodec53   6:0.8.6-0ubuntu0.12.10

so why they have been left in the code is anybody's guess.



reply via email to

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