Zoneminder 1.24.2 on FreeBSD 7.2-RELEASE amd64

Forum for questions and support relating to the 1.24.x releases only.
Locked
gregh-cctvsuppliers
Posts: 17
Joined: Tue Sep 29, 2009 11:19 pm

Zoneminder 1.24.2 on FreeBSD 7.2-RELEASE amd64

Post by gregh-cctvsuppliers »

Greetings,

CCTV Suppliers is looking for engineers and contributors to support the Zoneminder 1.24.2 on FreeBSD 7.2 amd64 project and to improve the quality of the system. Supporters will be compensated. Support via Instant messaging is preferred.

Currently we've taken the older version and created patches to comply with the new.

The configure line is as follows:
./configure --with-mysql=/usr/local --with-webdir=/usr/local/www/data/zm --with-cgidir=/usr/local/www/cgi-bin --with-webgroup=www --with-webuser=www --disable-mmap --disable-debug --enable-crashtrace=no --with-ffmpeg=/usr/local --with-extralibs=-lpthread --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=amd64-portbld-freebsd7.2

The first error (in a whole list of errors are:)
zm_comms.o(.text+0x2bf): In function `Select::calcMaxFd()':
: undefined reference to `std::set<CommsBase*, std::less<CommsBase>, std::allocator<CommsBase> >::begin() const'

Attempting to run:
c++ -frepo -I/usr/local/include/ -L/usr/local/lib -L/usr/local/lib/mysql -L/usr/local/lib -L/usr/lib -lpthread -lstdc++ -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_sdp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o -lz -lbz2 -lswscale -lavformat -lavcodec -lavutil -lpcre -lgnutls-openssl -lc -lpthread -ljpeg -lmysqlclient

No ccache is installed.
FFMPEG options used:
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for ffmpeg-0.5,1
_OPTIONS_READ=ffmpeg-0.5,1
WITHOUT_AMR_NB=true
WITHOUT_AMR_WB=true
WITHOUT_DIRAC=true
WITH_FAAC=true
WITH_FAAD=true
WITH_FFSERVER=true
WITHOUT_GSM=true
WITH_IPV6=true
WITH_LAME=true
WITH_OPENJPEG=true
WITHOUT_OPTIMIZED_CFLAGS=true
WITH_SCHROEDINGER=true
WITHOUT_SDL=true
WITH_SPEEX=true
WITH_THEORA=true
WITH_VHOOK=true
WITH_VORBIS=true
WITH_X264=true
WITH_XVID=true


Advance Thanks
Greg
solsrch
Posts: 5
Joined: Tue Jul 28, 2009 6:37 pm

Post by solsrch »

You may have to add the following includes to the top of src/zm_comms.h:

#include <sys/types.h>
#include <sys/uio.h>
#include <sys/socket.h>
#include <netinet/in.h>
gregh-cctvsuppliers
Posts: 17
Joined: Tue Sep 29, 2009 11:19 pm

Includes

Post by gregh-cctvsuppliers »

src/zm_comms.h includes:

#include "zm_exception.h"

#include <sys>
#include <unistd>
#include <netdb>
#include <errno>
#include <sys>
#include <sys>
#include <set>
#include <vector>
#include <sys>
#include <netinet>
solsrch
Posts: 5
Joined: Tue Jul 28, 2009 6:37 pm

Post by solsrch »

Wow, really? o_O
gregh-cctvsuppliers
Posts: 17
Joined: Tue Sep 29, 2009 11:19 pm

zmpkg.pl perl getCmdFormat function

Post by gregh-cctvsuppliers »

Seems like this might be the last step to getting the 1.24.2 version working on FreeBSD 7.2.

As I try to run /usr/local/etc/rc.d/zm start, it gives sudo: not found error.

But when I run sudo -u www /usr/local/etc/rc.d/zm start, it starts and stops fine.

What am I missing?
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Re: zmpkg.pl perl getCmdFormat function

Post by curtishall »

gregh-cctvsuppliers wrote:Seems like this might be the last step to getting the 1.24.2 version working on FreeBSD 7.2.

As I try to run /usr/local/etc/rc.d/zm start, it gives sudo: not found error.

But when I run sudo -u www /usr/local/etc/rc.d/zm start, it starts and stops fine.

What am I missing?
Try defining the full path to sudo?
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

Hi, just saw the thread. I am the guy who did the 1.23.3 port.
I would like to know if there was any success with the 1.24.2 port on FreeBSD 7.2.
Is it available anywhere publicly?
BTW, FreeBSD 8.0 is around corner, but i doubt many things will change regarding things related to Zoneminder.
deece
Posts: 2
Joined: Fri Dec 25, 2009 10:53 pm

Make the port public?

Post by deece »

*bump* +1 for making the port publically available. I would like this too, and volunteer to commit it to the ports tree and take over maintainance of it.

I'm considering doing the port myself, but would like to avoid duplicated effort.

Cheers
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

i can help with the local camera (bktr) code, but i will not have much time before summer-2010....
deece, drop me a line....
datentod
Posts: 5
Joined: Sun Feb 14, 2010 4:56 pm

Post by datentod »

Kind off off topic.. But can someone please recommend an 8 port capture card which works with freebsd & zm. Thanks.
Locked