[vlc] Re: Linux compile problems with VLC and ffmpeg

Jean Ribiere jean.ribiere at wanadoo.fr
Fri Nov 28 15:40:18 CET 2003


> I get errors when trying to compile vlc. I have compiled ffmpeg with the
> following options:
> ./configure --prefix=/opt/ffmpeg-0.4.8/ --enable-mp3lame --enable-vorbis
> --enable-faad --enable-a52 --enable-shared --enable-pp
> make
> make install
>
> And when trying to compile vlc with following options:
> ./configure --with-ffmpeg-mp3lame --with-ffmpeg-tree=/opt/src/ffmpeg-0.4.8
> the "make" fails with the follwing exit code:
> ffmpeg.c: In function `InitThread':
> ffmpeg.c:300: error: parse error before "LIBAVCODEC_BUILD_STR"
>

I had also this error when compiling vlc-0.6.2.
I think it is a problem with gcc (I am using gcc-3.2.3), if you delete
the quotes the compilation is ok.

So I did the following modification :
  cd modules/codec/ffmpeg
  test -e ffmpeg.old  || cp ffmpeg.c ffmpeg.old
  sed 's/interface "/interface/
       s/LIBAVCODEC_BUILD_STR "/LIBAVCODEC_BUILD_STR/' ffmpeg.c >ffmpeg.tmp
  cp ffmpeg.tmp ffmpeg.c

It seems the problem no longer exists with vlc-0.7.0-test1

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



More information about the vlc mailing list