Recent

Author Topic: Help Needed: Error while linking  (Read 7318 times)

theARE

  • Newbie
  • Posts: 2
Help Needed: Error while linking
« on: February 13, 2004, 12:26:06 am »
Hi, heard about this project today, cant believe I hadent heard about it before! Anyway I'm installing it on Debian using alienized rpm's and after reading around a bit and solving a few different problems, I've almost got it working. The only problem I'm now getting is that on trying to compile something it gives out this error
TOutputFilter: "/usr/bin/ld: cannot find -lX11"
TOutputFilter: "project1.lpr(15) Error: Error while linking"
TOutputFilter: "Closing script ppas.sh"


I'm guessing that it has something to do with the correct X11 development packages either not being installed, or being in a different localion and needing a link to them, but I'm not sure. What such packages does Lazarus require , and where does it look for them in?

Or  am I wrong, and is their another cause for this?

I would appreciate any help anyone can offer.

Thanks

Full output of what i'm getting:

[TCompiler.Compile] CmdLine="/usr/bin/ppc386  -Rintel -S2cgi -CD -Ch8000000 -OG1p1 -gl -XD -vewnhi -l -Fu/usr/share/lazarus/lcl/units/ -Fu/usr/share/lazarus/lcl/units/gtk/ -Fu/usr/share/lazarus/packager/units/ -Fu. -dLCL /tmp/project1.lpr"
TOutputFilter: "Hint: Start of reading config file /etc/ppc386.cfg"
TOutputFilter: "Hint: End of reading config file /etc/ppc386.cfg"
TOutputFilter: "Free Pascal Compiler version 1.0.11 [2003/10/22] for i386"
TOutputFilter: "Copyright (c) 1993-2003 by Florian Klaempfl"
TOutputFilter: "Target OS: Linux for i386"
TOutputFilter: "Compiling /tmp/project1.lpr"
TOutputFilter: "syslinux.pp(5,1) Hint: Conditional I386 was set at startup in last compilation of syslinux.pp"
TOutputFilter: "linux.pp(6,13) Hint: Conditional I386 was set at startup in last compilation of linux.pp"
TOutputFilter: "math.pp(6,13) Hint: Conditional I386 was set at startup in last compilation of math.pp"
TOutputFilter: "gtkint.pp(6,13) Hint: Conditional GTK1 was set at startup in last compilation of gtkint.pp"
TOutputFilter: "gtkproc.pp(6,13) Hint: Conditional GTK1 was set at startup in last compilation of gtkproc.pp"
TOutputFilter: "Compiling unit1.pas"
TOutputFilter: "Assembling unit1"
TOutputFilter: "Assembling project1"
TOutputFilter: "Linking /tmp/project1"
TOutputFilter: "/usr/bin/ld: cannot find -lX11"
TOutputFilter: "project1.lpr(15) Error: Error while linking"
TOutputFilter: "Closing script ppas.sh"

neli

  • Jr. Member
  • **
  • Posts: 86
Help Needed: Error while linking
« Reply #1 on: February 13, 2004, 09:13:34 am »
apt-get install xlibs-dev

HTH,

Micha.

theARE

  • Newbie
  • Posts: 2
Help Needed: Error while linking
« Reply #2 on: February 15, 2004, 04:43:00 pm »
thanks, I thought it was something like that. All seems to be working now.

kees

  • Guest
Re: Help Needed: Error while linking
« Reply #3 on: February 17, 2004, 12:05:52 pm »
Isn't it possible to use the shared libraries?
What to change in the makefile to accomplish this?

 

TinyPortal © 2005-2018