Does FPC support the graph unit on OSX? How do I get programs to compile? Thanks! Jeff
Jeff Weeks wroteDoes FPC support the graph unit on OSX?
No, not yet. A graph unit for Mac OS X will probably be built on top of SDL.
Jonas

Mailing lists / fpc-pascal / 2004-06
9 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Does FPC support the graph unit on OSX? How do I get programs to compile? Thanks! Jeff
Jeff Weeks wroteDoes FPC support the graph unit on OSX?
No, not yet. A graph unit for Mac OS X will probably be built on top of SDL.
Jonas
The other platform I can use is Red Hat Linux 7.1 The following happened while compiling…
http://www.freepascal.org/faq.html#vgamissing
Jonas
The other platform I can use is Red Hat Linux 7.1 The following happened while compiling…
Hello!
The following happened while compiling the maze example application. Do I need to compile this from a graphical terminal? I was using SSH.
This is no you must run it on a local machine in a terminal (not from X)
Or am I missing something?
Yes, you need libsvga (package name maybe svgalib) installed.
/usr/bin/ld: cannot find -lvga maze.pp(508) Error: Error while linking
Ciao,
Olaf
Thank you guys! You're very helpful! I downloaded the rpm and typed: #rpm -i…
No. source rpm usually have srpm as extension.
It didn't give any errors but didn't fix my compile problem, either.
Then it only installed the lib, but didn't do some postconfiguration step.
Try finding the lib(s)vga.so.x.y library, and create a symlink to it called libvga.so
Sorry for asking a Linux question.... but is there a right way to get the graphics library installed?
It is very distribution (and package) dependant.
However, the bottom line is
1) that if FPC says: "can't find -lxxx" then you are missing a libxxx.so file. Usually that means you have to install the corresponding package
2) A corresponding package sometimes doesn't install libxxx.so, for various reasons (see below), you can correct this by creating a symlink with ln -s libthenamethatwasinthepackage.so.123.5235 libnameitshouldbe.so
The reason for (2) is because
- you might want to install multiple versions of this package, and if all would call the main lib "libxxx.so" this would cause conflicts. This is solved by appending the .x.y.z versioning to the libxxx.so file
- Some libraries have multiple names. e.g. a lot distributions/OSes call "libsvga" libvga, and some call "ncurses" curses, all for historical reasons.
Thank you guys! You're very helpful! I downloaded the rpm and typed: #rpm -i…
This is already 1 step. The second step is installing the svgalib-devel package. Alternatively, install a symbolic link to it:
cd /usr/lib
ln -s libvga.so.x.y.z libvga.so
replace x.y.z with the actual version number.
Michael.
Does FPC support the graph unit on OSX? How do I get programs to compile?
Thanks!
Jeff
No, not yet. A graph unit for Mac OS X will probably be built on top of SDL. Jonas
The other platform I can use is Red Hat Linux 7.1
The following happened while compiling the maze example application. Do I need to compile this from a graphical terminal? I was using SSH. Or am I missing something?
Thanks!
Jeff
pascal]# fpc maze.pp
Free Pascal Compiler version 1.0.10 [2003/06/26] for i386 Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: Linux for i386
Compiling maze.pp
Assembling makemaze
Linking maze
/usr/bin/ld: cannot find -lvga
maze.pp(508) Error: Error while linking
Closing script ppas.sh
Hello! This is no you must run it on a local machine in a terminal (not from X) Yes, you…
Thank you guys! You're very helpful!
I downloaded the rpm and typed:
#rpm -i svgalib-1.4.1-2.src.rpm
I don't think this is how this type of RPM gets installed.... it's a "source" RPM I take it?
It didn't give any errors but didn't fix my compile problem, either.
Sorry for asking a Linux question.... but is there a right way to get the graphics library installed?
Thanks, again.
Jeff
ps. BTW, we're eventually converting a DOS-based Turbo Pascal program. This program is used by scientists all over the world. They will LOVE to upgrade to Linux!
This is already 1 step. The second step is installing the svgalib-devel package.…
Thanks, everyone. I had to download the source... couldn't get the RPMs to work. But after compiling I followed your link instructions and voila...
Thanks, again. Success feels good. 8^)
Jeff