Motion - Bug Report 2007x 10x 23x 093651
You are here: Foswiki>Motion Web>BugReports>BugReport2007x10x23x093651 (18 May 2008, AngelCarpintero)Edit Attach

BUG: mjpegtools breaks compilation in AMD64

Compiling motion with mjpegtools support breaks motion compilation for AMD64.

 ************************
   *   Configure status   *
 ************************

OS             :     Linux
pthread Support:     Yes
jpeg Support:        Yes
mjpeg Support:       Yes
V4L included:        Yes
V4L2 supported:      Yes
FFmpeg Support:      Yes
MYSQL Support:       No
PostgreSQL Support:  No

CFLAGS:  -g -O2 -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP   
LIBS: -lm  -lpthread -ljpeg -lavformat -lavcodec -lavutil -lvorbis -lvorbisenc -ltheora -logg -lraw1394 -ldc1394_control -lgsm -lz -lm
LDFLAGS:   -lmjpegutils -llavjpeg

make

...

gcc -g -O2 -DMJPEGT -DHAVE_FFMPEG -I/usr/include/ffmpeg -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP    -Wall -DVERSION=\"3.2.9\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o video_common.o video_common.c
In file included from video_common.c:19:
/usr/include/mjpegtools/mjpeg_types.h:40: error: tipos en conflicto para 'int64_t'
/usr/include/sys/types.h:198: error: la declaración previa de 'int64_t' estaba aquí
make: *** [video_common.o] Error 1

Environment

Motion version: 3.2.9 svn r236
ffmpeg version: cvs20070307-5ubuntu4
Shared libraries: ffmpeg
Server OS: Ubuntu gutsy AMD64, 2.6.22-14-generic

-- AngelCarpintero - 23 Oct 2007

Follow up

Fix record

patch < mjpegtools-amd64.patch
aclocal
autoheader
autoconf
./configure

-- AngelCarpintero - 23 Oct 2007

Included in svn r256

-- AngelCarpintero - 15 Nov 2007
I Attachment Action Size Date Who Comment
mjpegtools-amd64.patchpatch mjpegtools-amd64.patch manage 1 K 23 Oct 2007 - 10:01 AngelCarpintero fix mjpegtools compilation in AMD64 introducing config.h in configure.in
Topic revision: r3 - 18 May 2008, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.