Recent

Author Topic: Yet lglib compiling error  (Read 7757 times)

sepehr

  • Newbie
  • Posts: 3
Yet lglib compiling error
« on: December 19, 2006, 10:36:10 am »
hey guys,

i have installed lazarus  on  64bit suse linux 10.2   and i have provided all packages mentioned here:
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=1300&highlight=lglib
but i stil get this error when compiling
/usr/bin/ld: skipping incompatible /opt/gnome/lib//libglib.so when searching for -lglib
/usr/bin/ld: skipping incompatible /opt/gnome/lib//libglib.a when searching for -lglib
/usr/bin/ld: cannot find -lglib
project1.lpr(19) Error: Error while linking


please show me the ropes

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2674
RE: Yet lglib compiling error
« Reply #1 on: December 19, 2006, 11:07:33 am »
I think this is a 32 vs 64 bit problem.
Its  not clear to me if you are using a 32bit fpc or a 64bit fpc, but I guess the libs found are 64bit or 32bit.
I don't know if there exists something like /opt/gnome/lib64 (or32), but if so, I would suggest to add them to your fpc.cfg.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

sepehr

  • Newbie
  • Posts: 3
Yet lglib compiling error
« Reply #2 on: December 19, 2006, 12:42:16 pm »
i am using 64 bit fpc
/opt/gnome/lib64  exists too

Quote

I would suggest to add them to your fpc.cfg.

i do have /opt/gnome/lib64 but i can't get what u mean,add what to my fpc.cfg file?


thanks in advance

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2674
Yet lglib compiling error
« Reply #3 on: December 19, 2006, 01:32:39 pm »
somewhere in your /etc/fpc.cfg you have a line like -Fl/some/path/there
Add another line -Fl/opt/gnome/lib64

I'm not really into 64 vs 32, but it might also be a ld config issue (look in /etc/ld.so.conf)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

sepehr

  • Newbie
  • Posts: 3
Yet lglib compiling error
« Reply #4 on: December 19, 2006, 04:15:47 pm »
thaaaaaaaaaaaaaaaaaaaaaaanks man!   :lol: wow! it's working fine now! i just compiled my first  :D thanks again

ChasH

  • Newbie
  • Posts: 2
Yet lglib compiling error
« Reply #5 on: December 24, 2006, 05:02:30 pm »
Quote from: "Marc"
somewhere in your /etc/fpc.cfg you have a line like -Fl/some/path/there
Add another line -Fl/opt/gnome/lib64

I'm not really into 64 vs 32, but it might also be a ld config issue (look in /etc/ld.so.conf)


I'm using Lazarus v0.9.20beta on SuSe 10.2 64bit...

Marc's suggestion solved the problems above but...:shock:

Mine also skips over /usr/lib/libgdk.so
I tried adding: -Fl/usr/lib64  to the fpc.cfg file with no luck

Actually there is no libgdk.so in that directory.

Should there be one there?

Zorba

  • Jr. Member
  • **
  • Posts: 77
Yet lglib compiling error
« Reply #6 on: December 24, 2006, 06:34:17 pm »
Quote from: "ChasH"
Quote from: "Marc"
somewhere in your /etc/fpc.cfg you have a line like -Fl/some/path/there
Add another line -Fl/opt/gnome/lib64

I'm not really into 64 vs 32, but it might also be a ld config issue (look in /etc/ld.so.conf)


I'm using Lazarus v0.9.20beta on SuSe 10.2 64bit...

Marc's suggestion solved the problems above but...:shock:

Mine also skips over /usr/lib/libgdk.so
I tried adding: -Fl/usr/lib64  to the fpc.cfg file with no luck

Actually there is no libgdk.so in that directory.

Should there be one there?


Do you have libgdk installed on your system at all?

If you don't have it installed then you need to install it, at least that has been my experience but I'm on a 32bit system.

eric

  • Sr. Member
  • ****
  • Posts: 267
Yet lglib compiling error
« Reply #7 on: December 24, 2006, 08:14:00 pm »
You need to install gtk-devel and gdk-pixbuf-devel.

Eric

ChasH

  • Newbie
  • Posts: 2
Yet lglib compiling error
« Reply #8 on: December 25, 2006, 01:19:50 am »
Quote from: "eric"
You need to install gtk-devel and gdk-pixbuf-devel.

Eric


Thank you!  :D

That was the final piece that I needed.

 

TinyPortal © 2005-2018