Page 1 of 1

error compiling vlc

Posted: 22 Sep 2005 20:06
by nik600
i'm trying to compile vlc with

./configure --prefix=/usr --enable-wxwindows

but during the configure i get the following error:

Code: Select all

checking for ffmpeg-config... no checking ffmpeg/avcodec.h usability... no checking ffmpeg/avcodec.h presence... no checking for ffmpeg/avcodec.h... no configure: error: Missing header file ffmpeg/avcodec.h.
what can i do?
i use slackware 10.1 with kernel 2.6.8.1

thanks

Re: error compiling vlc

Posted: 22 Sep 2005 21:30
by fkuehne
You need to install ffmpeg or use --disable-ffmpeg to disable its usage. I strongly recommend you to install ffmpeg including its dev-headers, because otherwise you won't be able to play most video and audio files. Installing the current cvs-version of ffmpeg is preferable, because the 0.4.8 release is not compatible with the current release of VLC and many improvements were added since the 0.4.9-pre1 release.

Posted: 22 Sep 2005 22:14
by nik600
thanks!

i've compiled ffmpeg-0.4.9-pre1

with: ./configure --enable-pp --enable-gpl

and vlc-0.8.2

with: ./configure --prefix=/usr/local/vlc-0.8.2/ --with-ffmpeg-tree=/home/programmi/streaming/ffmpeg-0.4.9-pre1 --enable-wxwindows



and all works fine!

Posted: 23 Sep 2005 18:39
by Guest
I have tried the same, during ffmpeg configue i get the following:

/tmp/ffmpeg-conf-6500-28598-27733.c:1:21: altivec.h: Datei oder Verzeichnis nicht gefunden
/tmp/ffmpeg-conf-6500-28598-27733.c:1: error: synt


Any idea

Posted: 25 Sep 2005 19:30
by fkuehne
Hmm, seems like you want to compile ffmpeg on a ppc without having altivec-headers. Try --disable-altivec in ffmpeg's command-line. Note that you should apply this option to VLC's configure too.

Posted: 27 Sep 2005 09:13
by Guest
Thanks,

for what is altivec needed ?

RP

Posted: 27 Sep 2005 17:31
by fkuehne
AltiVec (sometimes also called "Velocity Engine") is a special unit of PowerPC G4 and G5 processors (not of G3s though), which can noticeably speed up math calculations. Therefore, playback, streaming, encoding, etc. with VLC will be much faster, if it can make use of that unit.

Posted: 06 Oct 2005 22:00
by butler
thanks!

i've compiled ffmpeg-0.4.9-pre1

with: ./configure --enable-pp --enable-gpl

and vlc-0.8.2

with: ./configure --prefix=/usr/local/vlc-0.8.2/ --with-ffmpeg-tree=/home/programmi/streaming/ffmpeg-0.4.9-pre1 --enable-wxwindows



and all works fine!
When I do exactly this, I get a bunch of errors in ffmpeg.c...

error compiling vlc

Posted: 08 Oct 2005 20:50
by linuxer
the configure file should be modified to point directly to avcodec.h which is the only file the actual ffmpeg versions (both stable and CVS) install.
Pointing instead to the compiling directory of ffmpeg, while working, is very unorthodox : those directory usually are provisionnal and uselessly are bite-eaters.

Theremore, the actual CVS version doesn't work to compile VLC. The stable version does.

From another hand, it sd be noted that wxwindows doesn't exist as an actual version any more. It actually is wxGtk.
As far as wxGtk development package is concerned, it did'nt manage to find it as an equivalent source version of the actual wxGtk.

Happily, i got it as a rpm in my SuSE distro and intsalling it i could compile.

Nevertheless, now vlc crashes when trying to read a DVD : will try the verbosity level, let's see