Zoneminder Release 1.24.1 on FreeBSD and OpenBSD UNIX

Forum for questions and support relating to the 1.24.x releases only.
Locked
antonio.giosi
Posts: 2
Joined: Fri Mar 27, 2009 3:26 pm

Zoneminder Release 1.24.1 on FreeBSD and OpenBSD UNIX

Post by antonio.giosi »

Here the procedure for source compiling...

ZoneMinder on FreeBSD 7.X anf hopefully OpenBSD

run ./configure

checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a

pkg_add -r php-gd

ln -s /usr/local/lib/libjpeg.a /usr/lib

checking for ldlsym in -ldl... no
configure: error: zm requires libdl.a

substitute all -ldl in -lc in ./configure... this due to the fact that "The dlopen/dlsym functions are built into libc on FreeBSD, so there's
no need for a libdl:"

checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a

pkg_add -r mysql50-server mysql50-client php5-gd php5-mysql

ln -s /usr/local/lib/mysql/libmysqlclient.a /usr/lib/

checking for linux/videodev.h usability... no
checking for linux/videodev.h presence... no
checking for linux/videodev.h ... no
configure: error: zm requires Video4Linux to be installed

pkg_add -r v4l_compat

headers are installed in /usr/local/include/linux/videodev.h

mkdir /usr/include/linux
cd /usr/include/linux
cp /usr/local/include/linux/videodev.h .


checking for mysql/mysql.h usability... no
checking for mysql/mysql.h presence... no
checking for mysql/mysql.h ... no
configure: error: zm requires MySQL headers to be installed

