tried to figure this one out but it dont get it, anyone have any idea's?
Thanks for any help, really looking forward to getting this up and running.
[root@superbox zm]# make
make all-recursive
make[1]: Entering directory `/var/www/html/zm'
Making all in src
make[2]: Entering directory `/var/www/html/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib//include -I/include -g -O2 -MT zm_config.o -MD -MP -MF ".deps/zm_config.Tpo" \
-c -o zm_config.o `test -f 'zm_config.cpp' || echo './'`zm_config.cpp; \
then mv ".deps/zm_config.Tpo" ".deps/zm_config.Po"; \
else rm -f ".deps/zm_config.Tpo"; exit 1; \
fi
zm_config.cpp: In function `void zmLoadConfig()':
zm_config.cpp:33: error: `RegExpr' undeclared (first use this function)
zm_config.cpp:33: error: (Each undeclared identifier is reported only once for each function it appears in.)
zm_config.cpp:33: error: `ignore' undeclared (first use this function)
zm_config.cpp:33: error: `keyval' undeclared (first use this function)
zm_config.cpp:41: error: syntax error before `(' token
zm_config.cpp:42: error: syntax error before `(' token
make[2]: *** [zm_config.o] Error 1
make[2]: Leaving directory `/var/www/html/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/www/html/zm'
make: *** [all] Error 2
[root@superbox zm]#
zm_config.cpp:33: error: `RegExpr' undeclared
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I curently solved the problem.
my prce.h is located in /usr/include/prce.h
so in file src/zm_regexp.h I changed this:
#if HAVE_PCRE_H
#include <pcre.h>
#elif HAVE_PCRE_PCRE_H
#include <prce/pcre.h>
#else
to this:
#if HAVE_PCRE_H
#include </usr/include/pcre.h>
#elif HAVE_PCRE_PCRE_H
#include </usr/include/pcre.h>
#else
then I ran ./confgure again.
make
and it works
my prce.h is located in /usr/include/prce.h
so in file src/zm_regexp.h I changed this:
#if HAVE_PCRE_H
#include <pcre.h>
#elif HAVE_PCRE_PCRE_H
#include <prce/pcre.h>
#else
to this:
#if HAVE_PCRE_H
#include </usr/include/pcre.h>
#elif HAVE_PCRE_PCRE_H
#include </usr/include/pcre.h>
#else
then I ran ./confgure again.
make
and it works
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Thats very odd because ordinarily
will get it from /usr/include. Assuming that's on your compilers search path, which it should be as that's where all the other header files are too!
Phil
Code: Select all
#include <pcre.h>
Phil
ok, pcre.h got me, now what?
This is running on mandrake 9.2
I have now got pcre.h
I dont recall seeing this as a required package so i didnt know about it, perhaps i have other things missing i dont know about?
i did see something about it in the configure output before but since i didnt see it in the list of requirements i stupidly assumed it wasnt required.
here is as far as make goes now. below that is the output of my config if that helps at all.
Thanks for any help anyone can give.
[root@superbox zm]# make
make all-recursive
make[1]: Entering directory `/var/www/html/zm'
Making all in src
make[2]: Entering directory `/var/www/html/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/bin/include -Iusr/include/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" \
-c -o zm_event.o `test -f 'zm_event.cpp' || echo './'`zm_event.cpp; \
then mv ".deps/zm_event.Tpo" ".deps/zm_event.Po"; \
else rm -f ".deps/zm_event.Tpo"; exit 1; \
fi
zm_event.cpp: In static member function `static void Event::StreamEvent(int, int, int, int)':
zm_event.cpp:417: error: syntax error before `;' token
zm_event.cpp: In static member function `static void Event::StreamMpeg(int, const char*, int, int, int, int)':
zm_event.cpp:564: error: syntax error before `;' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/var/www/html/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/www/html/zm'
make: *** [all] Error 2
Here is the output of running the configure script.
[root@superbox zm]# ./configure --with-webuser=apache --with-webgroup=apache --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr/bin --with-ffmpeg=usr/include --enable-mp3lame --with-lame=/usr/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for zmconfig.txt... yes
[root@superbox zm]#
I have now got pcre.h
I dont recall seeing this as a required package so i didnt know about it, perhaps i have other things missing i dont know about?
i did see something about it in the configure output before but since i didnt see it in the list of requirements i stupidly assumed it wasnt required.
here is as far as make goes now. below that is the output of my config if that helps at all.
Thanks for any help anyone can give.
[root@superbox zm]# make
make all-recursive
make[1]: Entering directory `/var/www/html/zm'
Making all in src
make[2]: Entering directory `/var/www/html/zm/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/bin/include -Iusr/include/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" \
-c -o zm_event.o `test -f 'zm_event.cpp' || echo './'`zm_event.cpp; \
then mv ".deps/zm_event.Tpo" ".deps/zm_event.Po"; \
else rm -f ".deps/zm_event.Tpo"; exit 1; \
fi
zm_event.cpp: In static member function `static void Event::StreamEvent(int, int, int, int)':
zm_event.cpp:417: error: syntax error before `;' token
zm_event.cpp: In static member function `static void Event::StreamMpeg(int, const char*, int, int, int, int)':
zm_event.cpp:564: error: syntax error before `;' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/var/www/html/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/www/html/zm'
make: *** [all] Error 2
Here is the output of running the configure script.
[root@superbox zm]# ./configure --with-webuser=apache --with-webgroup=apache --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-mysql=/usr/bin --with-ffmpeg=usr/include --enable-mp3lame --with-lame=/usr/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for zmconfig.txt... yes
[root@superbox zm]#
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
resolved finally
yes, i did run the zm_config.pl between the ./configure and make and that was the last errors i had. I went back from the beginning though and went back through the ./configure and the ran the perl zm_config.pl and followed up again with make and this time it worked, only thing i did different is i ran the zm_config.pl with -nio and everything worked this time, i am wandering if i might end of going back through that cause i do remember there were a few things that did not get remembered such as email address, which did give errors each time, but i can at least hit the login page now.
Thank you very much for both the help and your program itself.
I am building this for a lady who has someone breaking into their house and i am setting it up as joe bar did in his newsforge article to be streamed over the internet to a remote server. REally loook forward to catching someone red handed.
Thanks again Phil.
If i can deploy this in some commercial aspect for clients of mine i will also be making a donation back to your project.
Tek
Thank you very much for both the help and your program itself.
I am building this for a lady who has someone breaking into their house and i am setting it up as joe bar did in his newsforge article to be streamed over the internet to a remote server. REally loook forward to catching someone red handed.
Thanks again Phil.
If i can deploy this in some commercial aspect for clients of mine i will also be making a donation back to your project.
Tek