Can't install on debian

Forum for questions and support relating to the 1.24.x releases only.
Locked
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Can't install on debian

Post by antov »

make[2]: Entering directory `/home/antov/zoneminder/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/bin/include -frepo -g -O2 -MT zm_sdp.o -MD -MP -MF ".deps/zm_sdp.Tpo" -c -o zm_sdp.o zm_sdp.cpp; \
then mv -f ".deps/zm_sdp.Tpo" ".deps/zm_sdp.Po"; else rm -f ".deps/zm_sdp.Tpo"; exit 1; fi
zm_sdp.cpp: In member function Б─≤AVFormatContext* SessionDescriptor::generateFormatContext() constБ─≥:
zm_sdp.cpp:290: error: Б─≤avformat_alloc_contextБ─≥ was not declared in this scope
zm_sdp.cpp:291: error: Б─≤strncpyБ─≥ was not declared in this scope
make[2]: *** [zm_sdp.o] Error 1
make[2]: Leaving directory `/home/antov/zoneminder/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/antov/zoneminder/ZoneMinder-1.24.2'
make: *** [all] Error 2
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Post by biologisch »

Debian? What version? Did you read the wiki?
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

5.0.3
lenny
with kernel 2.6.30
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

i have different problem now
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF ".deps/zm_ffmpeg_camera.Tpo" -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp; \
then mv -f ".deps/zm_ffmpeg_camera.Tpo" ".deps/zm_ffmpeg_camera.Po"; else rm -f ".deps/zm_ffmpeg_camera.Tpo"; exit 1; fi
zm_ffmpeg_camera.cpp: In member function Б─≤virtual int FfmpegCamera::Capture(Image&)Б─≥:
zm_ffmpeg_camera.cpp:151: error: cannot convert Б─≤uint8_t*Б─≥ to Б─≤AVPacket*Б─≥ for argument Б─≤4Б─≥ to Б─≤int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, AVPacket*)Б─≥
zm_ffmpeg_camera.cpp:161: error: invalid conversion from Б─≤uint8_t**Б─≥ to Б─≤const uint8_t**Б─≥
zm_ffmpeg_camera.cpp:161: error: initializing argument 2 of Б─≤int sws_scale(SwsContext*, const uint8_t**, int*, int, int, uint8_t**, int*)Б─≥
make: *** [zm_ffmpeg_camera.o] Error 1


----------------
Global avcodec_decode_video
Use avcodec_decode_video2 instead.

i changed the avcodec_decode_video do avcodec_decode_video2 in zm_ffmpeg_camera.cpp because it's deprecated and now this is the problem
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

all is done
i compile ffmpeg 0.5 from source with options
./configure --enable-swscale --enable-gpl --enable-shared --enable-nonfree --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-bzlib

and ZoneMinder 1.24.2 with options
./configure --with-mysql=/usr --with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin --sysconfdir=/etc --with-ffmpeg=/usr/local --enable-debug=yes --with-libarch=lib --with-webuser=www-data --with-webgroup=www-data --enable-mmap=yes


and the compilation is DONE
but i'm getting this error now

01/15/10 13:09:14.362992 zmwatch[2504].INF [Restarting capture daemon for Monitor-1, shared memory not valid]
01/15/10 13:09:14.640016 zmwatch[2504].INF ['zmc -d /dev/video0' stopping at 10/01/15 13:09:14]
01/15/10 13:09:24.641562 zmwatch[2504].ERR [Can't get shared memory id '7ad0001', 1: No such file or directory]
01/15/10 13:09:24.642169 zmwatch[2504].INF [Restarting capture daemon for Monitor-1, shared memory not valid]
01/15/10 13:09:24.924268 zmwatch[2504].INF [Can't find child with pid of '2940'] at /usr/local/bin/zmwatch.pl line 119
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

Jan 15 13:58:11 zenith zmc_dvideo0[9920]: INF [Monitor-1: 11000 - Capturing at 25.00 fps]
Jan 15 13:58:51 zenith zmc_dvideo0[9920]: INF [Monitor-1: 12000 - Capturing at 25.00 fps]
Jan 15 13:59:31 zenith zmc_dvideo0[9920]: INF [Monitor-1: 13000 - Capturing at 25.00 fps]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Debug Level = 0, Debug Log = <none>]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Starting Capture]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Brightness 2 38036]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Brightness 3 127]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [Backtrace complete, please execute the following command for more information]
Jan 15 13:59:53 zenith zmc_dvideo0[9993]: INF [addr2line -e zmc(__gxx_personality_v0+0x385) 0xb80da424 0xb80da424 0xb7187640 0xb7189018 0x8055df8 0x8069045 0x804cda6 0xb7172455 0x804c921]
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

