Recent

Author Topic: Can't find -lgtk  (Read 7553 times)

cybermonkey342

  • Guest
Can't find -lgtk
« on: April 30, 2004, 07:22:07 pm »
I just installed SuSE 9.1 and I'm trying to use Lazarus. Seems that everything works fine, but the problem with SuSE: can't find lgtk! I changed the fpc.cfg just like posted in the FAQs, but the error still occurs.
Maybe anyone can help me with this?

Anonymous

  • Guest
Can't find -lgtk
« Reply #1 on: May 02, 2004, 10:33:11 am »
I just solved the problem myself! I copied the necessary library files to the usr/lib/ directory. Now everything works fine.

mschnell

  • Full Member
  • ***
  • Posts: 131
    • http://www.lumino.de
Can't find -lgtk
« Reply #2 on: May 03, 2004, 09:12:16 am »
Could you tell a -quite- newby whcih library files exactly ?

-Michael

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Can't find -lgtk
« Reply #3 on: May 03, 2004, 10:27:02 am »
Rainer Hamann reported on the lazarus mailing list:
Quote

I added the line -Fl/opt/gnome/lib to /etc/fpc.cfg and linking works fine!

cybermonkey342

  • New Member
  • *
  • Posts: 42
    • Home of EGSL interpreter
Can't find -lgtk
« Reply #4 on: May 03, 2004, 11:03:21 am »
Well, I've seen that post, and I changed the fpc.cfg, too, but nothing happened... :-(
I copied (you must be logged in as ROOT) the following files: opt/gnome/lib/gtk and /gtk2 the whole directories, any library that has a filename which starts with "libgtk" AND "libgdk" in opt/gnome/lib. Just copy them to usr/lib/ . (And don't forget to create the directories gtk and gtk2!)
I did it with Konquerer logged in as ROOT. Just drag and drop the files... ;-)))
--
Best regards

cybermonkey342

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Can't find -lgtk
« Reply #5 on: May 03, 2004, 11:54:18 am »
You don't have to (and you shouldn't) copy those files

If you get this message:
1) check that the lib path is passed to the compiler (as in the previous messge)
2) make sure you have installed the gtk-devel packages (or create a symlink the libgtk.x.y.x.so -> libgtk.so)

this is a FAQ btw.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

cybermonkey342

  • New Member
  • *
  • Posts: 42
    • Home of EGSL interpreter
Can't find -lgtk
« Reply #6 on: May 03, 2004, 08:17:05 pm »
Yeah, I know I shouldn't  do that... but it works for me and thats enough. (Maybe another person really shouldn't do that, because you water down your distribution...)
--
Best regards

cybermonkey342

 

TinyPortal © 2005-2018