[vlc] Problem compiling vlc 0.4.6 with ffmpeg
Pierre
pierre at epinetworx.com
Tue Nov 19 09:57:25 CET 2002
Hi,
I try to compile vlc-0.4.6 on my GNU/Linux system with gcc-3.2
there was no problem with the configure, but for the make I got this :
[...]
gmake[1]: Entering directory `/tmp/vlc-0.4.6/plugins/ffmpeg'
gcc -s -O3 -march=i686 -DSYS_LINUX -finline-limit-30000 -Wall -Winline
-pipe -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
-DLOCALEDIR=\"/usr/local/share/locale\"
-DDATA_PATH=\"/usr/local/share/videolan\"
-DPLUGIN_PATH=\"/usr/local/lib/videolan/vlc\" -Iinclude -Iextras
-D_REENTRANT -D_GNU_SOURCE -O3 -ffast-math -funroll-loops
-fomit-frame-pointer -mcpu=pentiumpro -D__VLC__ -D__BUILTIN__
-I../../include -I../../extras -DMODULE_NAME=ffmpeg
-DMODULE_NAME_IS_ffmpeg -c ffmpeg.c -o ffmpeg.o.ffmpeg
ffmpeg.c:52:77: avcodec.h: No such file or directory
In file included from ffmpeg.c:53:
ffmpeg.h:47: parse error before "AVCodecContext"
ffmpeg.h:47: warning: no semicolon at end of struct or union
ffmpeg.h:48: warning: type defaults to `int' in declaration of `p_codec'
[...]
Here is a patch that correct this :
--- plugins/ffmpeg/ffmpeg.c.old 2002-11-19 09:27:40.000000000 +0100
+++ plugins/ffmpeg/ffmpeg.c 2002-11-19 09:29:00.000000000 +0100
@@ -49,7 +49,7 @@
#include "vdec_ext-plugins.h"
-#include "avcodec.h" /*
ffmpeg */
+#include <ffmpeg/avcodec.h> /*
ffmpeg */
#include "ffmpeg.h"
/*
Best regards,
Pierre.
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc
mailing list