Hi Guys,
Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process of rebuilding Lazarus and the LCL using the new FPC RTL?
Regards,
Nino

Mailing lists / fpc-pascal / 2009-06
8 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi Guys,
Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process of rebuilding Lazarus and the LCL using the new FPC RTL?
Regards,
Nino
Install your new FPC. And then see here
http://wiki.lazarus.freepascal.org/Getting_Lazarus
Mattias
Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process…
Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process of rebuilding Lazarus and the LCL using the new FPC RTL?
Load your previous Lazarus IDE. Then do: "Tools > Build Lazarus"
This only works if changes are made to the Lazarus IDE, but will fail if the FPC RTL is rebuilt because the LCL must first be rebuilt to use the new FPC RTL and only then can Lazarus (IDE) be rebuilt.
Attempting to build Lazarus as per the above causes the compiler to halt with a "checksum changed" error on the first changed unit it encounters.
By the way, I'm trying to rebuild the Linux version on Linux.
Regards,
Nino
Attempting to build Lazarus as per the above causes the compiler to halt with a "checksum changed" error on the first changed unit it encounters.
Then use the "Tools > Configure Build Lazarus > Advanced tab" dialog. Check the "clean" checkbox and rebuild.
I often make changes to the RTL and FCL. Many of my packages which are compiled into the Lazarus IDE depend on the FCL. I also use Linux and this process works perfectly for me.
Regards,
- Graeme -
_______________________________________________________ fpGUI - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/
Graeme Geldenhuys wroteI often make changes to the RTL and FCL. Many of my packages which are compiled into the Lazarus IDE depend on the FCL. I also use Linux and this process works perfectly for me.
I'm off to a meeting. Will try later today.
Thanks Graeme.
Regards,
Nino
Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process…
As the saying goes "Assumption is the mother of all ...."
I was under the impression that I was rebuilding the complete FPC RTL, but in reality it was not the case.
For the benefit of anyone out there that may not yet know how to do a RTL rebuild and is interested, I found the following method will no doubt make sure that the complete FPC RTL is rebuilt and used in the rebuilding of Lazarus and its LCL. (may be a pun in there somewhere)
Following, is as found on my system. Yours may be different.
from: /usr/share/fpcsrc/rtl run: make clean all install from: /usr/share/fpcsrc/packages run: make clean all install
The new RTL files will be copied to:
/usr/local/lib/fpc/2.2.5/units/i386-linux
Next, copy the files in the above directory (/usr/../units/i386-linux) into /usr/lib/fpc/2.2.5/units/i386-linux
Getting Lazarus to use the new FPC RTL:
Allow Lazarus to rebuild the LCL and itself from within Lazarus or use Lazarus's make files.
That's it.
Regards,
Nino
These paths look like the installation paths of debian or rpm packages. Doing a "make install" will overwrite the files of your package system. The next remove or update will probably not do what you want.
If you don't want to use the fpc/lazarus binary packages, then don't install them.
Install fpc via the tar, then checkout both svn and make install them - just like most other linux software.
It is explained in the link I gave.
Mattias