[lazarus] missing -lgdk_pixbuf while compiling

Siegfried Goericke siggi at dbobjects.de
Thu May 8 06:41:56 EDT 2003


Am Donnerstag, 8. Mai 2003 11:10 schrieb Peter Vreman:
> > Am Donnerstag, 8. Mai 2003 10:04 schrieb Peter Vreman:
> >> > Hello,
> >> >
> >> > I installed the rpm packages of Lazarus on my SuSE 8.2. The IDE ist
> >> > running well, but I can't compile even a small programm:
> >> >
> >> > /usr/bin/ld: cannot find -lgdk_pixbuf
> >> >
> >> > But gdk-pixbuf-0.18.0-233 ist installed on my system. What ist Lazarus
> >> > missing?
> >>
> >> You need to installed also the -dev (or -devel) package
> >
> > Hi all, I have the same problem with fpc1.1, fpc1.0.7, and fpc-cvs. The
> > devel
> > lib are al installed.
> > a workaround is to compile lazarus with the -dNoGdkPixBufLib option.
>
> This is not a fpc problem, the error is reported by the GNU linker.
> Building a C program and linking with -lgdk_pixbuf will also fail.
>
> You can search for libgdk_pixbuf.so or libgdk_pixbuf*.so to check if they
> maybe renamed the file to some versioned library name.
>
Hi again, 

I found a broken link and correct them to my environment:
 
 ln -s /usr/lib/libgdk_pixbuf-2.0.so.0.200.1 /usr/lib/libgdk_pixbuf.so

then I compile lazarus and the following error occurs:

Assembling lazarus
Linking ./lazarus
./lcl/units/gtk/gtkint.o(.text+0x4687): In function `LOADFILE':
gtkobject.inc:1405: undefined reference to `gdk_pixbuf_render_pixmap_and_mask'
./lcl/units/gtk/gtkint.o(.text+0x4aea): In function `LOADDATA':
gtkobject.inc:1503: undefined reference to `gdk_pixbuf_render_pixmap_and_mask'
./lcl/units/gtk/gtkint.o(.text+0x123a4): In function `DATASOURCEINITIALIZE':
gtkwinapi.inc:1098: undefined reference to `gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x12430):gtkwinapi.inc:1085: undefined 
reference to `gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x1d133): In function `SCALEBUFFER':
gtkwinapi.inc:7425: undefined reference to `gdk_pixbuf_get_from_drawable'
./lcl/units/gtk/gtkint.o(.text+0x1d1fe):gtkwinapi.inc:7437: undefined 
reference to `gdk_pixbuf_render_pixmap_and_mask'
lazarus.pp(316) Error: Error while linking
Closing script ./ppas.sh
make[1]: *** [lazarus] Fehler 1
make[1]: Leaving directory `/home/blgoeris/src/lazarus'
make: *** [ide] Fehler 2


which version is the correct version of libgdk_pixbuf for use with lazarus?



-- 
Gruss Siggi






More information about the Lazarus mailing list