Error

Support and queries relating to all previous versions of ZoneMinder
Locked
groo
Posts: 14
Joined: Wed Oct 04, 2006 10:04 am

Error

Post by groo »

Hello, I have a debian distribution, I am trying to compile Zoneminder 1.22.2 I have the following errors:

Code: Select all

~/ZoneMinder-1.22.2# make
make  all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.22.2'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.22.2/src'
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[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.22.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.22.2'
make: *** [all] Error 2
Any ideas about how to solve it?

Thanks a lot in advance...
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you search you will find
this looks like you need the patch on the wiki for ffmpeg
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
groo
Posts: 14
Joined: Wed Oct 04, 2006 10:04 am

Post by groo »

It works! I patched the file and now compile fine! :D

Thanks a lot, again.
Locked