FPC linking error under Linux ... cannot find GLU
Quote:
> Hello
> I installed FPC 1.0.6 on my Mandrake System. All in the default path
> /usr/local
> I tried to compile some programs, it worked only with console program,
> who not need a special lib or unit.
> I tried to compile a gluttest.pp, from the example package, but there
> comes allways the error msg .. cant find GLU unit
> I looked in the fpc.cfg , and I changed some paths, because the units
> are in
> /usr/local/doc/fpc/1.0.6/examples/opengl .. but also with that change
> the same problem. Actually, there is no GLU unit .. only a GLU lib in
> mz /usr/lib dir.
> Linking problems also with the svga samples ... lvga ..cannot find
> bla..bla..
> Please give me some feedback, a snapshot from your fpc.cfg woud be nice,
> that works with the default fpc installation.
These things are distribution dependant, but it is basically quite simple.
- you need the development packages of some libraries installed. Make sure
- that your library directories are listed with -Fl in your ppc386.cfg or
fpc.cfg
- Unit directory should be -Fu/path/to/lib/fpc/$VERSION/units/$TARGET/*
So your fpc.cfg should look somewhat like this:
-Fu/usr/local/lib/fpc/$VERSION/units/$TARGET/*
-Fl/usr/local/lib
-Fl/lib
-Fl/usr/lib
($VERSION is equivalent to 1.0.6, $TARGET to linux, the compiler auto
substitutes these.)
Also keep the line starting with -v in the default config.