when I had make mplayer's source, and later want to make it again, it always start with a distclean, is there a way to overcome this?
Use ccache. I use it and make things really really fast. ccache caches your compiled .o files in a separate directory and even if distclean deletes them in mplayer's source directory, ccache replaces them when needed by the compiler+linker. The only time the .o file will not be replaced it when it needs to be compiled. In essence only new files get actually compiled(and also get cached by ccache for subsequent use). I do it every 3 days after getting latest CVS. This is how my mpmake.sh script looks like. It downloads the latest CVS of ffmpeg and mplayer and does the job for me. Last but not the least, use google to search for place where u can get ccache. VJ ##********************** Script starts cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co main cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg LOG="/tmp/log" ERR="/tmp/err" echo -e "Copying lavccodec to main...\c" cp -r ffmpeg/libavcodec main/ echo "Done!" cd main export CC='ccache gcc' echo "******************************************************************" ccache -s echo "******************************************************************" echo -e "Running configure...\c" ./configure --with-xvidlibdir=/usr/lib --with-xvidincdir=/usr/include 1>$LOG 2>$ERR echo "Done!" echo -e "Proceeding to build...\c" make distclean 1>>$LOG 2>>$ERR ; make 1>>$LOG 2>>$ERR ; echo "Done!" echo "******************************************************************" ccache -s echo "******************************************************************" ##********************** Script ends ----- Original Message ----- From: "Carl Fûrstenberg" <azatoth@gmail.com> To: "MPlayer usage questions, features, bugreports" <mplayer-users@mplayerhq.hu> Sent: Monday, October 18, 2004 12:07 PM Subject: [MPlayer-users] fast recompile
when I had make mplayer's source, and later want to make it again, it always start with a distclean, is there a way to overcome this?
_______________________________________________ MPlayer-users mailing list MPlayer-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-users
participants (2)
-
Carl Fûrstenberg -
VJ