Hi Al,
First time at installing ZoneMinder.
I get the following error:
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -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
zm_local_camera.cpp: In static member function ‘static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)’:
zm_local_camera.cpp:774:22: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779:21: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:781:22: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:782:29: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:799:67: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:801:54: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:811:92: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:936:91: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:961:82: error: ‘queryDevice’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/al/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/al/ZoneMinder-1.25.0'
make: *** [all] Error 2
Please help.
Thanks
-Al
make error
-
- Posts: 74
- Joined: Wed Feb 25, 2004 5:06 pm
Re: make error
Edit zm_local_camera.cpp and add in an include line at the end of all the other #include lines:
Fixed the compile error for me on Debian Squeeze.
Code: Select all
#include <linux/limits.h>
Re: make error
I had the same on fedora 15
That's how I solved it:
1. Installing ffmpeg
2. configure zoneminder with CPPFLAGS=-D__STDC_CONSTANT_MACROS /Faq solution for configure errors with ffmpeg/
That's how I solved it:
1. Installing ffmpeg
2. configure zoneminder with CPPFLAGS=-D__STDC_CONSTANT_MACROS /Faq solution for configure errors with ffmpeg/
Re: make error
openSuSE 11.4 had this too.
Re: make error
Thanks. I had the same error on Ubuntu 10.04.3 LTS x64. The extra include fixed it for me.
Re: make error
Same problem on Ubuntu 11.04 x64. Thank you!