Page 1 of 1

Can't Compile VLC

Posted: 02 Jan 2012 08:40
by eNergizer
Following this guide:
Make sure you have Yum setup to point to Dags repositorys before starting.

install the following via yum
x11
libshout
lame
zlibs
libgcrypt
libdvbpsi
gcc
g++
libtool

There might be some I missed.. When you run your make on each package list below.. it it errors out, it'll tell you which package you'll need to install via Yum.

Get the: x264-snapshot-20100710-2245 snapshot of X264
X264

./configure --enable-shared --prefix=/usr/local/customvlc/x264 --enable-gprof
make
make test
make install

Set these environemental variables.
PKG_CONFIG_PATH=/usr/local/customvlc/libshout/lib/pkgconfig:/usr/local/customvlc/ffmpeg/lib/pkgconfig:/usr/lib64/pkgconfig/:/usr/local/customvlc/x264/lib/pkgconfig
export PKG_CONFIG_PATH

PATH=$PATH:/usr/local/customvlc/x264/bin:/usr/local/customvlc/ffmpeg/bin
export PATH

Get the 8.6 Version of FFMPEG

./configure --prefix=/usr/local/customvlc/ffmpeg --enable-avfilter --enable-libdirac --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-swscale --extra-ldflags=-L/usr/local/customvlc/x264/lib --extra-cflags=-I/usr/local/customvlc/x264/include

make
make install


Get the source of VLC 1.1.2
./configure --prefix=/usr/local/customvlc/vlc.1.1.2 --enable-shout --enable-x264 --disable-nls --disable-mozilla --disable-a52 --disable-xcb --disable-qt4 --disable-skins2 --disable-v4l2
make
make install


And I seem to be getting these errors in ./compile:
[root@PlayMOAR vlc-1.1.2]# ./compile
MAKE : po
MAKE : compat
MAKE : src
(git --git-dir="../.git/" describe --tags --long \
--match '?.*.*' --always || echo exported) > revision.tmp
fatal: Not a git repository: '../.git/'
if diff revision.tmp revision.txt >/dev/null 2>&1; then \
else \
mv -f -- revision.tmp revision.txt; \
fi 2>&1
MAKE : .
MAKE : test
MAKE : libs/srtp
MAKE : bin
MAKE : modules
MAKE : access
MAKE : dvb
MAKE : mms
MAKE : rtp
MAKE : rtsp
MAKE : vcd
MAKE : vcdx
MAKE : screen
MAKE : bd
MAKE : zip
MAKE : audio_filter
MAKE : channel_mixer
MAKE : converter
MAKE : resampler
MAKE : spatializer
MAKE : audio_mixer
MAKE : audio_output
MAKE : codec
MAKE : dmo
MAKE : avcodec
avcodec.c: In function 'OpenDecoder':
ERROR : avcodec.c: 265: 'FF_MM_MMX' undeclared (first use in this function)
ERROR : avcodec.c: 265: (Each undeclared identifier is reported only once
ERROR : avcodec.c: 265: for each function it appears in.)
ERROR : avcodec.c: 269: 'FF_MM_MMXEXT' undeclared (first use in this function)
ERROR : avcodec.c: 273: 'FF_MM_3DNOW' undeclared (first use in this function)
ERROR : avcodec.c: 277: 'FF_MM_SSE' undeclared (first use in this function)
ERROR : avcodec.c: 281: 'FF_MM_SSE2' undeclared (first use in this function)
make: *** [all] Error 2

Re: Can't Compile VLC

Posted: 02 Jan 2012 09:46
by eNergizer
Nevermind, I fixed it by using yum install vlc which gave me vlc 0.9.9a

Then I compiled vlc 1.1.2 and replaced the files in /usr/bin/ with the compiled files.