This didn't work for me. Every time I fix one error another one stops me dead. I'm following the CentOS 5 instructions from the wiki but there seems to be some discrepancies. After trying this fix I get:jeanpierre wrote:error : av_free_packet not found !
add in end file src/zm_ffmpeg_camera.cpp to resolve problem.
void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}
}
[/u]
Code: Select all
make all-recursive
make[1]: Entering directory `/root/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/root/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF ".deps/zm_ffmpeg_camera.Tpo" -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp; \
then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
/usr/local/include/libavutil/common.h: In function 'int32_t av_clipl_int32_c(int64_t)':
/usr/local/include/libavutil/common.h:161: error: 'UINT64_C' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::Capture(Image&)':
zm_ffmpeg_camera.cpp:151: warning: 'avcodec_decode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3518)
zm_ffmpeg_camera.cpp:151: warning: 'avcodec_decode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3518)
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/root/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZoneMinder-1.24.2'
make: *** [all] Error 2