Jan 15 14:06:20 zenith zmdc[9796]: INF ['zmc -d /dev/video0' starting at 10/01/15 14:06:20, pid = 10041]
Jan 15 14:06:21 zenith zmc_dvideo0[10041]: INF [Starting Capture]
Jan 15 14:06:21 zenith zmc_dvideo0[10041]: INF [Brightness 2 38036]
Jan 15 14:06:21 zenith zmc_dvideo0[10041]: INF [Brightness 3 127]
Jan 15 14:06:21 zenith zmdc[9796]: WAR [Can't find process with command of 'zma -m 1']
Jan 15 14:07:01 zenith zmc_dvideo0[10041]: INF [Monitor-1: 1000 - Capturing at 25.00 fps]
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

ok all done, but still no picture
i changed the capture card and again no picture

Jan 18 10:59:47 zenith zmpkg[29229]: INF [Command: start]
Jan 18 10:59:48 zenith zmdc[29235]: INF [Server starting at 10/01/18 10:59:48]
Jan 18 10:59:51 zenith zmdc[29257]: INF ['zmc -d /dev/video0' started at 10/01/18 10:59:51]
Jan 18 10:59:51 zenith zmc_dvideo0[29257]: INF [Debug Level = 0, Debug Log = <none>]
Jan 18 10:59:51 zenith zmdc[29235]: INF ['zmc -d /dev/video0' starting at 10/01/18 10:59:51, pid = 29257]
Jan 18 10:59:51 zenith zmc_dvideo0[29257]: INF [Starting Capture]
Jan 18 10:59:51 zenith zmdc[29259]: INF ['zmfilter.pl' started at 10/01/18 10:59:51]
Jan 18 10:59:51 zenith zmdc[29235]: INF ['zmfilter.pl' starting at 10/01/18 10:59:51, pid = 29259]
Jan 18 10:59:52 zenith zmdc[29261]: INF ['zmaudit.pl -c' started at 10/01/18 10:59:52]
Jan 18 10:59:52 zenith zmdc[29235]: INF ['zmaudit.pl -c' starting at 10/01/18 10:59:52, pid = 29261]
Jan 18 10:59:53 zenith zmfilter[29259]: INF [Scanning for events]
Jan 18 10:59:53 zenith zmdc[29263]: INF ['zmwatch.pl' started at 10/01/18 10:59:53]
Jan 18 10:59:53 zenith zmdc[29235]: INF ['zmwatch.pl' starting at 10/01/18 10:59:53, pid = 29263]
Jan 18 10:59:54 zenith zmwatch[29263]: INF [Watchdog starting]
Jan 18 10:59:54 zenith zmwatch[29263]: INF [Watchdog pausing for 30 seconds]
Jan 18 10:59:54 zenith zmdc[29265]: INF ['zmupdate.pl -c' started at 10/01/18 10:59:54]
Jan 18 10:59:54 zenith zmdc[29235]: INF ['zmupdate.pl -c' starting at 10/01/18 10:59:54, pid = 29265]
Jan 18 11:00:31 zenith zmc_dvideo0[29257]: INF [outdoor: 1000 - Capturing at 25.00 fps]
Jan 18 11:01:11 zenith zmc_dvideo0[29257]: INF [outdoor: 2000 - Capturing at 25.00 fps]



---------------------------------------------------

zenith:/home/antov# zmu -d /dev/video0 -q -V1 -v
Video Device: /dev/video0
Video Capabilities
Name: BT878 video (GrandTec Multi Cap
Type: 45
Can capture
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 4
Audio Channels: 0
Maximum Width: 924
Maximum Height: 576
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 8 - YUYV
Colour Depth: 16
Brightness: 38038
Hue: 32898
Colour :32898
Contrast: 25700
Whiteness: 0
Channel 0 Attributes
Name: Composite0
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 1 Attributes
Name: Composite1
Channel: 1
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 2 Attributes
Name: Composite2
Channel: 2
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Channel 3 Attributes
Name: Composite3
Channel: 3
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
zenith:/home/antov#
antov
Posts: 13
Joined: Thu Jan 14, 2010 7:40 am

Post by antov »

zenith:/tmp# tail -f zm_debug.log
01/18/10 11:25:50.418302 zmfix[29836].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log]
01/18/10 11:25:50.419073 zmfix[29836].DB1-zmfix.cpp/67 [Permissions on /dev/video0 are ok at 20777]


24678 zma_m1[29873].DB1-zm_monitor.cpp/338 [monitor purpose=2]
01/18/10 11:27:27.924723 zma_m1[29873].DB1-zm_monitor.cpp/345 [mem.size=34562072]
01/18/10 11:27:27.933307 zma_m1[29873].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
01/18/10 11:27:27.936385 zma_m1[29873].DB1-zm_monitor.cpp/458 [Monitor outdoor has function 2]
01/18/10 11:27:27.936425 zma_m1[29873].DB1-zm_monitor.cpp/459 [Monitor outdoor LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
01/18/10 11:27:27.936443 zma_m1[29873].DB1-zm_monitor.cpp/460 [Monitor outdoor IBC = 150, WUC = 30, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
01/18/10 11:27:27.936810 zma_m1[29873].DB1-zm_monitor.cpp/1587 [Reloading linked monitors for monitor outdoor, '']
01/18/10 11:27:27.937101 zma_m1[29873].DB1-zm_zone.cpp/889 [Got 1 zones for monitor outdoor]
01/18/10 11:27:27.937145 zma_m1[29873].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 319,0 319,239 0,239]
01/18/10 11:27:27.937172 zma_m1[29873].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 319,0 319,239 0,239']
01/18/10 11:27:27.937196 zma_m1[29873].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
01/18/10 11:27:27.937217 zma_m1[29873].DB3-zm_zone.cpp/796 [Got coordinate 319,0 from polygon string]
01/18/10 11:27:27.937236 zma_m1[29873].DB3-zm_zone.cpp/796 [Got coordinate 319,239 from polygon string]
01/18/10 11:27:27.937256 zma_m1[29873].DB3-zm_zone.cpp/796 [Got coordinate 0,239 from polygon string]
01/18/10 11:27:27.937283 zma_m1[29873].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
01/18/10 11:27:27.937306 zma_m1[29873].DB1-zm_zone.cpp/50 [Initialised zone 1/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:2304, MxAP:57600, FB:3x3, MnFP:2304, MxFP:57600, MnBS:1536, MxBS:0, MnB:1, MxB:0, OF: 0]
01/18/10 11:27:27.940338 zma_m1[29873].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(outdoor), 1 zones]
01/18/10 11:27:27.940388 zma_m1[29873].INF-zma.cpp/101 [In mode 2/0, warming up]
01/18/10 11:27:27.940735 zma_m1[29873].DB4-zm_monitor.cpp/1055 [RI:150, WI: 89, PF = 89, RM = 61, Step = 4]
01/18/10 11:27:27.940887 zma_m1[29873].DB4-zm_monitor.cpp/1055 [RI:4, WI: 89, PF = 85, RM = 65, Step = 4]
01/18/10 11:27:27.940922 zma_m1[29873].DB4-zm_monitor.cpp/1055 [RI:8, WI: 89, PF = 81, RM = 69, Step = 3]




is it ok?
Locked