|
From: David P. <da...@de...> - 2012-08-12 20:35:36
|
I have just finished installing Motion on three Pogo Plug computers, which are very similar to the Raspberry Pi, except that they're running Arch Linux. I had a lot of trouble getting it installed on all three, but on the third one I finally wised up and took notes. Maybe they will help. Here's what I had to do - note that this is to install Motion version 3.2.12 on a virgin Pogo, so adjust them accordingly. 1 - cd /tmp (or wherever you have at least 150MB of space) 2 - download ffmpeg-motion.tar.gz (the one that is certified to work with Motion) 3 - download motion-3.2.12.tar.gz 4 - install gcc 5 - install make 6 - install v4l-utils 7 - install mysql-clients 8 - ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h 9 - tar -xvzf ffmpeg-motion.tar.gz 10 - tar -xvzf motion-3.2.12.tar.gz 11 - cd ffmpeg 12 - ./configure --disable-ffplay 13 - make (this step takes about an hour!) 14 - make install 15 - cd ../motion-3.2.12 16 - vi track.h (insert "#include <linux/videodev2.h>" into track.h on line 13, just after the alg.h include) 17 - ./configure 18 - make 19 - make install HTH. David On 08/12/2012 07:52 AM, Robin Cawser wrote: > I've been trying for weeks to compile Motion on my Raspberry Pi > running Debian Wheezy. > > I can successfully install Motion with apt-get but this doesn't > support mysql, so I've been trying to compile it myself. > > I've tried the latest motion, as well as motion-trunk, and I get > different errors for each one. I've tried compiling ffmpeg, it takes > hours to compile and each version I've tried has given errors when > building. > > I feel this is the farthest I've got using the latest motion-trunk and > FFMPEG from deb-multimedia.org <http://deb-multimedia.org>. I have it > configured to include FFMPEG and MYSQL using: > > sudo ./configure --with-mysql-lib=/usr/lib/arm-linux-gnueabihf/ > --with-ffmpeg=/usr/lib/arm-linux-gnueabihf > > > ************************** > Configure status > motion trunkREV557 > ************************** > > OS : Linux > pthread support: Yes > jpeg support: Yes > V4L support: Yes > V4L2 support: Yes > SDL support: No > FFmpeg support: Yes > SQLite3 support: Yes > MYSQL support: Yes > PostgreSQL support: No > > > CFLAGS: -g -O2 -D_REENTRANT -DHAVE_FFMPEG > -I/usr/lib/arm-linux-gnueabihf -DHAVE_FFMPEG_NEW -I/usr/include/mysql > -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP > LIBS: -lm -lpthread -ljpeg -L/usr/lib/arm-linux-gnueabihf -lavformat > -lavcodec -lavutil -lm -lz -lsqlite3 -L/usr/lib/arm-linux-gnueabihf/ > -lmysqlclient -lz > LDFLAGS: -L/usr/lib/arm-linux-gnueabihf > > > But when it comes to make I get the following errors: > > vloopback_motion.c: In function âv4l_startpipeâ: > vloopback_motion.c:185:26: error: storage size of âvid_picâ isnât known > vloopback_motion.c:186:25: error: storage size of âvid_winâ isnât known > vloopback_motion.c:202:20: error: âVIDIOCGPICTâ undeclared (first use > in this function) > vloopback_motion.c:202:20: note: each undeclared identifier is > reported only once for each function it appears in > vloopback_motion.c:209:20: error: âVIDIOCSPICTâ undeclared (first use > in this function) > vloopback_motion.c:214:20: error: âVIDIOCGWINâ undeclared (first use > in this function) > vloopback_motion.c:222:20: error: âVIDIOCSWINâ undeclared (first use > in this function) > vloopback_motion.c:186:25: warning: unused variable âvid_winâ > [-Wunused-variable] > vloopback_motion.c:185:26: warning: unused variable âvid_picâ > [-Wunused-variable] > make: *** [vloopback_motion.o] Error 1 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome -- |