Recent

Author Topic: Cannot find -lgtk (when linking)  (Read 9872 times)

Ger

  • Guest
Cannot find -lgtk (when linking)
« on: February 20, 2004, 10:06:05 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page

Anonymous

  • Guest
Cannot find -lgtk (when linking)
« Reply #2 on: February 20, 2004, 05:22:53 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Cannot find -lgtk (when linking)
« Reply #3 on: February 20, 2004, 05:36:31 pm »
is /opt/gnome/lib/ part of your fpc.cfg ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Cannot find -lgtk (when linking)
« Reply #4 on: February 20, 2004, 08:41:46 pm »
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

  • Guest
Cannot find -lgtk (when linking)
« Reply #5 on: February 22, 2004, 02:39:21 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Cannot find -lgtk (when linking)
« Reply #6 on: February 22, 2004, 07:36:23 pm »
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)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Cannot find -lgtk (when linking)
« Reply #7 on: February 23, 2004, 10:18:28 am »
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

 

TinyPortal © 2005-2018