Good morning everyone.
I am attempting to build ZoneMinder-1.25.0 on Slackware 13.37. I have installed all of the prerequisites, including ffmpeg-0.10 and all perl modules. Configure goes fine, but when I try to compile ZM, I get the following:
make[2]: Entering directory `/usr/src/ZoneMinder-1.25.0/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zm_mpeg.h:43:7: error: use of enum 'PixelFormat' without previous declaration
zm_mpeg.h:44:2: error: 'AVOutputFormat' does not name a type
zm_mpeg.h:45:2: error: 'AVFormatContext' does not name a type
zm_mpeg.h:46:2: error: 'AVStream' does not name a type
zm_mpeg.h:47:2: error: 'AVFrame' does not name a type
zm_mpeg.h:48:2: error: 'AVFrame' does not name a type
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.25.0'
make: *** [all] Error 2
root@devel:/usr/src/ZoneMinder-1.25.0#
I have looked at the Wiki and attempted the ffmpeg fix outlined there ; it doesn't change anything. Suggestions?
Thanks!
ZM 1.25.0; build error
Re: ZM 1.25.0; build error
nevermind, I found the answer to my problem in this post:
http://www.zoneminder.com/forums/viewto ... 885#p73885
I followed those directions, re-ran configure, and it compiled fine.
http://www.zoneminder.com/forums/viewto ... 885#p73885
I followed those directions, re-ran configure, and it compiled fine.
Re: ZM 1.25.0; build error
Ran into another problem, however. Build went fine, but when I try to start zm, I get this:
Starting ZoneMinder: Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder/General.pm line 207.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder/General.pm line 226.
Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder.pm line 35.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 37.
[FAILED]
Starting ZoneMinder: Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder/General.pm line 207.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder/General.pm line 226.
Compilation failed in require at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.12.3/ZoneMinder.pm line 35.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 37.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 37.
[FAILED]
Re: ZM 1.25.0; build error
Have you tried to run the service as root? I had the same error until I realize of this.
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...