Sign in Join

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

Mailing lists / fpc-pascal / 2004-06

Re: Mac OS X - Graph unit?

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Olaf Leidinger
to Jeff Weeks: 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

Reply by email

Marco van de Voort
to Jeff Weeks: Thank you guys! You're very helpful! I downloaded the rpm and typed: #rpm -i…
Show quoted text 6 lines
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?

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.

Reply by email

Unknown author
to Jeff Weeks: Thank you guys! You're very helpful! I downloaded the rpm and typed: #rpm -i…
Jeff Weeks wrote 13 lines
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?

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.

Show quoted text 38 lines
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! On Jun 2, 2004, at 11:31 AM, Olaf Leidinger wrote: > 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 > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Jeff Weeks
to Jonas Maebe: 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

Jonas Maebe wrote 15 lines
On 2 jun 2004, at 22:57, Jeff Weeks wrote: > Does 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 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Jeff Weeks
to Olaf Leidinger: 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!

Olaf Leidinger wrote 21 lines
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 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Jeff Weeks
to Unknown author: 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

Show quoted text 74 lines
On Wed, 2 Jun 2004, Jeff Weeks wrote: > 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? 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. > > 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! > > On Jun 2, 2004, at 11:31 AM, Olaf Leidinger wrote: > >> 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 >> >> >> _______________________________________________ >> fpc-pascal maillist - >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email