Recent

Author Topic: Recomplile the RTL for 2.5.1 - How to do this ?  (Read 7608 times)

delphian

  • New Member
  • *
  • Posts: 39
Recomplile the RTL for 2.5.1 - How to do this ?
« on: April 08, 2010, 02:47:10 pm »
Guys i need to make a small change to the rtl in 2.5.1 . i understand i need to rebuild the FPC to do this , i'm using win64 as the OS and x86_64 aswell , how do it do this ? am right in saying i need to recompile the exe for FPC ( fpc.exe ) from the 2.5.1 source complier directory ?

Delphian

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11361
  • Debugger - SynEdit - and more
    • wiki
Re: Recomplile the RTL for 2.5.1 - How to do this ?
« Reply #1 on: April 08, 2010, 03:42:56 pm »
Depends: if your change affects the compiler, yes, you need to rebuild fpc.exe.
If the change affects how your own app runs => you only need to rebuild the RTL (and packages).

In practise there is little difference, you run make all, and it does both.

I have my fpc as a checkout from SVN, but it should be the same anyway.

To compile the RTL (and/or fpc itself) you need a working compiler. fpc 2.4.0 prefered, but 2.5.1 may work (but does not always).

change into the fpc directory (where the sources  are)

path_to_make\make.exe clean distclean

path_to_make\make.exe all   FPC=c:\path_to_fpc_orPPC386\fpc.exe
  or put in whatever option you want it compiled with
  path_to_make\make.exe all  -OPT="xxx"

path_to_make\make.exe  install  INSTALL_PREFIX=c:\path_to_your_installation  COPYTREE=echo

You may have to delete the example directory of your previous installation, before you an install.

delphian

  • New Member
  • *
  • Posts: 39
Re: Recomplile the RTL for 2.5.1 - How to do this ?
« Reply #2 on: April 09, 2010, 06:41:51 am »
Thanks Martin

I've got FPC recompliled , i think i've done the bits to get lazarus done but when i got complile my app it complains as if the RTL hasnt been changed. ( i copied the new fpc into my lazarus dir where it belongs , checked the date to made sure i grabbed the correct one and also checked activeX.pp which i have changed in both packages\winunits-base\src in the source dir from the compliler for 2.5.1 & where it is in lazarus..)

any clues ?


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11361
  • Debugger - SynEdit - and more
    • wiki
Re: Recomplile the RTL for 2.5.1 - How to do this ?
« Reply #3 on: April 09, 2010, 01:29:49 pm »
checked activeX.pp which i have changed in both packages\winunits-base\src in the source dir from the compliler for 2.5.1 & where it is in lazarus..)

activeX.pp doesn't matter. you need activeX.ppu

When you made the compiler, it should have recompiled the RTL too, and created all ppu files.

When you compile a project (or even Lazarus itself), it compiles using the ppu files.


 

TinyPortal © 2005-2018