Home > Programmering > Update code with GIT or SVN

Update code with GIT or SVN

To update your source code and recompile SVN:

cd {dir_with_source}
svn up
make clean

http://blog.avirtualhome.com/2009/05/29/how-to-compile-mplayer-with-vdpau-support-on-ubuntu/

Example to compile ffmpeg after source update:

./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc \
    --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis \
    --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
    --deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe

To compile MPlayer you might need some extra directories from ffmpeg. Example:

cd ~/code/mplayer
mkdir libavutil
cp -r /home/holm/code/ffmpeg/libavutil/* libavutil

To update your source code and recompile GIT:

cd {dir_with_source}
make distclean
git pull
Categories: Programmering Tags:
  1. No comments yet.
  1. No trackbacks yet.