Hi,
i'm trying to compile the cvs version of gem under fedora 7.
Here's where it hangs:
In file included from ../Pixes/filmFFMPEG.h:24,
from filmFFMPEG.cpp:18:
/usr/include/ffmpeg/avformat.h:66: error: integer constant is too large
for ‘long’ type
/usr/include/ffmpeg/avformat.h:67: error: integer constant is too large
for ‘long’ type
/usr/include/ffmpeg/avcodec.h:2476: warning: attribute ignored in
declaration of ‘struct ImgReSampleContext’
/usr/include/ffmpeg/avcodec.h:2476: warning: attribute for ‘struct
ImgReSampleContext’ must follow the ‘struct’ keyword
/usr/include/ffmpeg/avcodec.h:2487: warning: ‘ImgReSampleContext’ is
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2481)
/usr/include/ffmpeg/avcodec.h:2497: warning: ‘ImgReSampleContext’ is
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2481)
/usr/include/ffmpeg/avcodec.h:2503: warning: ‘ImgReSampleContext’ is
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2481)
/usr/include/ffmpeg/avcodec.h:2508: warning: ‘ImgReSampleContext’ is
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2481)
/usr/include/ffmpeg/avformat.h: In function ‘void
av_init_packet(AVPacket*)’:
/usr/include/ffmpeg/avformat.h:66: error: ‘INT64_C’ was not declared in
this scope
/usr/include/ffmpeg/avformat.h: At global scope:
/usr/include/ffmpeg/avformat.h:295: warning: ‘AVFrac’ is deprecated
(declared at /usr/include/ffmpeg/avformat.h:121)
filmFFMPEG.cpp: In member function ‘virtual void filmFFMPEG::close()’:
filmFFMPEG.cpp:71: error: cannot convert ‘AVCodecContext**’ to
‘AVCodecContext*’ for argument ‘1’ to ‘int avcodec_close(AVCodecContext*)’
filmFFMPEG.cpp: In member function ‘virtual bool filmFFMPEG::open(char*,
int)’:
filmFFMPEG.cpp:104: error: request for member ‘codec_id’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:106: error: request for member ‘codec_type’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:120: error: cannot convert ‘AVCodecContext**’ to
‘AVCodecContext*’ for argument ‘1’ to ‘int avcodec_open(AVCodecContext*,
AVCodec*)’
filmFFMPEG.cpp:140: error: request for member ‘time_base’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:173: error: request for member ‘width’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:174: error: request for member ‘height’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp: In member function ‘virtual pixBlock*
filmFFMPEG::getFrame()’:
filmFFMPEG.cpp:256: error: request for member ‘frame_number’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:267: error: cannot convert ‘AVCodecContext**’ to
‘AVCodecContext*’ for argument ‘1’ to ‘int
avcodec_decode_video(AVCodecContext*, AVFrame*, int*, uint8_t*, int)’
filmFFMPEG.cpp:310: error: request for member ‘width’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:311: error: request for member ‘height’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:312: error: request for member ‘pix_fmt’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
filmFFMPEG.cpp:315: warning: ‘img_convert’ is deprecated (declared at
/usr/include/ffmpeg/avcodec.h:2636)
filmFFMPEG.cpp:315: warning: ‘img_convert’ is deprecated (declared at
/usr/include/ffmpeg/avcodec.h:2636)
filmFFMPEG.cpp:320: error: request for member ‘frame_number’ in
‘stream->AVStream::codec’, which is of non-class type ‘AVCodecContext*’
make[1]: *** [filmFFMPEG.o] Error 1
make[1]: Leaving directory `/home/sobert/src/Gem/src/Pixes'
make: *** [Pixes] Error 2
Does anyone know if this is a libffmpeg version-problem ?
I'm using libffmpeg version 0.4.9.
Any help greatly appreciated.
-robert