I'm using xlib_shm-gl with ZM 1.23.3 on my ubuntu 8.04 and it works great!
this is my command:
sudo xlib_shm-gl -m1 -m2 -m3 -k 0x7a6d0000
There is a problem I don't know how to solve it:
when I change the zm run state (restart, stop and start, or custom states) xlib_shm freezes and I can't close it by clicking on the X or mouse right click and close.
I need to change zm state using crontab during the day, so I'm tring to resolve this bug. can you help me? Thanks
Having trouble compiling on xubuntu 6.06 (bluecherry) and zm 1.22.3. Using non-gl version due to intel integrated video. Tried .6.3, rolled back to .6.2 thinking it might be more suited to zm 1.22.2.
~/Desktop/xlib_shm-0.6.2$ make
gcc -c xlib_shm.c -I/usr/X11R6/include
xlib_shm.c: In function ‘GetPortId’:
xlib_shm.c:182: warning: pointer targets in passing argument 3 of ‘XvQueryAdaptors’ differ in signedness
xlib_shm.c: In function ‘loadzmconfig’:
xlib_shm.c:234: warning: incompatible implicit declaration of built-in function ‘strcspn’
xlib_shm.c:238: warning: incompatible implicit declaration of built-in function ‘strspn’
xlib_shm.c:245: warning: incompatible implicit declaration of built-in function ‘strlen’
xlib_shm.c:253: warning: incompatible implicit declaration of built-in function ‘strchr’
xlib_shm.c:277: warning: incompatible implicit declaration of built-in function ‘strncpy’
xlib_shm.c: In function ‘main’:
xlib_shm.c:549: warning: pointer targets in passing argument 4 of ‘XvCreateImage’ differ in signedness
xlib_shm.c:636: warning: pointer targets in passing argument 6 of ‘XCreateImage’ differ in signedness
xlib_shm.c:763: warning: pointer targets in passing argument 6 of ‘XCreateImage’ differ in signedness
xlib_shm.c:873: warning: pointer targets in passing argument 6 of ‘XCreateImage’ differ in signedness
gcc xlib_shm.o -L/usr/X11R6/lib -lXv -lXext -lX11 -lmysqlclient -Wl,-rpath=/usr/X11R6/lib -o xlib_shm
Any thoughts? I've improved slightly from previous errors by upgrading some X11 libs, but it's still not quite there.
I did eventually get it working, and I'm quite pleased with the app. Are there any plans for further development of this? It seems like it would be a very useful component to add to the core app.
00goat wrote:I did eventually get it working, and I'm quite pleased with the app. Are there any plans for further development of this? It seems like it would be a very useful component to add to the core app.
Unfortunately I don't have much time for that.
It was written just because of my customer wishes.
I got all they needed and the development has stopped.
It should be completely rewritten in cpp to add some new features.
It would be great if someone can continue this project. Probably I won't. I just don't have time for it. Of course if there is some volunteer I will be happy to explain how it works.
00goat wrote:I did eventually get it working, and I'm quite pleased with the app. Are there any plans for further development of this? It seems like it would be a very useful component to add to the core app.
Unfortunately I don't have much time for that.
It was written just because of my customer wishes.
I got all they needed and the development has stopped.
It should be completely rewritten in cpp to add some new features.
It would be great if someone can continue this project. Probably I won't. I just don't have time for it. Of course if there is some volunteer I will be happy to explain how it works.
If someone does want to pick it up, and can do a few things for me, we may be able to help support the project. Things like web space, dev boxes, and perhaps even laughably small amounts of cash.
Found on xlib_shm-0.6.3-gl.tar.bz2 a script called start_monitor
-------------- script --------------------------
#!/bin/bash
RUN="./xlib_shm -m1 -b2"
PID=`pidof xlib_shm`
while :
do
PREV_CPU=`cat /proc/$PID/stat 2> /dev/null | cut -f14 -d" "`
sleep 2
CURR_CPU=`cat /proc/$PID/stat 2> /dev/null | cut -f14 -d" "`
if [ -z $CURR_CPU ]
then
PREV_CPU=0
CURR_CPU=0
fi
if [ $PREV_CPU = $CURR_CPU ]
then
PID=`pidof xlib_shm`
if [ -n "$PID" ]
then
kill -9 $PID
fi
$RUN &
PID=`pidof xlib_shm`
fi
done
-----------------------------------------------------
I has seen that this script keeps xlib_shm running for ever. I has been rebooting the computer to stop it. I am sure there is another way to stop it but have no idea about script programming .
What i really need is to start and stop it by pressing the same keyboard key. I has found the way on KDE to assign a key to a script so this part is solved.
Now, how do i modify this script so that if running, it will stop (by pressing the key) and if not runnjing, it will start (by pressing the key the same key)
There are debs out, and they work well. However, you need to set the shared memory key manually for 1.23 as they were compiled for 1.22. Go to http://packages.medianix.net/pool/main/x/ to find them.