|
|
| | /usr/local/bin/fpc | | /usr/local/bin/fpc |
| | | | |
| − | If you are using another version instead then you may need to temporarily add it to the path so it is used in preference to any official version, by default you can do something like this to add the appropriate folder to the path temporarily: | + | If you are using another version or installed it to your home folder instead then you may need to temporarily add it to the path so it is used in preference to any official version, by default you can do something like this to add the appropriate folder to the path temporarily: |
| | | | |
| − | export PATH=$HOME/FreePascal/fpc/bin:$PATH | + | export PATH=$HOME/fpc-3.2.2/bin:$PATH |
| | | | |
| | | | |
| − | You should now download the sources of the FreePascal Ultibo edition from [https://github.com/ultibohub/FreePascal GitHub] and unzip the contents to the folder: | + | You should now download the sources of the FreePascal Ultibo edition from [https://github.com/ultibohub/FreePascal/tree/ultibo-3.2.2 GitHub] and unzip the contents to the folder: |
| | | | |
| | $HOME/ultibo/core/fpc | | $HOME/ultibo/core/fpc |
| | | | |
| − | After extracting the files rename the folder <code>FreePascal-ultibo</code> to <code>source</code> so the contents of the zip will be in <code>$HOME/ultibo/core/fpc/source</code> | + | After extracting the files rename the folder <code>FreePascal-ultibo-3.2.2</code> to <code>source</code> so the contents of the zip will be in <code>$HOME/ultibo/core/fpc/source</code> |
| | | | |
| | | | |
|
|
| | And finally extract the <code>units</code> folder to the location: | | And finally extract the <code>units</code> folder to the location: |
| | | | |
| − | $HOME/ultibo/core/fpc/lib/fpc/3.3.1 | + | $HOME/ultibo/core/fpc/lib/fpc/3.2.2 |
| | | | |
| | | | |
|
|
| | cp $HOME/ultibo/core/fpc/source/compiler/ppc386 $HOME/ultibo/core/fpc/bin/ppc386 | | cp $HOME/ultibo/core/fpc/source/compiler/ppc386 $HOME/ultibo/core/fpc/bin/ppc386 |
| | | | |
| − | Run the following to check that it shows as version 3.3.1 and lists <code>ultibo</code> under the supported targets. | + | Run the following to check that it shows as version 3.2.2 and lists <code>ultibo</code> under the supported targets. |
| | | | |
| | $HOME/ultibo/core/fpc/bin/fpc -i | | $HOME/ultibo/core/fpc/bin/fpc -i |
|
|
| | Use fpcmkcfg to create our default configuration file like this: | | Use fpcmkcfg to create our default configuration file like this: |
| | | | |
| − | $HOME/ultibo/core/fpc/bin/fpcmkcfg -d basepath=$HOME/ultibo/core/fpc/lib/fpc/3.3.1 -o $HOME/ultibo/core/fpc/bin/fpc.cfg | + | $HOME/ultibo/core/fpc/bin/fpcmkcfg -d basepath=$HOME/ultibo/core/fpc/lib/fpc/3.2.2 -o $HOME/ultibo/core/fpc/bin/fpc.cfg |
| | | | |
| | === Installing the arm-none-eabi Toolchain === | | === Installing the arm-none-eabi Toolchain === |
| | ---- | | ---- |
| | | | |
| − | A toolchain that provides various utilities for the ARM embedded development is needed so that applications can be cross compiled from i386 to ARM. There are many different options available but for the purpose of Ultibo we need a toolchain that is built for arm-none-eabi and the one shown below is known to work correctly. | + | A toolchain that provides various utilities for the ARM embedded development is needed so that applications can be cross compiled from i386 to ARM. There are many different options available but for the purpose of Ultibo we need a toolchain that is built for arm-none-eabi, under Debian a suitable toolchain is available as a package which can be installed like this: |
| | | | |
Exception encountered, of type "Error"