Difference between revisions of "Building from Source"

From Ultibo.org
Jump to: navigation, search
(Created page with "=== Building the Ultibo RTL === ---- === Building Free Pascal === ---- === Building Lazarus === ---- === Additional Information === ---- The information on this page is sp...")
 
Line 7: Line 7:
 
=== Building Lazarus ===
 
=== Building Lazarus ===
 
----
 
----
 +
 +
Building or rebuilding Lazarus follows almost exactly the instructions provided with the official sources. The changes made to Lazarus for the Ultibo edition relate mostly to adding and removing menu items and options that are not relevant to embedded development, some of the makefiles have also been modified to remove components and reduce the size of what is distributed.
 +
 +
You will need to add the modified Lazarus sources to your installation before you can build Lazarus, these can be downloaded from the [https://github.com/ultibohub/Lazarus Ultibo Lazarus] repository on GitHub. Either download the zip or clone the repository depending on your preference and then overlay the downloaded sources onto your Ultibo core installation.
 +
 +
Once you have the sources installed, open a command prompt and change to the directory where Ultibo core is installed:
 +
 +
cd C:\Ultibo\Core
 +
 +
Set the path to include the Free Pascal compiler version used by Ultibo core:
 +
 +
set path=C:\Ultibo\Core\fpc\3.1.1\bin\i386-Win32
 +
 +
Use make to build Lazarus and all the required components:
 +
 +
make clean all
 +
 +
Make will report any errors, otherwise once the build is completed the newly compiled version of Lazarus will be ready to use.
  
 
=== Additional Information ===
 
=== Additional Information ===

Revision as of 00:28, 29 January 2016

Building the Ultibo RTL


Building Free Pascal


Building Lazarus


Building or rebuilding Lazarus follows almost exactly the instructions provided with the official sources. The changes made to Lazarus for the Ultibo edition relate mostly to adding and removing menu items and options that are not relevant to embedded development, some of the makefiles have also been modified to remove components and reduce the size of what is distributed.

You will need to add the modified Lazarus sources to your installation before you can build Lazarus, these can be downloaded from the Ultibo Lazarus repository on GitHub. Either download the zip or clone the repository depending on your preference and then overlay the downloaded sources onto your Ultibo core installation.

Once you have the sources installed, open a command prompt and change to the directory where Ultibo core is installed:

cd C:\Ultibo\Core

Set the path to include the Free Pascal compiler version used by Ultibo core:

set path=C:\Ultibo\Core\fpc\3.1.1\bin\i386-Win32

Use make to build Lazarus and all the required components:

make clean all

Make will report any errors, otherwise once the build is completed the newly compiled version of Lazarus will be ready to use.

Additional Information


The information on this page is specific to building FPC and Lazarus on Windows but should be able to be modified to suit other platforms such as Linux. The links below provide more detailed information on building and installing FPC and Lazarus for users with advanced requirements.

  • Building Lazarus - Detailed information and examples for building and installing Lazarus and FPC on a variety of platforms.
  • Build FAQ - The official Free Pascal build FAQ with full details on how to build FPC for many platforms.
  • Cross Compiling - A guide to building FPC cross compilers for multiple platform combinations.