Page 1 of 1

Zoneminder 1.24.2 on FreeBSD 7.2-RELEASE amd64

Posted: Tue Sep 29, 2009 11:36 pm
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

Posted: Wed Sep 30, 2009 3:15 am
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>

Includes

Posted: Wed Sep 30, 2009 8:38 pm
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>

Posted: Wed Sep 30, 2009 9:50 pm
by solsrch
Wow, really? o_O

zmpkg.pl perl getCmdFormat function

Posted: Mon Oct 05, 2009 6:21 pm
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?

Re: zmpkg.pl perl getCmdFormat function

Posted: Mon Oct 05, 2009 8:02 pm
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?

Posted: Mon Oct 19, 2009 2:20 pm
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.

Make the port public?

Posted: Fri Dec 25, 2009 10:58 pm
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

Posted: Sat Dec 26, 2009 8:14 pm
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....

Posted: Sun Feb 14, 2010 5:18 pm
by datentod
Kind off off topic.. But can someone please recommend an 8 port capture card which works with freebsd & zm. Thanks.