Sign in Join

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

Mailing lists / fpc-devel / 2006-12

Lazarus Linkage Error

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Unknown author

Trying to get Lazarus for Sparc built but when it comes to the time where Lazarus is being linked, I get the following:

Free Pascal Compiler version 2.1.1 [2006/12/15] for sparc Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for SPARC
Compiling lazarus.pp
Assembling lazarus
Linking ../lazarus
/usr/bin/ld: cannot find -lgdk_pixbuf
lazarus.pp(114,42) Error: Error while linking
lazarus.pp(114,42) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/robert/svn/lazarus/ide' make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/robert/svn/lazarus/ide' make: *** [ide] Error 2

For some reason, it seems that everything else finds the gdk_pixbuf library just fine. Any suggestions would be greatly appreciated.

PS: The binaries compile fine under Win32 and tonight's snapshot is on my website for downloading for that architecture.

Reply by email

Micha Nelissen
to Unknown author
For some reason, it seems that everything else finds the gdk_pixbuf library just fine. Any suggestions would be greatly appreciated.

Assuming that you installed the gdk-pixbuf-devel libraries ?

Otherwise I usually do a strace -f <cmdline> | grep pixbuf, or something similar.

Micha

Reply by email

Marco van de Voort
to Unknown author: Trying to get Lazarus for Sparc built but when it comes to the time where Lazarus is…
Show quoted text 8 lines
make[2]: Leaving directory `/home/robert/svn/lazarus/ide' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/home/robert/svn/lazarus/ide' make: *** [ide] Error 2 For some reason, it seems that everything else finds the gdk_pixbuf library just fine. Any suggestions would be greatly appreciated.

Fine when running or compiling?

Unix libraries often have names like

libbasename.so.x.y (or libbasename.a.x.y for static libs) which ready made programs are linked against, while compilers search for libbasename.so (or libbasename.a).

You probably need to create the symlink. (on Linux such symlinks are in the -devel package together with the headers)

Reply by email