problem compiling vlc-0.8.4a in the ffmpeg.c file

*nix specific usage questions
coldfade

problem compiling vlc-0.8.4a in the ffmpeg.c file

Postby coldfade » 17 Apr 2006 14:45

hello when i run the configure with the suggested parameters in the developers.videolan.org guide i configures just fine. But whe i try to execute make it compiles to sometime and when it reaches the modules/codec/ffmpeg/ffmpeg.c file i get the following error:

Code: Select all

if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cflags builtin ffmpeg` -Wsign-compare -Wall -pipe -MT libffmpeg_a-ffmpeg.o -MD -MP -MF ".deps/libffmpeg_a-ffmpeg.Tpo" -c -o libffmpeg_a-ffmpeg.o `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \ then mv -f ".deps/libffmpeg_a-ffmpeg.Tpo" ".deps/libffmpeg_a-ffmpeg.Po"; else rm -f ".deps/libffmpeg_a-ffmpeg.Tpo"; exit 1; fi ffmpeg.c: In function `LibavcodecCallback': ffmpeg.c:334: error: `AVClass' undeclared (first use in this function) ffmpeg.c:334: error: (Each undeclared identifier is reported only once ffmpeg.c:334: error: for each function it appears in.) ffmpeg.c:334: error: `p_avc' undeclared (first use in this function) ffmpeg.c:339: error: structure has no member named `av_class' ffmpeg.c:347: error: `AV_LOG_ERROR' undeclared (first use in this function) ffmpeg.c:356: error: `AV_LOG_QUIET' undeclared (first use in this function) ffmpeg.c:362: error: `AV_LOG_INFO' undeclared (first use in this function) ffmpeg.c:365: error: `AV_LOG_DEBUG' undeclared (first use in this function) ffmpeg.c: In function `InitLibavcodec__ffmpeg': ffmpeg.c:392: warning: implicit declaration of function `av_log_set_callback' make[6]: *** [libffmpeg_a-ffmpeg.o] Error 1 make[6]: Leaving directory `/home/coldfade/vlc-0.8.4/modules/codec/ffmpeg' make[5]: *** [all-modules] Error 1 make[5]: Leaving directory `/home/coldfade/vlc-0.8.4/modules/codec/ffmpeg' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/coldfade/vlc-0.8.4/modules/codec' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/coldfade/vlc-0.8.4/modules/codec' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/coldfade/vlc-0.8.4/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/coldfade/vlc-0.8.4' make: *** [all] Error 2 root@cstrike:/home/coldfade/vlc-0.8.4#
i tried older version like 0.8.4 the some problem at the same point.

I`m using slackware 10.2 with 2.6.14-6 kernel. I want to use vlc az stream solution for divx/xvid movies with subtitles

thanks in advance.

coldfade

Guest

Postby Guest » 17 May 2006 02:27

I get the same thing. Looks like AVClass definition isn't part of ffmpeg-0.4.8. Does VLC require a newer/older version of ffmpeg?

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

Postby xtophe » 17 May 2006 10:59

VLC requires a ffmpeg from the CVS (around the date of the vlc release )
Xtophe

Raymon.du
New Cone
New Cone
Posts: 8
Joined: 09 May 2006 15:48

Postby Raymon.du » 18 May 2006 09:20

Perhaps the gcc can not find the include file of ffmpeg.c. Check your configuration. Pay attention to the -I option, is there some worning from gcc? Such like "could not fine *.h"


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 88 guests