Recent

Author Topic: linker: /usr/bin/ld: cannot find -lXtst  (Read 228 times)

winni

  • Sr. Member
  • ****
  • Posts: 425
linker: /usr/bin/ld: cannot find -lXtst
« on: October 04, 2019, 01:17:11 am »
Hi!

I just added MouseAndKeyInput to a project.

Everthing compiled fine, but the linker complains:

Code: Text  [Select]
  1. linker: /usr/bin/ld: cannot find -lXtst

Hm, Xtst is installed. But from experience I know that it often helps to install the devel package. So I installed the libXtst-devel.

I did not even close Lazarus. Compiled, linked, zak - everything ok.

Who is responsible for that: Suse or fpc/Lazarus?

Suse Tumbleweed 5.3.1.1, gtk 2

Winni

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7497
Re: linker: /usr/bin/ld: cannot find -lXtst
« Reply #1 on: October 04, 2019, 10:27:13 am »
In practice: You.

Forcedly installing all dependencies for all libraries for which FPC/Lazarus might have headers is not workable. Breaking up in many packages is an half solution (e.g. debian derived distros try), and also has its problems.

« Last Edit: October 04, 2019, 11:38:59 am by marcov »

MarkMLl

  • Full Member
  • ***
  • Posts: 216
Re: linker: /usr/bin/ld: cannot find -lXtst
« Reply #2 on: October 04, 2019, 11:12:56 am »
Agreed with Marco: if the developer is using something that's not implicit to the IDE/LCL then it's his responsibility to make sure that the prerequisites are installed, and if the distro makes that difficult it was his choice to use that distro.

The exception is that for quite a long time it was very useful for the end user's system to have the SQL development packages installed, but the LCL fixed that by giving the programmer better control over which libraries were used (i.e. rather than relying on a symlink set up by the development packages).

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

winni

  • Sr. Member
  • ****
  • Posts: 425
Re: linker: /usr/bin/ld: cannot find -lXtst
« Reply #3 on: October 06, 2019, 07:12:21 pm »
Hi!

Thanx for the infos.

I just remembered that Lazarus 1.6 / Suse 13.x worked without complaining. So Suse must have changed the packages.

I am warned for the future.

Winni