|
|
| | === Building the Ultibo RTL === | | === Building the Ultibo RTL === |
| | ---- | | ---- |
| | + | |
| | + | <span style="color: red">'''Note: Most of the steps described below are now handled automatically by the Ultibo RTL Builder, simply select Build Ultibo RTL ... from the Tools menu in Lazarus and follow the instructions.''' |
| | | | |
| | Ultibo core is actively being developed with new features and bug fixes added regularly. New releases of the installer download will be made available regularly but not as frequently as changes to the Ultibo core source itself, being open source also means that you have the opportunity to modify the source and experiment with ideas and changes (you might even choose to contribute some of those changes). | | Ultibo core is actively being developed with new features and bug fixes added regularly. New releases of the installer download will be made available regularly but not as frequently as changes to the Ultibo core source itself, being open source also means that you have the opportunity to modify the source and experiment with ideas and changes (you might even choose to contribute some of those changes). |
|
|
| | The latest version of the Ultibo core source is always available on GitHub in the [https://github.com/ultibohub/Core Ultibo Core] repository and can be downloaded as a zip file, or if you are comfortable with using git you can clone your own copy of it. | | The latest version of the Ultibo core source is always available on GitHub in the [https://github.com/ultibohub/Core Ultibo Core] repository and can be downloaded as a zip file, or if you are comfortable with using git you can clone your own copy of it. |
| | | | |
| − | The folder structure of the repository is exactly the same as what is used by the Ultibo core installation so you can simply unzip the downloaded file and copy it over the top of what was installed. The repository starts at the <code>source</code> folder, if you look at your installation you will find the same folder at <code>C:\Ultibo\Core\fpc\3.1.1</code> so all you need to do is copy the contents of the zip to this folder and it will overwrite the current version with the new one. | + | The folder structure of the repository is exactly the same as what is used by the Ultibo core installation so you can simply unzip the downloaded file and copy it over the top of what was installed. The repository starts at the <code>source</code> folder, if you look at your installation you will find the same folder at <code>C:\Ultibo\Core\fpc\3.2.2</code> so all you need to do is copy the contents of the zip to this folder and it will overwrite the current version with the new one. |
| | | | |
| | | | |
|
|
| | ---- | | ---- |
| | | | |
| − | The version of Free Pascal (FPC) included with Ultibo core has been modified to add the Ultibo target (-Tultibo) and to enable linking of the executable produced into a form that is suitable for use on Raspberry Pi. The complete source of the modified FPC can be found on GitHub in the [https://github.com/ultibohub/FPC Ultibo FPC] repository and can be downloaded (zip or clone) and overlayed onto the Ultibo core installation to allow rebuilding of FPC. | + | The version of Free Pascal (FPC) included with Ultibo core has been modified to add the Ultibo target (-Tultibo) and to enable linking of the executable produced into a form that is suitable for use on Raspberry Pi. The complete source of the modified FPC can be found on GitHub in the [https://github.com/ultibohub/FreePascal Ultibo FreePascal] repository and can be downloaded (zip or clone) and overlayed onto the Ultibo core installation to allow rebuilding of FPC. |
| | | | |
| | These instructions only relate to building the ARM cross compiler and use the native compiler installed with Ultibo core to perform the build, you can find instructions in the Free Pascal Wiki for building a native compiler for your platform if required. | | These instructions only relate to building the ARM cross compiler and use the native compiler installed with Ultibo core to perform the build, you can find instructions in the Free Pascal Wiki for building a native compiler for your platform if required. |
|
|
| | Once you have the sources installed, open a command prompt and change to the directory where the FPC sources for Ultibo core are installed: | | Once you have the sources installed, open a command prompt and change to the directory where the FPC sources for Ultibo core are installed: |
| | | | |
| − | cd C:\Ultibo\Core\fpc\3.1.1\source | + | cd C:\Ultibo\Core\fpc\3.2.2\source |
| | | | |
| | Set the path to include the Free Pascal compiler version used by 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 | + | set path=C:\Ultibo\Core\fpc\3.2.2\bin\i386-Win32 |
| | | | |
| | Delete any instances of fpmake.exe otherwise make will fail with an error (they will be recreated as part of the build): | | Delete any instances of fpmake.exe otherwise make will fail with an error (they will be recreated as part of the build): |
|
|
| | Do a make distclean to remove files leftover after previous builds: | | Do a make distclean to remove files leftover after previous builds: |
| | | | |
Exception encountered, of type "Error"