#------------------------------------------------------------------------------ # Copyright (c) 2001-2006 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # Creation: 2007-09-18 jed # Last Update: $Id: build_motion-cgi.txt 11912 2007-09-04 22:44:38Z jed $ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 # - needs the following library packages to be build: # # - needs the following packages to be build: + base 1.4.2 + libavcodec 0.7.1 + libmp3lame 0.7.1 + libfaad2 0.7.1 + libfaac 0.7.1 + libxvidcore 0.7.1 + libtheora 0.7.1 + libogg 0.1.4 + libvorbis 0.1.4 + libavcodec-dev 0.7.1 + libavformat + libavformat-dev + libmp3lame-dev 0.7.1 + libfaad2-dev 0.7.1 + libfaac-dev 0.7.1 + libxvidcore-dev 0.7.1 + libtheora-dev 0.7.1 + libogg-dev 0.1.4 + libvorbis-dev 0.1.4 + mjpegtools 0.0.1 + mjpegtools-dev 0.0.1 + ffmpeg 0.7.1 libjpeg 1.6.3 libjpeg-dev 1.6.3 ### download wget http://sourceforge.net/projects/motion/files/motion%20-%203.2/motion-3.2.12.tar.gz ### extract gzip -d motion-3.2.12.tar.gz tar xvf motion-3.2.12.tar ### configure software # 11.10.2010 - switch --without-optimizecpu has been added to prevent # an 'Illegal instruction' error. cd motion-3.2.12 eisfair-1: ./configure --sysconfdir=/var/motion --without-optimizecpu eisfair-2: ./configure --sysconfdir=/data/packages/motion --without-optimizecpu --without-mysql --without-pgsql ... ******************************* Configure status motion 3.2.12 ******************************* OS : Linux pthread Support: Yes jpeg Support: Yes V4L included: Yes V4L2 supported: No FFmpeg Support: Yes MYSQL Support: No PostgreSQL Support: No CFLAGS: -g -O2 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include/ffmpeg -DTYPE_32BIT="int" -DHAVE_BSWAP LIBS: -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lavutil -lm -lz LDFLAGS: -L/usr/lib Install prefix: /usr/local ### make software make Welcome to the setup procedure for Motion, the motion detection daemon! If you get error messages during this procedure, please report them to the mailing list. The Motion Guide contains all information you should need to get Motion up and running. Run "make updateguide" to download the latest version of the Motion Guide. Version: 3.2.12 Platform: Linux (if this is incorrect, please read README.FreeBSD) Generating dependencies, please wait... Compiling Motion object files... ... ffmpeg.c:26:10: warning: #warning ************************************************** ffmpeg.c:27:10: warning: #warning Your version of FFmpeg is newer than version 0.4.8 ffmpeg.c:28:10: warning: #warning Newer versions of ffmpeg do not support MPEG1 with ffmpeg.c:29:10: warning: #warning non-standard framerate. MPEG1 will be disabled for ffmpeg.c:30:10: warning: #warning normal video output. You can still use mpeg4 and ffmpeg.c:31:10: warning: #warning and mpeg4ms which are both better in terms of size ffmpeg.c:32:10: warning: #warning and quality. MPEG1 is always used for timelapse. ffmpeg.c:33:10: warning: #warning Please read the Motion Guide for more information. ffmpeg.c:34:10: warning: #warning Note that this is not an error message! ffmpeg.c:35:10: warning: #warning ************************************************** Motion object files compiled. ... Linking Motion... -------------------------------------------------------------------------------- gcc -L/usr/lib -o motion motion.o conf.o draw.o jpegutils.o video.o video2.o video_common.o netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o alg.o e vent.o picture.o rotate.o webhttpd.o webcam.o ffmpeg.o -lm -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lavutil -lm -lz -------------------------------------------------------------------------------- Motion has been linked. Build complete, run "make install" to install Motion! ### strip binary strip -s motion ### package files tar cvzf ../motion-3.2.12.tgz motion *.conf *.1 README README.axis_2100 motion.init* ### CGI files cd motion tar cvzf ../motion-cgi.tgz * --owner=root --group=root cp ../motion-cgi.tgz /tmp/