Problems with make and zoneminder

Forum for questions and support relating to the 1.24.x releases only.
Locked
GrangerTech
Posts: 14
Joined: Wed Jul 27, 2011 3:32 pm

Problems with make and zoneminder

Post by GrangerTech »

When trying to do "make" in the zoneminder directory I get a few warnings and an error, ive read through a lot of documentation and im not sure where to go from here so I posted on the forums. The error that I get is:

zm_mpeg.cpp
zm_mpeg.cpp: In member function ‘void VideoStream::SetParameters()’:
zm_mpeg.cpp:133:7: warning: ‘int av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1484)
zm_mpeg.cpp:133:34: warning: ‘int av_set_parameters(AVFormatContext*, AVFormatParameters*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1484)
zm_mpeg.cpp: In member function ‘void VideoStream::OpenStream()’:
zm_mpeg.cpp:179:8: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3845)
zm_mpeg.cpp:179:29: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3845)
zm_mpeg.cpp:244:2: warning: ‘int av_write_header(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1542)
zm_mpeg.cpp:244:21: warning: ‘int av_write_header(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1542)
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:359:16: error: ‘AV_AV_AV_AV_PKT_FLAG_KEY’ was not declared in this scope
zm_mpeg.cpp:390:18: error: ‘AV_AV_AV_AV_PKT_FLAG_KEY’ was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2





Anyone have any ideas what it is im doing wrong?

Thanks
Locked