Hey David P,
I'm not a ZGV user but you earn Slugger of the year for helping another Slug user out with this stuff. That's amazing!
How about it? An award for slugger of the year?
Help above and beyond the call of duty.
Good on you!
Ben



David P wrote:
On 4/15/07, DaZZa <[EMAIL PROTECTED]> wrote:
Anyone know of anything that'll do the job? Failing that, anyone
willing to take a stab at the error messages {which I can email
off-list} and suggest what I have to do to compile ZGV again?

I know how annoying it is to be in your kind of situation, so I
decided to take a stab at it. ;)
By the way, I'm also using openSUSE 10.2, with X, but I used tty1 for
the purpose of this.

I grabbed the zgv tarball, and had tons of compile errors like you,
with both the SVGALIB and SDL backends. So I poked around in places,
and looked through the FTP ibiblio mirror that the zgv homepage links
to. I saw that ibiblio had another tarball, zgv-5.9-bin, which, as a
precompiled binary, looked more promising. It's here:

ftp://ftp.ibiblio.org/pub/Linux/apps/graphics/viewers/svga/zgv-5.9-bin.tar.gz

I extract it and try to run the zgv binary, but got a library linking
error, saying it couldn't find libvgagl.so.1. It would have been much
more convenient if the binary had been linked to the SDL libs when
compiled, but I guess it's SVGALIB that we need to get. ;)

So looking at the SVGALIB website, it noted that the stable version
was old and wasn't likely to compile on modern gcc's, so I grabbed the
latest development version. I tried to compile it (it tells you it
doesn't like "make" on its own, and suggests typing "make install"
straight away), and it started working for a while, then failed with
an error regarding the svgalib_helper kernel module.

But it had compiled to the point where it had installed libvgagl.so.1
in some form or another, and so I tried running zgv again. It probably
found libvgagl.so.1, because it told me that it now needed
libpng.so.2. Easy, I already had it, just it was called libpng.so.3,
so I made a symbolic link (ln -s /usr/lib/libpng.so.3
/usr/lib/libpng.so.2). Then finally the zgv binary would execute, but
it couldn't open /dev/svga because the svgalib_helper kernel module
wasn't loaded. No surprise, since that failed to compile. I check the
earlier error from make, and it's complaining that it can't include
linux/devfs_fs_kernel.h, since it doesn't exist. I check
/usr/include/linux, and sure enough, devfs_fs_kernel.h isn't there. I
look through ${your_svgalib_tarball_dir}/kernel/svgalib_helper/main.c,
and I note some lines which read "#ifdef CONFIG_DEVFS_FS", which hint
that it still might be able to compile without devfs_fs. I comment out
the devfs_fs include line (line 20 in my main.c, "//" at the beginning
of the line comments it out), and surprisingly, now compiles
successfully.

modprobe doesn't recognise "svgalib_helper", so I insert the compiled
module manually (insmod
${your_svgalib_tarball_dir}/kernel/svgalib_helper/svgalib_helper.ko).
I run zgv again and it still complains about not being able to open
/dev/svga. It's there actually, but the permissions are crw-rw----,
and owned by root:root, so a quick "chmod 666 /dev/svga" as root
allows the device to be opened under my normal user. I execute zgv and
my LCD starts flashing and refreshing madly. It appeared that it was
working, but that /etc/vga/libvga.config needed some tweaking. I was a
bit exhausted at this point and couldn't be bothered (:P), but it
appears that it's working enough so far that you could configure it
for your monitor etc.

Sorry for my very messy way of explaining things, but hopefully it helps you. =)

David
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to