LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2003, 11:15 PM   #1
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Rep: Reputation: 15
Angry svgalib problems


I'm running Mandrake 9.1. I cannot seem to install svgalib. Everytime I attempt it, none of the demos work, it's as if it didn't install at all. How do you do it??????
 
Old 05-22-2006, 08:32 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 622

Rep: Reputation: 186Reputation: 186
svgalib is for those video cards that don't play nice with a frame buffer. If you can use a nice frame buffer, do that. For example, my S3 Virge card can't, and so I use svgalib on that machine. This same lib, on my other machine, a Pentium4 with a I845 card, causes the machine to dead-lock; but on that one I can use the Intelfb frame buffer. The difference mainly is using "seejpeg" on the P2 and "fbv" on the P4 for console text-mode graphics viewing.

You didn't say what kernel you're using and I'm not familiar with Mandrake enough to know by the version number of the OS. I'll assume you tried to use rpm and your distro's packages? That should be the first choice if you're running a distro. If there is not one, or it will not work, or is not recent enough for your needs, you can use the source from the svgalib website and compile your own. You'll obviously need an appropriate developmental environment. Before you upgrade/uninstall, I'd save the old shared lib in case anything is linked against it (just a good safety measure in any case). Installing the new svgalib will remove any old files.

If you can run the devel version, do it, because (IMO), it's about production level ready and works great on my S3 Virge. One problem, in linux 2.6.15 and then again in 2.6.16, there were some major changes that effected the svgahelper module. You can still compile and use the devel, even with recent kernels like these if you use this patch. When it didn't compile on the 2.6.15, I wrote the maintainer, and he suggested a few fixes. They fixed most of the errors. I figured out the last of them, wrote back, but he didn't acknowlege the email. As it stands these patches aren't on the website to my knowlege.

Get the latest devel as of this writing: http://www.arava.co.il/matan/svgalib...-1.9.24.tar.gz

Unpack and use this patch for 2.6.15-2.6.16.* (and prob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NEK7
M2.MT0W.GN>VJ)KPI,>=E00'OE"RY!=6*-JS_G6FENG`%Q`O$P'VL';%$;3B$
M!575HL4X5A66MAP(#PK-V;)&!B\SC;9#7J"VH$6Y43JLT@!I224_J&!5BTJA
M9LBCV(60Q!PJFN?.?LAQGF__`OEPX/M"YVR#Q23!B82JQ+*2JP(%WP20YF.1
KYFH;'=9_T2X_NNYI6F"9*GU;2Q%2P60>&'?F[=;Y5:0TOP*_)F!2RP@`````
`
end
Set Makefile.cfg as you like in the src top level directory, make sure to build svgahelper. Go to kernel/svgalib_helper dir and make, install the module to the lib/modules area (gzip/run depmod). Do make install at the src top level.

Quote:
[ jayjwa@vdrl:/tmp/svgalib-1.9.24/kernel/svgalib_helper>] make
make -C /lib/modules/2.6.16.16/build SUBDIRS=/tmp/svgalib-1.9.24/kernel/svgalib_helper CLASS_CFLAGS= modules
make[1]: Entering directory `/usr/src/linux-2.6.16.16'
CC [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/main.o
CC [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/i810.o
CC [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/interrupt.o
CC [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/virtual.o
CC [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/displaystart.o
LD [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/svgalib_helper.o
Building modules, stage 2.
MODPOST
CC /tmp/svgalib-1.9.24/kernel/svgalib_helper/svgalib_helper.mod.o
LD [M] /tmp/svgalib-1.9.24/kernel/svgalib_helper/svgalib_helper.ko
make[1]: Leaving directory `/usr/src/linux-2.6.16.16'
[ jayjwa@vdrl:/tmp/svgalib-1.9.24/kernel/svgalib_helper>] ginstall -o root -g root -m 644 -v svgalib_helper.ko /lib/modules/current/kernel/drivers/char/
The install should make you these nodes:
Code:
crw-rw-rw- 1 root root 209, 0 2006-05-02 15:18 /dev/svga
crw-rw-rw- 1 root root 209, 1 2006-05-02 15:18 /dev/svga1
crw-rw-rw- 1 root root 209, 2 2006-05-02 15:18 /dev/svga2
crw-rw-rw- 1 root root 209, 3 2006-05-02 15:18 /dev/svga3
crw-rw-rw- 1 root root 209, 4 2006-05-02 15:18 /dev/svga4
modeprobe svgalib_helper when you want to use svgalib, or maybe place that in your rc.modules or startup files.

You should have a working, new svgalib. Remember though, from my experience it worked great with some cards, and others not so great. If you've already got a means to have graphics on the console (like framebuffer) and it works well, it may be best to stay with that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
svgalib-problems bave Linux - Software 0 09-15-2005 07:22 AM
SVGAlib ?? mickeyboa Fedora 5 09-10-2005 07:34 PM
svgalib and the 2.6.11 kernel kodon Slackware 9 06-19-2005 03:23 PM
Svgalib and Svgalib-devel on FC1 Michele Spinolo Fedora 1 11-11-2004 10:56 AM
SVGALib: how to test ? braindeadt Linux From Scratch 1 05-12-2003 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration