Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Installation
»
Linux
»
Cannot find -lgtk (when linking)
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How many lines is too man...
by
440bx
[
Today
at 12:14:55 pm]
Update a table with an Au...
by
Zvoni
[
Today
at 11:36:18 am]
[Feature Request]Add Larg...
by
MarkMLl
[
Today
at 11:08:25 am]
FreePascal/Lazarus docume...
by
MarkMLl
[
Today
at 10:03:46 am]
PasLLM - LLM Inference En...
by
domasz
[
Today
at 08:53:15 am]
Debian removes FPC/Lazaru...
by
MarkMLl
[
Today
at 08:28:12 am]
Variable initialization
by
440bx
[
Today
at 05:17:47 am]
Lazarus IDE built for LCL...
by
dbannon
[March 05, 2026, 11:52:07 pm]
Should TEdit.Clear cause ...
by
Bart
[March 05, 2026, 10:07:40 pm]
Reset doesn't open ReadOn...
by
eny
[March 05, 2026, 09:29:24 pm]
unit ProjectDescriptorTyp...
by
n7800
[March 05, 2026, 09:27:11 pm]
Interface problem
by
PascalDragon
[March 05, 2026, 09:22:57 pm]
bgraformatui.pas(26,12) W...
by
PascalDragon
[March 05, 2026, 09:05:02 pm]
FPC says file exists, Laz...
by
cdbc
[March 05, 2026, 05:06:05 pm]
Lazarus Bugfix Release 4....
by
uganof
[March 05, 2026, 03:04:05 pm]
Add Help to an Applicatio...
by
1HuntnMan
[March 05, 2026, 02:41:40 pm]
composition instead of in...
by
BildatBoffin
[March 05, 2026, 01:16:31 pm]
Is it me or is there some...
by
jamie
[March 05, 2026, 12:03:37 pm]
Lazarus 4.x - ZeosdBo
by
essence-ciel
[March 05, 2026, 08:29:57 am]
Fpcupdeluxe
by
DonAlfredo
[March 05, 2026, 08:22:12 am]
BGRAVirtualScreen - weird...
by
backprop
[March 05, 2026, 08:20:04 am]
Question about fpreport
by
ginoo
[March 05, 2026, 07:17:44 am]
Status of Fresnel Project...
by
dbannon
[March 05, 2026, 06:11:31 am]
https://live.freepascal.o...
by
PierceNg
[March 05, 2026, 05:15:59 am]
Lazarus Woes (4.2)
by
Martin_fr
[March 04, 2026, 09:22:32 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cannot find -lgtk (when linking) (Read 10535 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
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2661
Cannot find -lgtk (when linking)
«
Reply #1 on:
February 20, 2004, 01:14:13 pm »
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=PNphpBB2&file=viewtopic&t=146
Does it help you?
Logged
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
Logged
Marc
Administrator
Hero Member
Posts: 2673
Cannot find -lgtk (when linking)
«
Reply #3 on:
February 20, 2004, 05:36:31 pm »
is /opt/gnome/lib/ part of your fpc.cfg ?
Logged
//--
{$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
Logged
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
Logged
Marc
Administrator
Hero Member
Posts: 2673
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)
Logged
//--
{$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
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Installation
»
Linux
»
Cannot find -lgtk (when linking)
TinyPortal
© 2005-2018