[solved] libXi.so.* in searchpath in FPC.cfg, but not found lazarus / 1-Linux ---------------------------------------------------------------------- entuxiast · 2008-08-23 16:49 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 · 2008-08-26 16:24 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 · 2008-08-26 16:33 Found on Google: install the xdevel package ---------------------------------------------------------------------- entuxiast · 2008-09-02 04:59 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 · 2008-09-02 08:58 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 · 2008-09-02 17:33 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 · 2008-09-02 19:01 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 · 2008-09-12 15:34 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