Recent

Author Topic: [solved] libXi.so.* in searchpath in FPC.cfg, but not found  (Read 6688 times)

entuxiast

  • Newbie
  • Posts: 5
[solved] libXi.so.* in searchpath in FPC.cfg, but not found
« on: August 23, 2008, 06:49:47 pm »
hello everybody!

(I'am fairly new here ...)

when compiling I get this error:
/usr/bin/ld: cannot find -lXi

by reading the FAQ I know, there must be a RPM missed.
but which RPM do i have to install to solve the problem?

could anybody help?
thanks for beeing nice!

(openSUSE11, KDE3.59)

entuxiast

  • Newbie
  • Posts: 5
RE: can
« Reply #1 on: August 26, 2008, 06:24:14 pm »
hello again!

can really no one tell me, what this "Xi"-thing is?
can you find /usr/bin/Xi in your system?

so please, help me getting the "Xi"...

thanx verry much!
reinhard.

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: can
« Reply #2 on: August 26, 2008, 06:33:21 pm »
Found on Google: install the xdevel package

entuxiast

  • Newbie
  • Posts: 5
RE: libXi.so.* are in searchpath in FPC.cfg, but not found
« Reply #3 on: September 02, 2008, 06:59:30 am »
thanks for replying, Legolas!

Quote from: "Legolas"
Found on Google: install the xdevel package

this was my first search too, xdevel is already installed.

excuse me: but my first question wasn't good enough.
now i can do ist better:

- xdevel is already installed
- /usr/lib contains "libXi.so.6.0.0" and "libXi.so.6"
- /etc/fpc.cfg includes the following paths:
Code: [Select]
# searchpath for libraries
-Fl/usr/lib/gcc/i586-suse-linux/4.3
#/pp/lib
-Fl/lib;/usr/lib


the better question is:
=> what do i have to do, to make libXi visible for FPC/Lazarus?
(rights for "libXi.so.6.0.0" and "libXi.so.6" are 755)

any idea?

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: libXi.so.* are in searchpath in FPC.cfg, but not found
« Reply #4 on: September 02, 2008, 10:58:42 am »
Maybe I'm wrong, but as far as I know, in fpc.cfg you should put a single path on a single line. Try this, maybe it works:
Code: [Select]

# searchpath for libraries
-Fl/usr/lib/gcc/i586-suse-linux/4.3
#/pp/lib
-Fl/lib
-Fl/usr/lib

entuxiast

  • Newbie
  • Posts: 5
RE: libXi.so.* are in searchpath in FPC.cfg, but not found
« Reply #5 on: September 02, 2008, 07:33:48 pm »
hello again!

done as described, saved and lazarus restarted.
but won't work:

Code: [Select]
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.2.0 [2007/08/31] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling /tmp/project1.lpr
Compiling unit1.pas
Linking /tmp/project1
/usr/bin/ld: cannot find -lXi
project1.lpr(17,1) Error: Error while linking
/usr/bin/ld: cannot find -lXi
project1.lpr(17,1) Error: Error while linking
project1.lpr(17,1) Fatal: There were 1 errors compiling module, stopping


any further ideas?

greetz: enTUXiast

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: libXi.so.* are in searchpath in FPC.cfg, but not found
« Reply #6 on: September 02, 2008, 09:01:25 pm »
Uhm... let see... You said
Quote
- /usr/lib contains "libXi.so.6.0.0" and "libXi.so.6"


Maybe you would need to make in /usr/lib a "libXi.so" soft link to "libXi.so.6", or you could try to remove -lXi from the command line and add
Code: [Select]

{$linklib libXi.so.6}

somewhere in your code.

Well,  I'm really groping in the dark... I hope someone other can help here :)

entuxiast

  • Newbie
  • Posts: 5
[solved] libXi.so.* in searchpath in FPC.cfg, but not found
« Reply #7 on: September 12, 2008, 05:34:23 pm »
Hello once more!

the problem was fixed by creating the following softlinks:
Code: [Select]
EnTUXiast://usr/lib # ln -s libXi.so.6 libXi.so
EnTUXiast://usr/lib # ln -s libXext.so.6 libXext.so


Thanks a lot, Legoas!
You are my hero of the month :D

 

TinyPortal © 2005-2018