You are not logged in.
Pages: 1
Hi,
Has anyone mangaged to build the SVGALib library for consule based graphics. I downloaded from SVGAlib.org but it is a real nightmare to get to compile.
May be someone knows a different console based graphics library?
Thanks in anticipation of knowledge / help.
Many Thanks,
Nathan
Offline
SVGAlib is pretty old, maybe try something like ncurses instead?
Offline
Ncurses unfortunately doesn't quite meet my needs. I need to be able to display a map using VGA quality graphics but did not want to load a desktop. The SVGAlib is low level and if I could install it would be perfect.
Offline
ncurses are for console based graphics - as in displays in a terminal. It's the standard library. If you instead mean a X11 interface (which displays in an X window enviroment) you could use something as simple as bash scripts and yad to get the job done. Yad depends only on gtk and Xorg.
Alternatively, you could also write an gtk based interfaces in the vala or genie programming languages and have them actually generate binaries for you.
Offline
SVGAlib is an open-source low-level graphics library which runs on Linux and FreeBSD and allows programs to change video mode and display full-screen graphics. Some popular games like Quake and Doom used it in their original releases.
The library was popular in mid-1990s. Toward 2000, many applications that used it migrated to X11 and SDL, which itself can make use of SVGAlib as a video driver.
Source: SVGALib—Wikipedia
ncurses (new curses) is a programming library that provides an API which allows the programmer to write text-based user interfaces in a terminal-independent manner. It is a toolkit for developing "GUI-like" application software that runs under a terminal emulator. It also optimizes screen changes, in order to reduce the latency experienced when using remote shells.
Source: Ncurses—Wikipedia
The Linux framebuffer (fbdev) is a graphic hardware-independent abstraction layer to show graphics on a computer monitor, typically on the console. The word framebuffer means a part of video memory containing a current video frame, and the Linux framebuffer means “access method to the framebuffer under the Linux kernel”, without relying on system-specific libraries such as SVGALib or another user space software.
Source: Linux framebuffer—Wikipedia
Offline
Hi All,
Decided the easiest way to go forward was to program all in xlib and run in desktop. I wasted too much time on trying to get SVGAlib to compile etc...
Thanks for assistance. Now all I need to work out is auto starting the program upon entering the desktop.
Many Thanks,
Nathan
Offline
That might be tricky, but you could probably use something like openbox's auto-started applications to get the job done. You could probably also get SLiM to run it at login.
Offline
I managed to get auto run at start up and yes a little tricky!
What appears even more tricky is setting up resolution. Not solved that one yet.
Offline
Inside Xorg you could try using the command line tool xrandr or the graphical front-end called lxrandr - provided that the right xorg driver for the graphics card is loaded.
You could also try using the boot 'cheat codes' to set the resolution before it even boots SliTaz (you append them to the end of the SliTaz grub boot entry). The ones you want are vga and screen and the guide on how to use them can be found @ http://doc.slitaz.org/en:handbook:livecd
Offline
Pages: 1
[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]