[vlc-devel] Re: Can someone please assist me with the Mac OSX build from CVS?

Derk-Jan Hartman d.hartman at student.utwente.nl
Wed Aug 27 12:22:00 CEST 2003

On woensdag, aug 27, 2003, at 04:06 Europe/Amsterdam, John Michael 
Zorko wrote:
> Hello ...
> I realize that the VLC developers et al are likely busy, but i've 
> posted this issue 3-4 times now with no response at all.  Any help 
> would be appreciated ... i've installed the latest /usr/local stuff, 
> everything seems to be in the right place (and not in the wrong 
> places), but when I build VLC from CVS, the following errors are 
> reported:

DECODER_THREAD_COMMON is used in modules/codec/ffmpeg/video.h
It is defined in modules/codec/ffmpeg/ffmpeg.h

You are trying to compile ffmpeg.c
As shown below that file first includes ffmpeg.h and then video.h

> /* ffmpeg header */
> #   include <ffmpeg/avcodec.h>
> #else
> #   include <avcodec.h>
> #endif
> #   error You must have a libavcodec >= 4655 (get CVS)
> #endif
> #include "ffmpeg.h"
> #       include <postproc/postprocess.h>
> #   else
> #       include <libpostproc/postprocess.h>
> #   endif
> #endif
> #include "video.h" // video ffmpeg specific
> #include "audio.h" // audio ffmpeg specific

Personally i still think you have a contaminated /usr/include directory 
or something.
it's the only explanation that seems somewhat logical. an old header 
file in a place where it shouldn't be.

> Making all in ffmpeg
> source='ffmpeg.c' object='libffmpeg_a-ffmpeg.o' libtool=no \
> depfile='.deps/libffmpeg_a-ffmpeg.Po' 
> tmpdepfile='.deps/libffmpeg_a-ffmpeg.TPo' \
> depmode=gcc /bin/sh ../../../autotools/depcomp \
> gcc -DHAVE_CONFIG_H -I. -I. -I../../..   -DSYS_DARWIN 
> -I../../../include `top_builddir="../../.." ../../../vlc-config 
> --cflags builtin ffmpeg` -Wsign-compare -Wall  -no-cpp-precomp 
> -D_INTL_REDIRECT_MACROS -finline-limit-30000 -pipe -c -o 
> libffmpeg_a-ffmpeg.o `test -f 'ffmpeg.c' || echo './'`ffmpeg.c
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system 
> directory
> In file included from ../../../include/vlc/vout.h:37,
>                  from ffmpeg.c:30:
> video.h:26: parse error before "DECODER_THREAD_COMMON"

> I ran ./configure thusly:
> [dhcp-209:videolan/vlc_from_CVS/vlc] jmzorko% ./configure 
> --disable-x11 --disable-xvideo --disable-gtk --disable-sdl 
> --enable-ffmpeg --with-ffmpeg-mp3lame --enable-mad --enable-libdvbpsi 
> --enable-a52 --enable-dvdplay --enable-faad --enable-vorbis 
> --enable-ogg --enable-theora --enable-faac --enable-mkv 
> --enable-freetype --enable-debug


> ... then just did a make.  Is the version of ffmpeg / libavcodec in 
> the latest /usr/local too old?  Is there another problem that i've not 
> handled correctly?  This is building VLC according to the instructions 
> on the developers pages on videolan.org, and the code is straight from 
> CVS -- no changes at all.  I'd be grateful for some help from the VLC 
> community on this -- i'm sure that a few moments of someone's time 
> will be all that is needed.

What developer tools are you using? The latest? I don't think it can 
explain this, but who knows.
i don't get this at all. I'm sorry that i can't be of any further 
assistence. I just don't know what's wrong.


Videolan - VLC media player
Derk-Jan Hartman (thedj at users.sourceforge.net)
Co-Developer of the MacOS X port of vlc

This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>

More information about the vlc-devel mailing list