Recent

Author Topic: Numerous linking errors on trying to run a project  (Read 4338 times)

dais

  • New Member
  • *
  • Posts: 22
Numerous linking errors on trying to run a project
« on: July 14, 2015, 05:08:39 pm »
Hello!
I tried to install Lazarus 1.2.4 on my new Linux Mint Debian 2 Betsy from Synaptic. For a first start it started with no items on a main panel, so I installed lcl libraries. Then it started, but when I tried to run a project, it showed me messages, that /usr/bi/ld.bfd cannot find -lgdk-pixbuff-2.0, -lgdk-x11-2.0... and some other. I made some reserch, found and installed libgdk-2.0.
So, at this point only 2 things it cannot find - -lgdk-x11-2.0 and -lgtk-x11-2.0
I reserched and found, that there are some two libs, /usr/lib/libgdk-x11-2.0 and /usr/lib/libgtk-x11-2.0.
According to other posts here, those two are responsible for -lgdk-x11-2.0 and -lgtk-x11-2.0. But I don't know what to do, to fix a situation.
« Last Edit: July 14, 2015, 09:48:56 pm by dais »

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Numerous linking errors on trying to run a project
« Reply #1 on: July 15, 2015, 12:40:52 pm »
You need the *dev versions of those libraries.
Lazarus 1.7 (SVN) FPC 3.0.0

dais

  • New Member
  • *
  • Posts: 22
Re: Numerous linking errors on trying to run a project
« Reply #2 on: July 15, 2015, 04:17:48 pm »
Ok, but I can not find in Synaptic any of libgdk-x11-2.0-dev or libgtk-x11-2.0-dev, apt-get returned me, that there is nothing found in repositories. I'm stuck. On my other installation of Linux Mint 13 LXDE unofficial, Lazarus 0.9.* installed from repositories with no any pain. All works.
So, do you know, where to find those libs?

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Numerous linking errors on trying to run a project
« Reply #3 on: July 16, 2015, 02:12:40 pm »
Sorry, I'm on Arch Linux. You could ask at the forum of your distribution for an advice.
Lazarus 1.7 (SVN) FPC 3.0.0

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Numerous linking errors on trying to run a project
« Reply #4 on: July 16, 2015, 02:55:17 pm »
It might be just "-2" -dev instead of -2.0.


Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Numerous linking errors on trying to run a project
« Reply #5 on: July 17, 2015, 07:48:09 pm »
On my other installation of Linux Mint 13 LXDE unofficial, Lazarus 0.9.* installed from repositories with no any pain. All works.
Then why don't you see what the packages there depends on, there should be those -dev packages listed, whatever their name is.

dais

  • New Member
  • *
  • Posts: 22
Re: Numerous linking errors on trying to run a project
« Reply #6 on: July 17, 2015, 08:04:47 pm »
I'll be nearby my Lazarus 0.9... only at saturday... and I've kinda solved my problem by installing all libs, that has something to do with x11, dev and gtk. I can not even tell, wich of a lib was it. Sorry guys. But all's working now.

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Numerous linking errors on trying to run a project
« Reply #7 on: August 29, 2015, 07:39:34 am »
I have these library installed

libgdk-pixbuf2.0-dev libgdk-pixbuf2.0-common libgdk-pixbuf2.0-0
FPC 3.2.2 | Lazarus 2.2.3 | Kubuntu 22.04 64bit

 

TinyPortal © 2005-2018