* * *

Author Topic: FPC and Lazarus  (Read 2533 times)

Paolo_R

  • New member
  • *
  • Posts: 8
FPC and Lazarus
« on: June 28, 2011, 05:24:26 am »
I've just installed FPC, whose latest version is 2.4.4

I've also installed Lazarus which has created a sub-folder containing FPC version 2.4.2

Can I use the 2.4.4 version from within Lazarus by changing the Compiler path and Make path in Lazarus' Environment|IDE Options?

TIA

Zoran

  • Hero Member
  • *****
  • Posts: 522
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FPC and Lazarus
« Reply #1 on: June 28, 2011, 07:10:07 am »
Yes, but then, there are two more paths:

1. Download fpc sources 2.4.4 and extract it somewhere. Then adjust the sources path.

2. Check GDB path (go to Enviroment-Options-Debugger). If it points to somewhere under old fpc 2.4.2 path, then change it to path under 2.4.4).

Paolo_R

  • New member
  • *
  • Posts: 8
Re: FPC and Lazarus
« Reply #2 on: June 28, 2011, 08:18:46 am »
Zoran: thank you. Just as a matter of interest, why is the FPC source code required to available?

Zoran

  • Hero Member
  • *****
  • Posts: 522
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FPC and Lazarus
« Reply #3 on: June 28, 2011, 05:24:43 pm »
Zoran: thank you. Just as a matter of interest, why is the FPC source code required to available?

I beleive that I read somewhere that it is only needed for code completition to work corectly in editor.

JD

  • Hero Member
  • *****
  • Posts: 639
Re: FPC and Lazarus
« Reply #4 on: June 28, 2011, 07:03:00 pm »
Zoran: thank you. Just as a matter of interest, why is the FPC source code required to available?

I beleive that I read somewhere that it is only needed for code completition to work corectly in editor.

It also helps those of us who like to take a peek at the source code.  :D

Paolo_R

  • New member
  • *
  • Posts: 8
Re: FPC and Lazarus
« Reply #5 on: June 28, 2011, 11:33:32 pm »
I beleive that I read somewhere that it is only needed for code completition to work corectly in editor.

Ah, I see. Thank you.

Paolo_R

  • New member
  • *
  • Posts: 8
Re: FPC and Lazarus
« Reply #6 on: June 28, 2011, 11:34:48 pm »
It also helps those of us who like to take a peek at the source code.  :D

Indeed!

Zoran

  • Hero Member
  • *****
  • Posts: 522
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FPC and Lazarus
« Reply #7 on: June 28, 2011, 11:47:37 pm »
Hm... In Lazarus menu there is "Rescan FPC source directory" command (in 0.9.30 it is under Enviroment menu item, in trunk version it is moved to Tools).

Perhaps now, when you changed FPC source directory, this rescan might be needed. I don't know what it actually is, but do it just in case. ;)

Bart

  • Hero Member
  • *****
  • Posts: 791
    • Bart en Mariska's Webstek
Re: FPC and Lazarus
« Reply #8 on: June 29, 2011, 12:15:44 am »
AFAIK You'll have to rebuild Lazarus (or at least the LCL) before you can build any programs or you will get the "cannot find unit ..." error.
(The ppu's you use need to be the same version as the compiler you use.)

Bart

Zoran

  • Hero Member
  • *****
  • Posts: 522
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: FPC and Lazarus
« Reply #9 on: June 29, 2011, 09:47:23 am »
AFAIK You'll have to rebuild Lazarus (or at least the LCL) before you can build any programs or you will get the "cannot find unit ..." error.
(The ppu's you use need to be the same version as the compiler you use.)

Bart

Of course I assumed rebuilding Lazarus, I should have mentioned it!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads