i install this port on my freebsd 8
its work, but this port have bugs on my server or cameras
1 download acinclude.m4 from 167 svn
http://libjpeg-turbo.svn.sourceforge.ne ... athrev=167
edit this file
Code: Select all
freebsd* | netbsd* | openbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
objfmt='BSD-a.out'
else
case "$host_cpu" in
x86_64)
objfmt='ELF64'
;;
*)
objfmt='ELF'
;;
esac
fi
;;
on
Code: Select all
freebsd* | netbsd* | openbsd*)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
objfmt='BSD-a.out'
else
case "$host_cpu" in
amd64)
objfmt='ELF64'
;;
*)
objfmt='ELF'
;;
esac
fi
;;
and place this file into /files
2 edit Makefile
Code: Select all
pre-configure:
@${ECHO_CMD} configure jpeg-turbo library
#@cd ${WRKDIR} && ${LOCALBASE}/bin/svn co --non-interactive --trust-server-cert https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/trunk
@cd ${WRKDIR}/libjpeg-turbo && ${AUTORECONF} -fiv && ./configure CFLAGS='-O3' CXXFLAGS='-O3' --enable-static=yes --enable-shared=no
on
Code: Select all
pre-configure:
@${ECHO_CMD} configure jpeg-turbo library
#@cd ${WRKDIR} && ${LOCALBASE}/bin/svn co --non-interactive --trust-server-cert https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo/trunk
@cd ${WRKDIR} && cp ../files/acinclude.m4 libjpeg-turbo
@cd ${WRKDIR}/libjpeg-turbo && ${AUTORECONF} -fiv && ./configure CFLAGS='-O3' CXXFLAGS='-O3' --enable-static=yes --enable-shared=no
and compile port
3 when port installed i run zm
add 5 DCS-900 camera (/mjpeg.cgi)
add 6 DCS-910 camera (/mjpeg.cgi)
all camera work but i see in logs this
- Apr 8 18:46:44 video zma_m3[746]: INF [kurskaya27: 14000 - Processing at 6.21 fps]
Apr 8 18:46:44 video zmc_m2[740]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m10[772]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m2[740]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m10[772]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m8[764]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m2[740]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m10[772]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m8[764]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m8[764]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m2[740]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m10[772]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m2[740]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:44 video zmc_m10[772]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd0]
Apr 8 18:46:45 video zmc_m2[740]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:45 video zmc_m10[772]: WAR [Corrupt JPEG data: 3 extraneous bytes before marker 0xd0]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor degtyarnaya5_7, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor degtyarnaya5_7, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor Salova56-401, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor Salova56-401, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor kurskaya27, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor kurskaya27, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor ilich_K, expected 316, got 328]
Apr 8 18:46:45 video zmwatch[784]: ERR [Shared data size conflict in shared_data for monitor ilich_K, expected 316, got 328]
and in apache.log
- [Thu Apr 08 18:15:02 2010] [error] [client 192.168.253.109] socket_sendto( /tmp/zms-885860s.sock ) failed: Connection refused, referer: http://myweb
/?view=event&eid=101&trms=1&attr1=MonitorId&op1=%3d&val1=11&page=1
[Thu Apr 08 18:15:02 2010] [error] [client 192.168.253.109] array (\n 0 => \n array (\n 'file' => '/usr/local/www/apache22/data/zm/ajax/stream.php',\n
'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-885860s.sock ) failed: Connection refused',
\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/local/www/apache22/data/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '
/usr/local/www/apache22/data/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://myweb/?view=event&eid=101&trm
s=1&attr1=MonitorId&op1=%3d&val1=11&page=1