AVCodecContext problem wehn make install
Posted: Tue Nov 21, 2006 10:27 am
I have a problem compiling the latest version of ZM,
configure runs ok
make runs ok
make install gives me the following error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function ‘void VideoStream::SetupCodec(int, int, int, int, int)’:
zm_mpeg.cpp:88: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
zm_mpeg.cpp:109: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
zm_mpeg.cpp:110: error: ‘struct AVCodecContext’ has no member named ‘frame_rate_base’
zm_mpeg.cpp: In member function ‘void VideoStream::OpenStream()’:
zm_mpeg.cpp:161: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
zm_mpeg.cpp: In destructor ‘VideoStream::~VideoStream()’:
zm_mpeg.cpp:256: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ for argument ‘1’ to ‘int avcodec_close(AVCodecContext*)’
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:303: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
make[1]: *** [zm_mpeg.o] Error 1
I haven't touched the source code at all, does anybody know that problem?
Thanks in advance
configure runs ok
make runs ok
make install gives me the following error:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
zm_mpeg.cpp: In member function ‘void VideoStream::SetupCodec(int, int, int, int, int)’:
zm_mpeg.cpp:88: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
zm_mpeg.cpp:109: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
zm_mpeg.cpp:110: error: ‘struct AVCodecContext’ has no member named ‘frame_rate_base’
zm_mpeg.cpp: In member function ‘void VideoStream::OpenStream()’:
zm_mpeg.cpp:161: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
zm_mpeg.cpp: In destructor ‘VideoStream::~VideoStream()’:
zm_mpeg.cpp:256: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ for argument ‘1’ to ‘int avcodec_close(AVCodecContext*)’
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:303: error: cannot convert ‘AVCodecContext**’ to ‘AVCodecContext*’ in initialization
make[1]: *** [zm_mpeg.o] Error 1
I haven't touched the source code at all, does anybody know that problem?
Thanks in advance