After unsucessful attempts to make ZoneMinder work on our main server (it was always crashing), we ordered a virtual server, dedicated for Zoneminder. But I cannot install it, I get errors while compiling :
I followed the following tutorial :
http://www.zoneminder.com/wiki/index.php/CentOS
but when I am in ZoneMinder-1.24.2 directory and type "make" I get many errors :
Any help would be VERY APPRECIATED...make[2]: Entering directory `/root/ZM/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_local_camera.o -MD -MP -MF ".deps/zm_local_camera.Tpo" -c -o zm_local_camera.o zm_local_camera.cpp; \
then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
zm_local_camera.h:96: error: 'PixelFormat' does not name a type
zm_local_camera.h:97: error: 'PixelFormat' does not name a type
zm_local_camera.h:98: error: ISO C++ forbids declaration of 'AVFrame' with no type
zm_local_camera.h:98: error: expected ';' before '*' token
zm_local_camera.cpp:40: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:252: error: expected constructor, destructor, or type conversion before '*' token
zm_local_camera.cpp: In constructor 'LocalCamera::LocalCamera(int, const std::string&, int, int, const std::string&, int, int, int, int, int, int, int, bool)':
zm_local_camera.cpp:319: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:319: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:319: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:320: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:320: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:336: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:336: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:338: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:338: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:431: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:431: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:431: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:455: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:455: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:457: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:460: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:460: error: expected primary-expression before ')' token
zm_local_camera.cpp:460: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:594: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:594: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:594: error: expected `;' before 'AVFrame'
zm_local_camera.cpp:602: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:602: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:604: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:607: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:607: error: expected primary-expression before ')' token
zm_local_camera.cpp:607: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1576: error: expected initializer before '*' token
zm_local_camera.cpp:1578: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1578: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1582: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1582: error: 'sws_getContext' was not declared in this scope
zm_local_camera.cpp:1586: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1586: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1589: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1590: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1593: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1593: error: expected primary-expression before ')' token
zm_local_camera.cpp:1593: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1595: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1595: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1595: error: 'sws_scale' was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/root/ZM/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ZM/ZoneMinder-1.24.2'
make: *** [all] Error 2
Details on the server :
# uname -a
Linux (host) 2.6.9-023stab051.3-smp #1 SMP Wed Nov 4 18:36:34 MSK 2009 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 5.5 (Final)
Denis