make error

Forum for questions and support relating to the 1.25.x releases only.
Locked
bigal.nz
Posts: 1
Joined: Fri Sep 23, 2011 10:53 pm

make error

Post 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
unclerichy
Posts: 74
Joined: Wed Feb 25, 2004 5:06 pm

Re: make error

Post 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.
Insspb
Posts: 1
Joined: Sat Sep 24, 2011 10:26 pm

Re: make error

Post 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/
BlankMan
Posts: 147
Joined: Tue Jan 19, 2010 2:53 am
Location: Milwaukee, WI USA

Re: make error

Post by BlankMan »

openSuSE 11.4 had this too.
rayrayray
Posts: 16
Joined: Sun Apr 25, 2010 10:59 pm

Re: make error

Post by rayrayray »

Thanks. I had the same error on Ubuntu 10.04.3 LTS x64. The extra include fixed it for me.
windracer
Posts: 61
Joined: Sat Jul 23, 2011 1:15 am

Re: make error

Post by windracer »

Same problem on Ubuntu 11.04 x64. Thank you!
Locked