Page 1 of 1

1.19.0 bugs

Posted: Thu Mar 18, 2004 1:21 pm
by fernando
instalation from zero on mdk 10 final "btw 1.18.1 works fine on mdk 10 final"
i have a problem with "make"

In file included from zm_remote_camera.h:42,
from zm_remote_camera.cpp:39:
zm_regexp.h:27:23: pcre/pcre.h: No such file or directory
In file included from zm_remote_camera.h:42,
from zm_remote_camera.cpp:39:
zm_regexp.h:32: error: syntax error before `*' token
zm_regexp.h:33: error: syntax error before `*' token
zm_remote_camera.cpp: In member function `int RemoteCamera::GetResponse()':
zm_remote_camera.cpp:274: error: `PCRE_DOTALL' undeclared (first use this function)
zm_remote_camera.cpp:274: error: (Each undeclared identifier is reported only once for each function it appears in.)
zm_remote_camera.cpp:282: error: `PCRE_MULTILINE' undeclared (first use this function)
zm_remote_camera.cpp:282: error: `PCRE_CASELESS' undeclared (first use this function)
make[2]: *** [zm_remote_camera.o] Error 1
make[2]: Leaving directory `/root/zm-1.19.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm-1.19.0'
make: *** [all] Error 2
[root@localhost zm-1.19.0]#

maybe is a problem with a libreries i dont have.. "still searching"

configure: WARNING: libavcodec.a is required for MPEG streaming
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required for IE compatible MPEG streaming

Fernando.

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:00 pm
by zoneminder
Hi Fernando,

Just above the 'configure' output you have listed above, you should have something about pcre. For instance I get

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 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

where the

checking for pcre_compile in -lpcre... yes

line is important. Does yours say 'yes' also? It looks to me like configure has found the library but make hasn't.

Phil,

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:13 pm
by fernando
[root@localhost zm-1.19.0]# ./configure --with-mysql=/usr --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/root/ffmpeg-0.4.8 --with-lame
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
configure: WARNING: You can call configure with the --with-webuser option.
This tells configure what the user name of the web user is if it is not the
default of 'apache'.
e.g. --with-webuser=apache or --with-webuser=web
configure: WARNING: You can call configure with the --with-webgroup option.
This tells configure what the group name of the web group is if it is not the default of 'apache'.
e.g. --with-webgroup=apache or --with-webgroup=web
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 whether round is declared... yes
checking whether strsignal 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 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@localhost zm-1.19.0]#

yes i have that i thing... i have install libspcre-devel

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:17 pm
by zoneminder
Hmm, it seems strange that configure can find the library but make can't find the headers. Do you know where pcre.h and libpcre.a are on your system?

Phil,

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:22 pm
by fernando
/usr/include/pcre.h

/usr/lib/libpcre.a

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:27 pm
by zoneminder
That is the problem. then. The systems I've tried it on all have it in /usr/include/pcre/pcre.h. I think if you just edit zm_regexp.h and remove the extra 'pcre' you should be ok.

Phil,

Re: 1.19.0 bugs

Posted: Thu Mar 18, 2004 2:36 pm
by fernando
well like allways you are a genius.! "not a genius mouse"

well i will keep testing. you need to have some msm or someting. :)