undefined reference to `avpicture_free'

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
leicestershire2000

undefined reference to `avpicture_free'

Postby leicestershire2000 » 15 Mar 2005 05:44

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

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Postby xtophe » 15 Mar 2005 11:50

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
Xtophe

leicestershire2000
Blank Cone
Blank Cone
Posts: 14
Joined: 15 Mar 2005 06:03

Postby leicestershire2000 » 15 Mar 2005 20:37

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

harv

Postby harv » 25 May 2005 04:43

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests