Page 1 of 1

undefined reference to `avpicture_free'

Posted: 15 Mar 2005 05:44
by leicestershire2000
Hi all,
I am trying to compile VLC-0.8.1 source code on linux machine.
the ./configure --prefix=/usr --enable-wxwindows looks good
but after I type make, I get some errors :

: undefined reference to `avpicture_alloc'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-video_filter.o)(.text+0x9a5): In function `CloseFilter__ffmpeg':
: undefined reference to `avpicture_free'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-chroma.o)(.text+0x17d): In function `OpenChroma__ffmpeg':
: undefined reference to `avpicture_alloc'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-chroma.o)(.text+0x4dd): In function `CloseChroma__ffmpeg':
: undefined reference to `avpicture_free'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/eric/vlc-0.8.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eric/vlc-0.8.1'
make: *** [all] Error 2

Please tell me what I should do to make it pass ...
Thanks

Posted: 15 Mar 2005 11:50
by xtophe
Hey,

You need to install ffmpeg or to disable it.

Have you read the INSTALL in the source and http://developers.videolan.org/vlc/nix-compile.html

Posted: 15 Mar 2005 20:37
by leicestershire2000
Hi,
Yeah, I have installed ffmpeg from http://ffmpeg.sourceforge.net/index.php, using ./configure --enable-shared --enable-pp , and got those errors. Any further suggestion ?

Thanks,
Hey,

You need to install ffmpeg or to disable it.

Have you read the INSTALL in the source and http://developers.videolan.org/vlc/nix-compile.html

Posted: 25 May 2005 04:43
by harv
Yeah I had all sorts of problems getting it to work, seems recent versions of FFmpeg have made some changes made (search the dev list on FFmpeg).
Using a slightly older CVS snapshot (before April 30th, I used FFMpeg-20050413) with the following:
--enable-pp --enable-gpl --cpu=i686
I needed the cpu setting because it kept failing to compile on some of the mmx stuff.
then I compiled vlc with the following:
--disable-libmpeg2 --disable-wxwindows --disable-skins2 --disable-gtk --disable-x11 --enable-mad --disable-kde --disable-qt --with-ffmpeg-tree=/usr/src/FFMpeg-20050413/
You might not need all that but the important bit is the referance to FFmpeg.

Hope that helps.

--Harv