Cannot find -lgtk (when linking) lazarus / 1-Linux ---------------------------------------------------------------------- Ger · 2004-02-20 09:06 When trying to compile a simple project (initial form + 1 button added) I get : TOutputFilter: "Compiling /tmp/project1.lpr" TOutputFilter: "Linking /tmp/project1" TOutputFilter: "/usr/bin/ld: cannot find -lgtk" TOutputFilter: "project1.lpr(12,1) Error: Error while linking" TOutputFilter: "Closing script ppas.sh" Running on Suse 9.0 with KDE 3.2 Any ideas appreciated Ger ---------------------------------------------------------------------- Vincent Snijders · 2004-02-20 12:14 Have you read the FAQ: http://www.lazarus.freepascal.org/modules.php?op=modload&name=FAQ&file =index&myfaq=yes&id_cat=2#9 And this topic: http://www.lazarus.freepascal.org/index.php?name=PNphp BB2&file=viewtopic&t=146 Does it help you? ---------------------------------------------------------------------- Anonymous · 2004-02-20 16:22 All .dev's are installed (or at least so reports the SuSE installer ) These are the .a files I can find /opt/gnome/lib/gtk-2.0/2.2.0/engines/libcrux-engine.a /opt/gnome/lib/gtk-2.0/2.2.0/engines/libhcengine.a /opt/gnome/lib/gtk-2.0/2.2.0/engines/liblighthouseblue.a /opt/gnome/lib/gtk-2.0/2.2.0/engines/libmist.a /opt/gnome/lib/gtk-2.0/2.2.0/engines/libsvg.a /opt/gnome/lib/gtk-2.0/2.2.0/immodules/im-gucharmap.a /opt/gnome/lib/gtk-2.0/2.2.0/loaders/svg_loader.a /opt/gnome/lib/gtk-2.0/modules/libgal-a11y-2.0.a /opt/gnome/lib/gtkhtml/libgnome-gtkhtml-editor-3.0.a /opt/gnome/lib/libgconf-gtk-1.a /opt/gnome/lib/libgtk.a /opt/gnome/lib/libgtkgl.a /opt/gnome/lib/libgtkhtml-2.a /opt/gnome/lib/libgtkhtml-3.0.a /opt/gnome/lib/libgtkhtml-a11y-3.0.a /usr/lib/fpc/1.9.3/units/linux/fpgtk/libpfpglib.a /usr/lib/fpc/1.9.3/units/linux/fpgtk/libpfpgtk.a /usr/lib/fpc/1.9.3/units/linux/fpgtk/libpfpgtkext.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpgdk.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpgdkpixbuf.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpglib.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpgmodule.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpgtk.a /usr/lib/fpc/1.9.3/units/linux/gtk/libpgtkglarea.a /usr/lib/gimp/1.2/modules/libcolorsel_gtk.a /usr/lib/ocaml/lablgtk/lablgtk.a /usr/lib/ocaml/lablgtk/liblablgtk.a Dunno what else I can look for Ger ---------------------------------------------------------------------- Marc · 2004-02-20 16:36 is /opt/gnome/lib/ part of your fpc.cfg ? ---------------------------------------------------------------------- Anonymous · 2004-02-20 19:41 Adding the line to fpc.cfg crashes the IDE TOutputFilter: "Hint: Start of reading config file /etc/fpc.cfg" TOutputFilter: "Hint: End of reading config file /etc/fpc.cfg" TOutputFilter: "Free Pascal Compiler version 1.9.3 [2004/02/02] for i386" TOutputFilter: "Copyright (c) 1993-2004 by Florian Klaempfl" TOutputFilter: "Target OS: Linux for i386" TOutputFilter: "Compiling /home/ger/Lazarus/BoardDesign/project1.lpr" TOutputFilter: "Linking /home/ger/Lazarus/BoardDesign/project1" TOutputFilter: "15 Lines compiled, 1.8 sec" [TCompiler.Compile] end [TDebugManager.DoInitDebugger] A [TCmdLineDebugger] Debug PID: 4753 Gdk-ERROR **: BadWindow (invalid Window parameter)   serial 18893 error_code 3 request_code 10 minor_code 0 ---------------------------------------------------------------------- Anonymous · 2004-02-22 01:39 Problem solved. It's not Lazarus or fpc, it's my machine (Athlon 1.1 Ghz) that's going awry. I tried it on an Intel 800 Mhz and a 2.8 Ghz and it worked okay on both. Ger ---------------------------------------------------------------------- Marc · 2004-02-22 18:36 That badwindow now and then pops up. It is something with debugging, gdb, X and lazarus I'm investigating it, however the problem disapeared here (no clue why) ---------------------------------------------------------------------- Anonymous · 2004-02-23 09:18 My workstation is a NIS-client and I suspect that to be the reason. After disabling NIS I reinstalled Lazarus and FPC, they both work okay now. Will try to track down what the problem is because NIS is the standard installation here. Ger