Page 9 of 14

Posted: Tue Jun 12, 2007 11:54 pm
by Lee Sharp
That fixed my first issue. Worked fine in my Ubuntu Edgy test system after installing libmysqlclient12. Then I tried on a Feisty system, and had to find libmysqlclient12, and only 15 is available in the repositories. Then it fails with an auth issue... (I think because 12 will not auth with the mysql using 15.) Any hints or hope for a patch? :) It is so handy, and I really want it on the production system!

Posted: Wed Jun 13, 2007 8:09 am
by maciekc
Lee Sharp wrote:That fixed my first issue. Worked fine in my Ubuntu Edgy test system after installing libmysqlclient12. Then I tried on a Feisty system, and had to find libmysqlclient12, and only 15 is available in the repositories. Then it fails with an auth issue... (I think because 12 will not auth with the mysql using 15.) Any hints or hope for a patch? :) It is so handy, and I really want it on the production system!
Did you tried to recompile xlib_shm?(make clean, make)
Did you compiled zm by yourself?
Maybe you need to change some includes in xlib_shm.c or something in makefile.

Posted: Thu Jun 14, 2007 4:24 pm
by Lee Sharp
As a policy, we compile nothing on production systems. It makes upgrades painful. :) Stand alone binaries are slid in under the wire, but packages (from repositories) are the preferred method. Perhaps this could be integrated into Peter's debs for Ubuntu and Debian?

But to answer your question, no I did not compile, and I installed from the debs. I was hoping a new version was forthcoming, and thought I would check first. It keeps patch management simple. :)

Posted: Mon Jun 18, 2007 10:21 am
by maciekc
Lee Sharp wrote:As a policy, we compile nothing on production systems. It makes upgrades painful. :) Stand alone binaries are slid in under the wire, but packages (from repositories) are the preferred method. Perhaps this could be integrated into Peter's debs for Ubuntu and Debian?
So you should ask him to include xlib_shm to his debs. I think this is a good idea.
But to answer your question, no I did not compile, and I installed from the debs. I was hoping a new version was forthcoming, and thought I would check first. It keeps patch management simple. :)
Try to compile only xlib_shm it should help, cause my binary was compiled on older system.

Posted: Thu Aug 09, 2007 2:28 pm
by sesam_pt
Hello, i'm trying to setup zoneminder with xlib_shm-gl on ubuntu feisty, but it only runs using sudo, if i try to run with normal user it states

ERROR:Failed to shmget
EACESS - no rights to access segment

Can someone help-me with the needed permissions. thank you

Posted: Fri Aug 17, 2007 5:53 pm
by maciekc
sesam_pt wrote:Hello, i'm trying to setup zoneminder with xlib_shm-gl on ubuntu feisty, but it only runs using sudo, if i try to run with normal user it states

ERROR:Failed to shmget
EACESS - no rights to access segment

Can someone help-me with the needed permissions. thank you
You have to run it with root or with your zm user - probably www-data, or change permissions of shared memory in zm source code.

Posted: Sat Oct 20, 2007 8:03 am
by muzyk10
hi

I'm trying to run xlib_shm and xlib_shm_gl without luck.
I have (gentoo system):

gcc-4.1.1
2.6.20-gentoo-r8
libmysqlclient.so.15
xorg-server-1.4-r1
xf86-video-i810 (dri) -2.1.1
zoneminder-1.22.3

They both compile ok, but after start i get 'segmentation fault' only.
Is there chance to make them more verbose ?
I didnt find 'configure' scripts.
Occasionally xlib_shm (no GL) will run but for some time (secodns to minutes) and them 'segfault'.

Sorry for my english :)

greetings

Posted: Sun Oct 21, 2007 11:31 am
by maciekc
muzyk10 wrote:hi

I'm trying to run xlib_shm and xlib_shm_gl without luck.
I have (gentoo system):

gcc-4.1.1
2.6.20-gentoo-r8
libmysqlclient.so.15
xorg-server-1.4-r1
xf86-video-i810 (dri) -2.1.1
zoneminder-1.22.3

