Page 1 of 1

ZoneMinder-1.25.0-3500.tar make Problems

Posted: Wed Aug 31, 2011 1:22 am
by yyx
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)’:

Code: Select all

zm_local_camera.cpp:774: 错误:‘PATH_MAX’在此作用域中尚未声明
zm_local_camera.cpp:779: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:781: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:782: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:799: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:801: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:811: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:936: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:961: 错误:‘queryDevice’在此作用域中尚未声明
zm_local_camera.cpp:1086: 错误:‘queryDevice’在此作用域中尚未声明
make[2]: *** [zm_local_camera.o] 错误 1
make[2]: Leaving directory `/home/yyx/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/yyx/ZoneMinder-1.25.0'
make: *** [all] 错误 2
:arrow: :?: Build 25 version, when an error,Please advise!

Re: ZoneMinder-1.25.0-3500.tar make Problems

Posted: Wed Aug 31, 2011 9:30 pm
by MJN
Hi yyx,

Try adding #include <limits.h> to the list of include statements in <path to your source>/ZoneMinder-1.25.0/src/zm_local_camera.cpp

Mathew

Re: ZoneMinder-1.25.0-3500.tar make Problems

Posted: Wed Aug 31, 2011 9:54 pm
by Yamanipanuchi
I had the same problem. The fix listed worked.

Anyone out there know what changed? I installed Zoneminder 1.25.0 on a new install of Ubuntu 11.04 not maybe 4-5 days ago and it worked without any problems.