Error when running Make

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
tamray
Posts: 14
Joined: Tue Feb 22, 2011 4:32 pm

Error when running Make

Post by tamray » Thu Dec 08, 2011 7:19 pm

I am running Ubuntu Maverick and had used apt-get to install zoneminder. Could not get it to pick up on my Brooktree 4 input card, although vlc and awtv worked with it fine. I decided to remove and purge zoneminder and install 1.25 from source. Configure went fine, but when running "make", I get the following errors that I am not sure what to do about:

sudo make
make all-recursive
make[1]: Entering directory `/home/raymond/Downloads/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/home/raymond/Downloads/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 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: error: ‘PATH_MAX’ was not declared in this scope
zm_local_camera.cpp:779: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:781: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:782: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:799: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:801: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:811: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:936: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:961: error: ‘queryDevice’ was not declared in this scope
zm_local_camera.cpp:1086: error: ‘queryDevice’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/raymond/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raymond/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2

dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

Re: Error when running Make

Post by dhanasekar » Fri Dec 09, 2011 6:44 am

Manually introduce the macro PATH_MAX with a template of 4096.
(or)
include the file /usr/linux/limits.h in the zm_local_camera.h

this would help the make install void of errors.

Doesn't know whether this is a correct procedure.
Thanks.

dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

Re: Error when running Make

Post by dhanasekar » Tue Dec 13, 2011 7:02 am

dhanasekar wrote:Manually introduce the macro PATH_MAX with a template of 4096.
(or)
include the file /usr/linux/limits.h in the zm_local_camera.h

this would help the make install void of errors.

Doesn't know whether this is a correct procedure.
Thanks.
Alternate way is to include linux/limits.h under zm_local_camera.cpp

But some ZONEMINDER ADMINS please approve this inclusion.

vlad88sv
Posts: 2
Joined: Wed Sep 28, 2011 5:13 pm

Re: Error when running Make

Post by vlad88sv » Tue Dec 20, 2011 5:46 pm

dhanasekar wrote:
dhanasekar wrote:Manually introduce the macro PATH_MAX with a template of 4096.
(or)
include the file /usr/linux/limits.h in the zm_local_camera.h

this would help the make install void of errors.

Doesn't know whether this is a correct procedure.
Thanks.
Alternate way is to include linux/limits.h under zm_local_camera.cpp

But some ZONEMINDER ADMINS please approve this inclusion.
This worked for me, thank you.

After make, I did make install but I got:

$ sudo service zoneminder start
Starting ZoneMinder: /etc/init.d/zoneminder: 84: /usr/bin/zmpkg.pl: not found
failure

dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

Re: Error when running Make

Post by dhanasekar » Fri Jan 06, 2012 11:57 am

Have you cleared the above issue?

neuropa
Posts: 5
Joined: Fri Aug 07, 2009 3:51 pm

Re: Error when running Make

Post by neuropa » Thu Feb 02, 2012 12:36 pm

dhanasekar wrote:
dhanasekar wrote:Manually introduce the macro PATH_MAX with a template of 4096.
(or)
include the file /usr/linux/limits.h in the zm_local_camera.h

this would help the make install void of errors.

Doesn't know whether this is a correct procedure.
Thanks.
Alternate way is to include linux/limits.h under zm_local_camera.cpp

But some ZONEMINDER ADMINS please approve this inclusion.
Here is what I did:

Code: Select all

vim src/zm_local_camera.cpp
I suppose I have to insert the string:

Code: Select all

#include <linux/limits.h>
But... where? :-)
Can you, please, help me with detailed instructions?

Thank you!

dhanasekar
Posts: 19
Joined: Mon Aug 29, 2011 4:43 am
Location: Chennai, India

Re: Error when running Make

Post by dhanasekar » Thu Jun 14, 2012 12:48 pm

neuropa wrote:
dhanasekar wrote:
dhanasekar wrote:Manually introduce the macro PATH_MAX with a template of 4096.
(or)
include the file /usr/linux/limits.h in the zm_local_camera.h

this would help the make install void of errors.

Doesn't know whether this is a correct procedure.
Thanks.
Alternate way is to include linux/limits.h under zm_local_camera.cpp

But some ZONEMINDER ADMINS please approve this inclusion.
Here is what I did:

Code: Select all

vim src/zm_local_camera.cpp
I suppose I have to insert the string:

Code: Select all

#include <linux/limits.h>
But... where? :-)
Can you, please, help me with detailed instructions?

Thank you!
Note that there is a miss in the filename extension.
Include the line in the top(at header file inclusion section).

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests