Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-02

Unit Graph with Linux (Knoppix) or alternative unit

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Holger Peterrs

Hi,
I've got a question again :)

I get the mistake, which is described in the FAQ under my Knoppix Distribution:

Show quoted text 16 lines
Why can't the linker find "vga"? This error typically looks like this: Free Pascal Compiler version 1.0.x [xxxx/yy/zz] for i386 Copyright (c) 1993-2000 by Florian Klaempfl Target OS: Linux for i386 Compiling test.pp Assembling test Linking test /usr/bin/ld: cannot find -lvga test.pp(6,4) Warning: Error while linking Closing script ppas.sh 5 Lines compiled, 0.2 sec This error is not an error in the installation of FPC or FPC itself, but

a missing >Svgalib library in your unix install. Please install the required library using your >favourite package manager tool

For Knoppix boots from CD, I don't think it is not possible to install such a package in this path. How can I get this working? (or is there any other Unit that allows the use of a PutPixel function in an easy way? A special GTK Graphic Widget was good, too.)

Thanks,
Holger

+++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
Marco van de Voort
to Holger Peterrs
Show quoted text 28 lines
I've got a question again :) I get the mistake, which is described in the FAQ under my Knoppix Distribution: >Why can't the linker find "vga"? >This error typically looks like this: >Free Pascal Compiler version 1.0.x [xxxx/yy/zz] for i386 >Copyright (c) 1993-2000 by Florian Klaempfl >Target OS: Linux for i386 >Compiling test.pp >Assembling test >Linking test >/usr/bin/ld: cannot find -lvga >test.pp(6,4) Warning: Error while linking Closing script ppas.sh 5 Lines >compiled, 0.2 sec > > >This error is not an error in the installation of FPC or FPC itself, but a missing >Svgalib library in your unix install. Please install the required library using your >favourite package manager tool For Knoppix boots from CD, I don't think it is not possible to install such a package in this path. How can I get this working? (or is there any other Unit that allows the use of a PutPixel function in an easy way? A special GTK Graphic Widget was good, too.)

Don't link dynamic, link static. Make sure libvga.a (self compiled is best, otherwise look for a svgalib-devel package or so) is somewhere where the compiler can find it (like the current dir).

I had some problems with this (when I created a static IDE), which I solved by post editing link.res, removing the -lvga line, and adding the libvga.a line with full path there.

Holger Peters

Hi,
are there any alternatives?
I think of a simple Graphic Unit, or a Widget for GTK with some simple drawing functions. I'm satisfied with a simple PutPixel procedure.

Holger

Michael Van Canneyt
to Holger Peters
Holger Peters wrote
Hi, are there any alternatives? I think of a simple Graphic Unit, or a Widget for GTK with some simple drawing functions. I'm satisfied with a simple PutPixel procedure.

You may want to have a look at the 4th or 5th GTK article on the website. There I explain how you could set up such a thing. (It's the one with the breakout game)

Michael.

Anton Tichawa
to Holger Peters: are there any alternatives? I think of a simple Graphic Unit, or a Widget for GTK with…

Hello, Holger Peters!

I hvae a unit that sits on top of X and allows run-time switching between normal and DGA mode, and - in DGA mode - fast painting. There are almost no widgets, but some examples (two fonts, balls, rainbows, ..). Currently, it does NOT run under proprietary OS's. Also, it is tightly coupled to all my other sources ..

Well, I don't know how to handle a transfer of such sources to you, because I doubt about the idea of proprietary-doom .. do u have any idea?

Anton Tichawa.

----------

"Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben."

Doris Langley Moore: Ada, Countess of Lovelace (London 1977).

----------

Anton Tichawa
Volkertstrasse 19 / 20
A-1020 Wien
mobil: +43 664 52 07 907
email:

----------

Holger Peters

Hi,

You may want to have a look at the 4th or 5th GTK article on the website. There I explain how you could set up such a thing. (It's the one with the breakout game)

I've already read this article, and I tried to write a Widget, that does this, but it does not work right (I'm searching still the mistake).

I think I've found now a Unit which is good enough, SDL4FreePascal.

Thanks for your help,
Holger