cp /usr/local/include/mysql/* /usr/include/mysql

checking for linux/videodev.h ... no
configure: error: zm requires gnutls/openssl.h to be installed

pkg_add -r openssl

cp /usr/local/include/openssl/* /usr/include/openssl

pkg_add -r gnutls

perl -MCPAN -e 'install Bundle::DBI'
rjfjohnson
Posts: 4
Joined: Sun Feb 15, 2009 2:00 pm

Post by rjfjohnson »

Thanks for this, although I'm having trouble at make:


# make
make all-recursive
Making all in src
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include//include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zmc.cpp:26:
zm_time.h: In function 'timeval tvCheck(timeval&)':
zm_time.h:159: warning: format '%ld' expects type 'long int', but argument 6 has type 'time_t'
zm_time.h:165: warning: format '%ld' expects type 'long int', but argument 6 has type 'time_t'
In file included from zm_zone.h:27,
from zm_monitor.h:28,
from zmc.cpp:28:
zm_event.h: At global scope:
zm_event.h:231: error: 'bool EventStream::loadInitialEventData(int, time_t)' cannot be overloaded
zm_event.h:230: error: with 'bool EventStream::loadInitialEventData(int, int)'
zm_event.h:254: error: 'void EventStream::setStreamStart(int, time_t)' cannot be overloaded
zm_event.h:249: error: with 'void EventStream::setStreamStart(int, int)'
*** Error code 1

Stop in /tmp/ZoneMinder-1.24.1/src.
*** Error code 1

Stop in /tmp/ZoneMinder-1.24.1.
*** Error code 1

Stop in /tmp/ZoneM
inder-1.24.1.
scanto
Posts: 7
Joined: Mon May 28, 2007 10:17 am

Post by scanto »

hi,
i have this error



can help me?

Code: Select all

scanto# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
test: unexpected operator
test: unexpected operator
test: unexpected operator
test: unexpected operator
test: unexpected operator
test: unexpected operator
configure: WARNING: You can call configure with the --with-libarch option.
    This tells configure where to find architecture specific libraries.
    The default of 'lib' is usually ok but 64 bit machines may require lib64.
    e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --with-mysql option.
    This tells configure where to find the MySql C library and headers if configure cannot
    locate them automatically.
    e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-ffmpeg option.
    This tells configure where to find the ffmpeg root directory within which are the libavcodec
    and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that
    your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you
    are using a local install of ffmpeg you may have to remove or rename a previous real installation
    as the headers and libraries from that will probably be picked up before your local copy.
    e.g. --with-ffmpeg=/usr/local
configure: WARNING: You can call configure with the --with-extralibs option.
    Ordinarily you will need to use this option only when your copy of ffmpeg has been built
    with support for additional formats and you would use this option to detail which additional
    libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
    You will need to wrap this option in quotes if it contains any spaces.
    e.g. --with-extralibs="-lmp3lame"
configure: error: You must call configure with the --with-webdir option.
    This tells configure where to install PHP and web files and scripts.
    e.g. --with-webdir=/var/www/html or --with-mysql=/www/vhtdocs/<site>
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can't just run './configure', some options are mandatory. Run configure --help or read the documentation to see what they are.
Phil
densan
Posts: 1
Joined: Sat Jan 10, 2009 3:06 pm

Post by densan »

uname -v
FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
./configure --with-libarch=lib64 --with-webdir==/usr/local/www/apache22/data --with-cgidir=/usr/local/www/apache22/cgi-bin
...
config.status: executing depfiles commands
checking for scripts/ZoneMinder/Makefile... yes
make
make all-recursive
Making all in src
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I /usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
zmc.cpp:22:20: error: values.h: No such file or directory
In file included from zmc.cpp:27:
zm_signal.h:24:22: error: execinfo.h: No such file or directory
In file included from zm_jpeg.h:22,
from zm_image.h:34,
from zm_monitor.h:27,
from zmc.cpp:28:
jinclude.h:20:55: error: jconfig.h: No such file or directory
In file included from zm_image.h:34,
from zm_monitor.h:27,
from zmc.cpp:28:
zm_jpeg.h:23:21: error: jpeglib.h: No such file or directory
zm_jpeg.h:24:20: error: jerror.h: No such file or directory
In file included from zm_image.h:34,
from zm_monitor.h:27,
from zmc.cpp:28:
zm_jpeg.h:29: error: field 'pub' has incomplete type
zm_jpeg.h:35: error: variable or field 'zm_jpeg_error_exit' declared void
zm_jpeg.h:35: error: 'j_common_ptr' was not declared in this scope
zm_jpeg.h:36: error: variable or field 'zm_jpeg_emit_message' declared void
zm_jpeg.h:36: error: 'j_common_ptr' was not declared in this scope
zm_jpeg.h:36: error: expected primary-expression before 'int'
zm_jpeg.h:39: error: variable or field 'jpeg_mem_src' declared void
zm_jpeg.h:39: error: 'j_decompress_ptr' was not declared in this scope
zm_jpeg.h:39: error: expected primary-expression before 'const'
zm_jpeg.h:39: error: expected primary-expression before 'int'
zm_jpeg.h:40: error: variable or field 'jpeg_mem_dest' declared void
zm_jpeg.h:40: error: 'j_compress_ptr' was not declared in this scope
zm_jpeg.h:40: error: 'JOCTET' was not declared in this scope
zm_jpeg.h:40: error: 'outbuffer' was not declared in this scope
zm_jpeg.h:40: error: expected primary-expression before 'int'
In file included from zm_monitor.h:27,
from zmc.cpp:28:
zm_image.h:82: error: ISO C++ forbids declaration of 'jpeg_compress_struct' with no type
zm_image.h:82: error: expected ';' before '*' token
zm_image.h:83: error: ISO C++ forbids declaration of 'jpeg_decompress_struct' with no type
zm_image.h:83: error: expected ';' before '*' token
zm_image.h:93: error: ISO C++ forbids declaration of 'JSAMPLE' with no type
zm_image.h:93: error: expected ';' before '*' token
zm_image.h:107: error: 'JSAMPLE' has not been declared
zm_image.h:116: error: ISO C++ forbids declaration of 'JSAMPLE' with no type
zm_image.h:116: error: 'JSAMPLE' declared as an 'inline' field
zm_image.h:116: error: expected ';' before '*' token
zm_image.h:117: error: expected `;' before 'inline'
zm_image.h:117: error: ISO C++ forbids declaration of 'JSAMPLE' with no type
zm_image.h:117: error: 'JSAMPLE' declared as an 'inline' field
zm_image.h:117: error: expected ';' before '*' token
zm_image.h:119: error: expected `;' before 'void'
zm_image.h:142: error: expected ',' or '...' before '*' token
zm_image.h:142: error: ISO C++ forbids declaration of 'JOCTET' with no type
zm_image.h:143: error: 'JOCTET' has not been declared
zm_image.h: In member function 'void Image::CopyBuffer(const Image&)':
zm_image.h:129: error: 'buffer' was not declared in this scope
zm_image.h:129: error: 'const class Image' has no member named 'buffer'
zm_image.h: In member function 'Image& Image::operator=(const unsigned char*)':
zm_image.h:133: error: 'buffer' was not declared in this scope
zm_image.h: In member function 'void Image::Clear()':
zm_image.h:167: error: 'buffer' was not declared in this scope
zmc.cpp: In function 'int main(int, char**)':
zmc.cpp:222: error: 'MAXINT' was not declared in this scope
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/src.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder.

can help me?
Locked