[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] ffmpeg source
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] ffmpeg source |
Date: |
Mon, 27 Nov 2006 11:25:17 +0100 |
User-agent: |
KMail/1.9.5 |
I think libz is just missing in your case (add -lz to FFMPEG_LIBS), but the I
think you can compile linphone more simply with:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --disable-static && make
&& make install
and that's all.
Simon
Le jeudi 23 novembre 2006 11:34, Doug Blewett a écrit :
> I am still having trouble compiling linphone. Last time
> it was under ubuntu, now I am trying FC6. I thinking
> that my copy of ffmpeg may be the problem. Where is
> everyone getting their versions for ffmpeg? Can some
> one send along a config script for FC6? Thanks.
>
> Doug
>
> Here are the details of what I am doing:
>
> I got ffmpeg using the usual:
>
> svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
>
> I did configure, make, and install.
>
> I use the following script to configure linphone:
>
> export SPEEX_LIBS="-L/usr/local/lib/libspeex -lspeex"
> export SPEEX_CFLAGS=-I/usr/local
> export FFMPEG_CFLAGS=-I/usr/local
> export FFMPEG_LIBS="-L/usr/local/lib -lavcodec -lavutil"
>
> cat > local-linphone.cache <<EOF
> ac_cv_lib_avcodec_avcodec_register_all=yes
> EOF
>
> ./configure \
> --cache=local-linphone.cache \
> --with-ffmpeg=/usr/local
>
>
> I get the following error in mediastreamer/tests
> gcc -I.. -I../../oRTP/include -I/usr/local -DVIDEO_ENABLED -DORTP_INET6
> -DINET6 -Wall -O2 -g -Werror -pthread -D_REENTRANT -rdynamic -o
> .libs/mediastream mediastream.o -pthread ../src/.libs/libquickstream.so
> ../src/.libs/libmediastreamer.so ../../oRTP/src/.libs/libortp.so -lasound
> -L/usr/local/lib/libspeex /usr/local/lib/libspeex.so
> ../../gsmlib/.libs/libgsm.a -lavcodec -lpthread -lrt -ldl -Wl,--rpath
> -Wl,/usr/local/lib
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateReset'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateEnd'
> ../src/.libs/libmediastreamer.so: undefined reference to `av_crc_init'
> ../src/.libs/libmediastreamer.so: undefined reference to `av_d2q'
> ../src/.libs/libmediastreamer.so: undefined reference to `deflate'
> ../src/.libs/libmediastreamer.so: undefined reference to `deflateInit_'
> ../src/.libs/libmediastreamer.so: undefined reference to `av_crc04C11DB7'
> ../src/.libs/libmediastreamer.so: undefined reference to `av_log_get_level'
> ../src/.libs/libmediastreamer.so: undefined reference to `av_solve_lls'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflate'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateSync'
> ../src/.libs/libmediastreamer.so: undefined reference to `crc32'
> ...
>
> This can be patched a bit by adding -lavutil after every occurence of
> -lavcodec and then I get the following:
> gcc -I.. -I../../oRTP/include -I/usr/local -DVIDEO_ENABLED -DORTP_INET6
> -DINET6 -Wall -O2 -g -Werror -pthread -D_REENTRANT -rdynamic -o
> .libs/mediastream mediastream.o -pthread ../src/.libs/libquickstream.so
> ../src/.libs/libmediastreamer.so ../../oRTP/src/.libs/libortp.so -lasound
> -L/usr/local/lib/libspeex /usr/local/lib/libspeex.so
> ../../gsmlib/.libs/libgsm.a -L/usr/local/lib -lavcodec -lavutil -lpthread
> -lrt -ldl -Wl,--rpath -Wl,/usr/local/lib
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateReset'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateEnd'
> ../src/.libs/libmediastreamer.so: undefined reference to `deflate'
> ../src/.libs/libmediastreamer.so: undefined reference to `deflateInit_'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflate'
> ../src/.libs/libmediastreamer.so: undefined reference to `inflateSync'
> ../src/.libs/libmediastreamer.so: undefined reference to `crc32'
> ...