Recent

Author Topic: How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."  (Read 11656 times)

AlnsLazarus

  • Newbie
  • Posts: 3
How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."
« on: September 25, 2012, 10:15:45 pm »
Hello all:
I have Linux mint 13, KDE.
Downloaded and installed Lazarus. So i was very happy :P, but in my very first project, received
the following while i was trying to run it >:D:
"usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/ld: cannot find -lgtk-x11-2.0
/usr/bin/ld: cannot find -lgdk-x11-2.0
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lpango-1.0
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -latk-1.0
project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping"

So, What is happening here?

a.atalla

  • Jr. Member
  • **
  • Posts: 82
Re: How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."
« Reply #1 on: September 25, 2012, 11:07:29 pm »
you need to install  libgtk2.0-dev
Lazarus 1.0.8 | FPC 2.6.2 x64  | Arch Linux x64 | Windows 7-x86

AlnsLazarus

  • Newbie
  • Posts: 3
Re: How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."
« Reply #2 on: September 26, 2012, 06:54:42 am »
Well, thanks a lot. ;D
But actually, i had to install:
libgtk-3-0            :o
libgtk-3-dev         :o
libgtk2.0-dev       :o 

and (im not sure): :-[
libgtk-3-0-dbg
libgtk2.0-0-dbg
An afterwards, it worked.  :D


Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."
« Reply #3 on: September 26, 2012, 07:04:36 pm »
You should only need libgtk2.0-dev, the -dbg and gtk3 ones are simply unused (gtk3 widgetset is still at initial stage).

AlnsLazarus

  • Newbie
  • Posts: 3
Re: How to fix: "/usr/bin/ld: cannot find -lgdk_pixbuf-2.0..."
« Reply #4 on: September 26, 2012, 10:18:50 pm »
Well, thanks:

I have to say "make it run first, realize how you did that later",  ;)
because when i first tried to install
        libgtk2.0-dev   >:(
it required
   libgtk2.0-0   :o
but, in my system, i had to install
   libgtk-3-0    %)
because libgtk2.0-0 was old.   (i have kde 4.9, linux mint 13,  ... and yes: i dont know why);
after that, i remember that got something like:
"
/usr/bin/ld: cannot find -lpango-1.0
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -latk-1.0
project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping"
so... believe me, i did the other stuff and it is working now  O:-)

 

TinyPortal © 2005-2018