They both compile ok, but after start i get 'segmentation fault' only.
Is there chance to make them more verbose ?
I didnt find 'configure' scripts.
Occasionally xlib_shm (no GL) will run but for some time (secodns to minutes) and them 'segfault'.

Sorry for my english :)

greetings
Did you used version 0.6.3?
Send email to me so I can help you using pl language, would be much simpler for both of us:)

Posted: Fri Nov 16, 2007 5:45 am
by linuxsense
Just wanted to say thanks for the stream viewer. I use it often and the performance is very good. I have been using the gl version....no issues.

Here is a KDE desktop shortcut that I setup to launch the viewer. You will need to adjust the path to the binary and the options to want to use for xlib_shm and you may also need to icon setting, but this should get you going:

Code: Select all

[Desktop Entry]
Categories=Qt;KDE;Core;
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=kdesudo "/home/dave/bin/xlib_shm -m1 -m2 -m3 -m4 -w 1024 -h 768"
GenericName=ZoneMinder Stream Viewer
GenericName[en_US]=ZoneMinder Stream Viewer
Icon=tv
MimeType=
Name=ZoneMinder Stream
OnlyShowIn=KDE;
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Save as a .desktop file in ~/Desktop/...I called mine "ZMstream.desktop". Just click to launch.

bad view

Posted: Thu Nov 29, 2007 9:45 pm
by nextime
Hi,
i'm trying xlib_shm (gl version and "no gl" version, same results ) with zm 1.22.3 from debian package ( 1.22.3-8 ) on debian sid, kernel 2.6.18 self compiled, xlib_shm version 0.6.3.
Hardware info:
CPU AMD Athlon(tm) X2 Dual Core Processor BE-2300
RAM: 2 gigs
capture card: pv155 card ( 16 ports x 4 chip Bt878 )
cams: 11 CCTV PAL color rgb24 at 320x240 ( work well in web gui of zm )
+1 linksys with a ugly hack with mplayer, so, local jpeg at 320x240

When i launch xlib_shm with: ./xlib_shm -m 20 -c 1 -w 320 -h 240
i get: http://danex.nexlab.it/xlib_shm.jpg

Any idea? what's wrong?

Posted: Tue Dec 04, 2007 9:08 pm
by nextime
Debian packages compiled against sid:

deb http://packages.medianix.net/ mercury main
deb-src http://packages.medianix.net/ mercury main

xlib-shm and xlib-shm-gl

Posted: Wed Dec 05, 2007 5:01 am
by Lee Sharp
nextime wrote:Debian packages compiled against sid:

deb http://packages.medianix.net/ mercury main
deb-src http://packages.medianix.net/ mercury main

xlib-shm and xlib-shm-gl
For those that do not want to add the repo, do you have a stand alone download as well?

Posted: Wed Dec 05, 2007 8:30 am
by nextime

Posted: Thu Dec 13, 2007 7:15 am
by linuxsense
Any chance of a version of xlib_shm for use with 1.23 in the near future?

Re: bad view

Posted: Thu Dec 13, 2007 2:19 pm
by maciekc
nextime wrote:Hi,
i'm trying xlib_shm (gl version and "no gl" version, same results ) with zm 1.22.3 from debian package ( 1.22.3-8 ) on debian sid, kernel 2.6.18 self compiled, xlib_shm version 0.6.3.
Hardware info:
CPU AMD Athlon(tm) X2 Dual Core Processor BE-2300
RAM: 2 gigs
capture card: pv155 card ( 16 ports x 4 chip Bt878 )
cams: 11 CCTV PAL color rgb24 at 320x240 ( work well in web gui of zm )
+1 linksys with a ugly hack with mplayer, so, local jpeg at 320x240

When i launch xlib_shm with: ./xlib_shm -m 20 -c 1 -w 320 -h 240
i get: http://danex.nexlab.it/xlib_shm.jpg

Any idea? what's wrong?
Looks like a bad pallette settings. Are you sure you are using rgb24 on all cameras?