[lazarus] missing -lgdk_pixbuf while compiling

Mattias Gaertner nc-gaertnma at netcologne.de
Thu May 8 09:51:50 EDT 2003


On Thu, 8 May 2003 12:49:26 +0200
Siegfried Goericke <siggi at dbobjects.de> wrote:

> 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

libgdk_pixbuf-2.0.so belongs to gtk2 not to gdk-pixbuf-devel.


> 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):gtk
> winapi.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?

Plz install apckage gdk-pixbuf-devel at least version 0.14.
I will add this requirement to the next lazarus rpm. Probably I will update
them next week.


Mattias






More information about the Lazarus mailing list