From: Jason <mo...@la...> - 2009-12-21 15:22:11
|
K. Larsen wrote: > Hello All, > > I'm interested in getting motion running on a beagleboard. (more info > here: http://beagleboard.org/ and here: http://elinux.org/BeagleBoard > ). This is a board with an ARMv7 CPU. > > I was wondering if anyone's had any luck getting motion to > cross-compile for an ARM processor. I'm getting errors that I'll > paste below. They seemed to be caused by the makefile including the > build systems headers and libraries. For example "video_common.c:18: > error: redefinition of typedef ‘uint8_t’, /usr/include/stdint.h:49: > error: previous declaration of ‘uint8_t’ was here". > /usr/include/stdint.h should not ever have been included but we see > that it was. If anyone has any pointers to help me I'd really > appreciate it! > nine times out of ten the configure script is the culprit when cross-compiling fails. Assuming all dependencies have successfully cross-compiled and are in the correct location. ;-) > Here is the output from make, including the errors: > > Version: 3.2.11.1 > armv7tl-hardfloat-linux-gnueabi-gcc -Os -pipe -march=armv7-a > -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fomit-frame-pointer > -I/usr/armv7tl-hardfloat-linux-gnueabi/usr/include/ > -I/usr/armv7tl-hardfloat-linux-gnueabi/include/ -DWITHOUT_V4L > -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES The above line is wrong, '-I/usr/include' shouldn't be there. To better resolve this, start with a virgin motion source tree, in a new terminal (no extra vars set), and send us the exact configure command you used (including any variables that you need to set, eg, CC, CFLAGS, etc) as well as the output of it. Also, which cross-compiler are you using? Yes, it's armv7tl-hardfloat-linux-gnueabi-gcc, but who packaged it? Is there a pointer to their build methodology? Lastly, have you already cross-compiled ffmpeg to the proper location? > -DHAVE_FFMPEG_NEW -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall > -DVERSION=\""3.2.11.1"\" -Dsysconfdir=\"/etc\" -c -o netcam_ftp.o > netcam_ftp.c > In file included from motion.h:46, > from draw.c:13: hth, Jason. |