Motion - Support Question 2006x 08x 30x 071553

error compiling ffmpeg.c with Suse 10.1 and ffmpeg 0.4.9-7

Question

With Suse 10.1 I get an error message while compiling the source code.

Suse 10.1 Kernel 2.6.13-15.11 ffmpeg 0.4.9-7.pm.svn20060817 (i586) (Packman Suse 10.0) mysql 4.1.13 (i586) postgresql 8.0.3-15 (i586)

I checked your support pages, FAQs, web sites... no hints frown, sad smile


UPDATE: maybe I have found an solution mailing list: http://sourceforge.net/mailarchive/forum.php?thread_id=24808614&forum_id=45090 "Try adding '-DFFMPEG_AVWRITEFRAME_NEWAPI' without the quotes to the CFLAGS argument in the Makefile"

-> compilation succeded

thx Ralf

OUTPUT of ./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.6
 Platform: Linux (if this is incorrect, please read README.FreeBSD)

Generating dependencies, please wait...

Compiling Motion object files...
--------------------------------------------------------------------------------
gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o motion.o motion.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o conf.o conf.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o draw.o draw.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o video.o video.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o netcam.o netcam.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o netcam_ftp.o netcam_ftp.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o netcam_jpeg.o netcam_jpeg.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o netcam_wget.o netcam_wget.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o track.o track.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o alg.o alg.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o event.o event.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o picture.o picture.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o rotate.o rotate.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o webhttpd.o webhttpd.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o webcam.o webcam.c
 gcc -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx -Wall -DVERSION=\"3.2.6\" -D_REENTRANT -Dsysconfdir=\"/usr/local/etc\"   -c -o ffmpeg.o ffmpeg.c
 ffmpeg.c:28:4: warning: #warning **************************************************
ffmpeg.c:29:4: warning: #warning Your version of FFmpeg is newer than version 0.4.8
 ffmpeg.c:30:4: warning: #warning Newer versions of ffmpeg do not support MPEG1 with
 ffmpeg.c:31:4: warning: #warning non-standard framerate. MPEG1 will be disabled for
 ffmpeg.c:32:4: warning: #warning normal video output. You can still use mpeg4 and
 ffmpeg.c:33:4: warning: #warning and mpeg4ms which are both better in terms of size
 ffmpeg.c:34:4: warning: #warning and quality. MPEG1 is always used for timelapse.
ffmpeg.c:35:4: warning: #warning Please read the Motion Guide for more information.
ffmpeg.c:36:4: warning: #warning Note that this is not an error message!
ffmpeg.c:37:4: warning: #warning **************************************************
ffmpeg.c: In function ‘ffmpeg_put_frame’:
ffmpeg.c:513: warning: passing argument 2 of ‘av_write_frame’ makes pointer from integer without a cast
 ffmpeg.c:513: error: too many arguments to function ‘av_write_frame’
ffmpeg.c:535: warning: passing argument 2 of ‘av_write_frame’ makes pointer from integer without a cast
 ffmpeg.c:535: error: too many arguments to function ‘av_write_frame’
make: *** [ffmpeg.o] Fehler 1


OUTPUT ./configure

checking for Darwin... no
 checking for *BSD... no
 checking for gcc... gcc
 checking for C compiler default output file name... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for suffix of executables...
checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ANSI C... none needed
 checking for pthread_create in -lpthread... yes
 checking for libjpeg-mmx... skipping
 checking for jpeg_set_defaults in -ljpeg... yes
 checking for ffmpeg autodetecting... found
 checking for ffmpeg headers... found
 checking for MySQL... yes
 checking for PostgreSQL... yes
 checking for PQcmdTuples in -lpq... yes
 checking for PQoidValue in -lpq... yes
 checking for PQclientEncoding in -lpq... yes
 checking for pg_encoding_to_char in -lpq... yes
 checking how to run the C preprocessor... gcc -E
 checking for egrep... grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking stdio.h usability... yes
 checking stdio.h presence... yes
 checking for stdio.h... yes
 checking for stdlib.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking fcntl.h usability... yes
 checking fcntl.h presence... yes
 checking for fcntl.h... yes
 checking time.h usability... yes
 checking time.h presence... yes
 checking for time.h... yes
 checking signal.h usability... yes
 checking signal.h presence... yes
 checking for signal.h... yes
 checking sys/ioctl.h usability... yes
 checking sys/ioctl.h presence... yes
 checking for sys/ioctl.h... yes
 checking sys/mman.h usability... yes
 checking sys/mman.h presence... yes
 checking for sys/mman.h... yes
 checking linux/videodev.h usability... yes
 checking linux/videodev.h presence... yes
 checking for linux/videodev.h... yes
 checking for short int... yes
 checking size of short int... 2
 checking for int... yes
 checking size of int... 4
 checking for an ANSI C-conforming const... yes
 Detected CPU: Pentium III (Coppermine)
CPU optimization: -march=pentium3 -mfpmath=sse -msse  -mmmx
 checking for bswap instruction... yes
 configure: creating ./config.status
 config.status: creating motion.init-FreeBSD.sh
 config.status: creating motion.init-Debian
 config.status: creating motion.init-RH
 config.status: creating motion.spec
 config.status: creating Makefile

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

OS             :     Linux
 pthread Support:     Yes
 jpeg Support:        Yes
 V4L included:        Yes
 FFmpeg Support:      Yes
 MYSQL Support:       Yes
 PostgreSQL Support:  Yes

CFLAGS:  -g -O2 -DHAVE_FFMPEG -I/usr/include/ffmpeg -DHAVE_MYSQL -I /usr/include/mysql -DHAVE_PGSQL -I/usr/include/pgsql -DTYPE_32BIT="int" -DHAVE_BSWAP   -march=pentium3 -mfpmath=sse -msse  -mmmx
 LIBS: -lm  -lpthread -ljpeg -L/usr/lib -lavformat -lavcodec -lm -lz -L/usr/lib -lmysqlclient -lz -L/usr/lib -lpq
 LDFLAGS:   -L/usr/lib

Install prefix:       /usr/local

Environment

Motion version: 3.2.6
ffmpeg version: 0.4.9-7.pm.svn20060817
Libraries: ffmpeg, mysql, postgresql
Server OS: Suse 10.1, kernel 2.6.13

-- RalfEscher - 30 Aug 2006

Answer

hello,
i have running motion with suse 10.1:
-i uninstalled ffmpeg with yast
-after that i searched for ffmpeg files
-i deleted the folder /usr/local/include/ffmpeg
-i installed ffmpeg with rpm -i ffmpeg-0.4.9-0.lvn.0.20.20051228.4.i386.rpm (but i was still not able to install motion)
-i installed ffmpeg again with: make clean, configure, make, make install.
-then i installed motion with: make clean, configure, make, make install.

...its running now, but without ffmpeg support.
I know it's not professionell but do not need the mpeg files.
If you have questions you can mail to willlli(at)web.de

kind regards
willi


This FAQ should fix that issue:

http://www.lavrsen.dk/twiki/bin/view/Motion/FrequentlyAskedQuestions#I_got_this_message_when_I_tried

-- AngelCarpintero - 19 Feb 2007
Topic revision: r3 - 19 Feb 2007, 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.