|
From: Robin C. <rob...@gm...> - 2012-08-12 12:52:23
|
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. 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 |