Page 1 of 1

make error

Posted: Fri Sep 23, 2011 10:56 pm
by bigal.nz
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

Re: make error

Posted: Sat Sep 24, 2011 8:58 pm
by unclerichy
Edit zm_local_camera.cpp and add in an include line at the end of all the other #include lines:

Code: Select all

#include <linux/limits.h>
Fixed the compile error for me on Debian Squeeze.

Re: make error

Posted: Sat Sep 24, 2011 11:05 pm
by Insspb
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/

Re: make error

Posted: Wed Sep 28, 2011 8:40 pm
by BlankMan
openSuSE 11.4 had this too.

Re: make error

Posted: Sun Oct 02, 2011 9:17 pm
by rayrayray
Thanks. I had the same error on Ubuntu 10.04.3 LTS x64. The extra include fixed it for me.

Re: make error

Posted: Fri Oct 07, 2011 2:29 pm
by windracer
Same problem on Ubuntu 11.04 x64. Thank you!