Recent

Author Topic: Installing lnet on osx  (Read 7576 times)

arestivo

  • Newbie
  • Posts: 2
Installing lnet on osx
« on: February 16, 2007, 12:44:30 am »
Hi,

I'm trying to install the lnet package on osx and I'm getting the following error:

Quote
Target OS: Darwin for PowerPC
Compiling lserver.pas
Compiling /usr/local/share/lazarus/components/lnet-0.4.0/lib/lNet.pas
Compiling /usr/local/share/lazarus/components/lnet-0.4.0/lib/lEvents.pas
Fatal: Can't find unit BSD
Fatal: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled)
make[3]: *** [all] Error 1


I already tried installing from the IDE and from the command line. Thanks for any help.

Edit: I'm using FPC 2.0.4 and Lazarus 0.9.20

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Installing lnet on osx
« Reply #1 on: February 16, 2007, 03:27:25 am »
Quote from: "arestivo"
Hi,

I'm trying to install the lnet package on osx and I'm getting the following error:

Quote
Target OS: Darwin for PowerPC
Compiling lserver.pas
Compiling /usr/local/share/lazarus/components/lnet-0.4.0/lib/lNet.pas
Compiling /usr/local/share/lazarus/components/lnet-0.4.0/lib/lEvents.pas
Fatal: Can't find unit BSD
Fatal: Compilation aborted
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled)
make[3]: *** [all] Error 1


I already tried installing from the IDE and from the command line. Thanks for any help.

Edit: I'm using FPC 2.0.4 and Lazarus 0.9.20



BSD doesn't appear to be precompiled with FPC. bsd.pas is located in /usr/local/share/fpcsrc/rtl/bsd. You'll need to compile it yourself.

arestivo

  • Newbie
  • Posts: 2
RE: Re: Installing lnet on osx
« Reply #2 on: February 16, 2007, 05:51:26 am »
Phil,

Thanks for the quick reply. That really seems to be the problem. However I have no idea how to compile the BSD unit as that directory doesn't have a Makefile. I tried something like this:

Quote
/usr/local/bin/ppcppc -dNOMOUSE -dFPC_USE_LIBC -Fi../inc -Fi../powerpc -Fi../unix -Fi../bsd -Fipowerpc -Fi../darwin/powerpc -FE. -FU../../rtl/units/powerpc-darwin -dpowerpc bsd.pas


But get somehting like:

Quote
Free Pascal Compiler version 2.0.4 [2006/08/21] for powerpc
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling bsd.pas
Fatal: Can't find unit SysCall
Fatal: Compilation aborted


I'm fairly new to lazarus and fpc so please bear with me :-)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: Installing lnet on osx
« Reply #3 on: February 16, 2007, 03:34:17 pm »
Quote from: "arestivo"
Phil,

Quote
/usr/local/bin/ppcppc -dNOMOUSE -dFPC_USE_LIBC -Fi../inc -Fi../powerpc -Fi../unix -Fi../bsd -Fipowerpc -Fi../darwin/powerpc -FE. -FU../../rtl/units/powerpc-darwin -dpowerpc bsd.pas




You might try uing -Fu instead of -Fi.

 

TinyPortal © 2005-2018