BUG: Cannot comile last motion svn trunk (rev 556) with ffmpeg 0.11-4.1
Cannot comile last motion svn trunk (rev 556) with ffmpeg 0.11-4.1
fmpeg.c:91:29: error: unknown type name ‘URLContext’
ffmpeg.c:133:1: error: unknown type name ‘URLProtocol’
ffmpeg.c:134:5: error: field name not in record or union initializer
ffmpeg.c:134:5: error: (near initialization for ‘mpeg1_file_protocol’)
lnxvrx:/home/virex/motion_revision_556 # 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: trunkREV554
Platform: Linux (if this is incorrect, please read README.FreeBSD)
Compiling Motion object files...
--------------------------------------------------------------------------------
gcc -g -O2 -D_REENTRANT -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -march=i686 -Wall -DVERSION=\"trunkREV554\" -Dsysconfdir=\"/usr/local/etc\" -c -o ffmpeg.o ffmpeg.c
ffmpeg.c:27:10: warning: #warning ************************************************** [-Wcpp]
ffmpeg.c:28:10: warning: #warning Your version of FFmpeg is newer than version 0.4.8 [-Wcpp]
ffmpeg.c:29:10: warning: #warning Newer versions of ffmpeg do not support MPEG1 with [-Wcpp]
ffmpeg.c:30:10: warning: #warning non-standard framerate. MPEG1 will be disabled for [-Wcpp]
ffmpeg.c:31:10: warning: #warning normal video output. You can still use mpeg4 and [-Wcpp]
ffmpeg.c:32:10: warning: #warning and mpeg4ms which are both better in terms of size [-Wcpp]
ffmpeg.c:33:10: warning: #warning and quality. MPEG1 is always used for timelapse. [-Wcpp]
ffmpeg.c:34:10: warning: #warning Please read the Motion Guide for more information. [-Wcpp]
ffmpeg.c:35:10: warning: #warning Note that this is not an error message! [-Wcpp]
ffmpeg.c:36:10: warning: #warning ************************************************** [-Wcpp]
ffmpeg.c:91:29: error: unknown type name ‘URLContext’
ffmpeg.c:133:1: error: unknown type name ‘URLProtocol’
ffmpeg.c:134:5: error: field name not in record or union initializer
ffmpeg.c:134:5: error: (near initialization for ‘mpeg1_file_protocol’)
ffmpeg.c:134:5: warning: initialization makes integer from pointer without a cast [enabled by default]
ffmpeg.c:134:5: warning: (near initialization for ‘mpeg1_file_protocol’) [enabled by default]
ffmpeg.c:135:5: error: field name not in record or union initializer
ffmpeg.c:135:5: error: (near initialization for ‘mpeg1_file_protocol’)
ffmpeg.c:135:17: error: ‘file_open_append’ undeclared here (not in a function)
ffmpeg.c:136:1: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:136:1: warning: (near initialization for ‘mpeg1_file_protocol’) [enabled by default]
ffmpeg.c:152:22: error: unknown type name ‘URLContext’
ffmpeg.c:179:22: error: unknown type name ‘URLContext’
ffmpeg.c:188:23: error: unknown type name ‘URLContext’
ffmpeg.c:197:26: error: unknown type name ‘URLContext’
ffmpeg.c:208:23: error: unknown type name ‘URLContext’
ffmpeg.c:214:1: error: unknown type name ‘URLProtocol’
ffmpeg.c:215:5: warning: initialization makes integer from pointer without a cast [enabled by default]
ffmpeg.c:215:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:216:5: error: ‘file_open’ undeclared here (not in a function)
ffmpeg.c:216:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:216:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:217:5: error: ‘file_read’ undeclared here (not in a function)
ffmpeg.c:217:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:217:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:218:5: error: ‘file_write’ undeclared here (not in a function)
ffmpeg.c:218:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:218:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:219:5: error: ‘file_seek’ undeclared here (not in a function)
ffmpeg.c:219:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:219:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:220:5: error: ‘file_close’ undeclared here (not in a function)
ffmpeg.c:220:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:220:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:222:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:222:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:223:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:223:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c:224:5: warning: excess elements in scalar initializer [enabled by default]
ffmpeg.c:224:5: warning: (near initialization for ‘file_protocol’) [enabled by default]
ffmpeg.c: In function ‘mpeg1_write_trailer’:
ffmpeg.c:242:5: warning: implicit declaration of function ‘put_buffer’ [-Wimplicit-function-declaration]
ffmpeg.c:243:5: warning: implicit declaration of function ‘put_flush_packet’ [-Wimplicit-function-declaration]
ffmpeg.c: In function ‘ffmpeg_init’:
ffmpeg.c:274:24: error: request for member ‘url_read’ in something not a structure or union
ffmpeg.c:274:50: error: request for member ‘url_read’ in something not a structure or union
ffmpeg.c:275:24: error: request for member ‘url_write’ in something not a structure or union
ffmpeg.c:275:50: error: request for member ‘url_write’ in something not a structure or union
ffmpeg.c:276:24: error: request for member ‘url_seek’ in something not a structure or union
ffmpeg.c:276:50: error: request for member ‘url_seek’ in something not a structure or union
ffmpeg.c:277:24: error: request for member ‘url_close’ in something not a structure or union
ffmpeg.c:277:50: error: request for member ‘url_close’ in something not a structure or union
ffmpeg.c:285:5: warning: #warning av_register_protocolXXX missing [-Wcpp]
ffmpeg.c: In function ‘ffmpeg_open’:
ffmpeg.c:476:9: warning: ‘av_new_stream’ is deprecated (declared at /usr/include/libavformat/avformat.h:1557) [-Wdeprecated-declarations]
ffmpeg.c:540:5: warning: implicit declaration of function ‘av_set_parameters’ [-Wimplicit-function-declaration]
ffmpeg.c:570:5: warning: ‘avcodec_open’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3380) [-Wdeprecated-declarations]
ffmpeg.c:630:9: warning: implicit declaration of function ‘url_fopen’ [-Wimplicit-function-declaration]
ffmpeg.c:630:52: error: ‘URL_WRONLY’ undeclared (first use in this function)
ffmpeg.c:630:52: note: each undeclared identifier is reported only once for each function it appears in
ffmpeg.c:664:5: warning: implicit declaration of function ‘av_write_header’ [-Wimplicit-function-declaration]
ffmpeg.c: In function ‘ffmpeg_close’:
ffmpeg.c:741:9: warning: implicit declaration of function ‘url_fclose’ [-Wimplicit-function-declaration]
ffmpeg.c: In function ‘ffmpeg_put_frame’:
ffmpeg.c:829:9: warning: ‘avcodec_encode_video’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4077) [-Wdeprecated-declarations]
make: *** [ffmpeg.o] Ошибка 1
Environment
Motion version: |
rev 556 |
ffmpeg version: |
0.11-4.1 |
Shared libraries: |
ffmpeg |
Server OS: |
openSUSE 12.1 |
--
IgorKuznetsov - 16 Jun 2012
Follow up
http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2012x06x12x164949
--
AngelCarpintero - 08 Jul 2012
Fix record
Added support to ffmpeg 0.11 in GIT and SVN .
--
AngelCarpintero - 17 Jul 2012