Hi there, I can't compile ZoneMinder SVN revision 3337 with FFmpeg revision 29638 or the stock ffmpeg package. I'm running freshly updated CentOS 5.6 x86_64.
The make always fails at this error:
Code: Select all
make
cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
make all-recursive
make[1]: Entering directory `/home/gum/net/zm'
Making all in src
make[2]: Entering directory `/home/gum/net/zm/src'
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/home/gum/net/zm/src'
make[2]: Entering directory `/home/gum/net/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -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
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:105: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/home/gum/net/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gum/net/zm'
make: *** [all] Error 2
My configure settings are following:
Code: Select all
./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql" ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=<password> CPPFLAGS="-D__STDC_CONSTANT_MACROS" --enable-mmap=yes
Everything goes great including FFmpeg compilation, ZM autoconf and automake. I've also tried to compile ZM with the stock CentOS ffmpeg package but without luck, it spits out a different error while compiling the first binary.
Does anyone have some suggestion what should I try in order to get this working? Ran sucessfully about 10 stable CentOS boxes with 1.24.2, but the new version's giving me a headache. Thanks!
P.S.: There's an updated Czech localisation
already posted to this forum, I hope the ZM package could be updated with it