Difference between revisions of "Installation Classic"
Jump to navigation
Jump to search
m (link name) |
(Added instruction for retrieving source via git(lab)) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | == Installation of | + | == Installation of Free Pascal on a Amiga classic (68k) machine == |
=== You need: === | === You need: === | ||
Line 6: | Line 6: | ||
* OS 3.0 or better or AROS68k | * OS 3.0 or better or AROS68k | ||
* much RAM | * much RAM | ||
− | + | * binary release of [https://freepascal.org/down/m68k/amiga.html Free Pascal for 68k Amiga] | |
− | * binary release of [ | ||
=== Installation === | === Installation === | ||
− | * Unpack the archive file to a | + | * Unpack the archive file to a temp folder (not RAM: because usually it will be too big) |
− | + | * Start the installer follow instructions | |
− | * | + | * Restart Amiga |
− | * | ||
=== Crosscompile from Linux === | === Crosscompile from Linux === | ||
− | + | ==== Docker container ==== | |
− | * A working | + | There is a ready to use docker container with Free Pascal and Lazarus |
− | * A | + | |
− | * You need a the amiga binutils | + | * Download archive [http://www.alb42.de/prgs/CrossAmigaLazarus.tar.gz] |
− | * Get the latest | + | * follow instructions inside the archive |
+ | |||
+ | ==== Create cross compiler ==== | ||
+ | |||
+ | This section describe how the Free Pascal compiler with all units can be created under a linux system. This could be important if you start without a working Free Pascal at Amiga. | ||
+ | |||
+ | * A working Linux system (CPU is not important, i386 and x64 tested other platform might work) | ||
+ | * A Free Pascal compiler for your Linux (atm. Version = 3.2) (e.g. at Ubuntu/Debian <code lang=shell>apt-get install fpc</code>) | ||
+ | * You need a the amiga binutils, e.g. [[Cross binutils vasm/vlink]] | ||
+ | * Get the latest Free Pascal source | ||
** via svn: ''svn checkout [http://svn.freepascal.org/svn/fpc/trunk http://svn.freepascal.org/svn/fpc/trunk] fpc'' | ** via svn: ''svn checkout [http://svn.freepascal.org/svn/fpc/trunk http://svn.freepascal.org/svn/fpc/trunk] fpc'' | ||
− | ** via zip: from the [http://freepascal.org/develop.var | + | ** via git: ''git clone [https://gitlab.com/freepascal.org/fpc/source.git https://gitlab.com/freepascal.org/fpc/source.git] fpc'' |
+ | ** via zip: from the [http://freepascal.org/develop.var Free Pascal Development Page] | ||
* A folder ''fpc'' is created with the sources inside, change to the folder | * A folder ''fpc'' is created with the sources inside, change to the folder | ||
<source lang=text> | <source lang=text> | ||
cd fpc | cd fpc | ||
</source> | </source> | ||
− | * Now everything is set for make the compiler, we choose <code>zipinstall</code> to create directly a packed version <code lang=shell>fpc-3. | + | * Now everything is set for make the compiler, we choose <code>zipinstall</code> to create directly a packed version <code lang=shell>fpc-3.3.1.m68k-amiga.tar.gz</code> |
<source lang=text> | <source lang=text> | ||
make zipinstall CPU_TARGET=m68k OS_TARGET=amiga | make zipinstall CPU_TARGET=m68k OS_TARGET=amiga | ||
</source> | </source> | ||
− | * now you have a complete archive with the Amiga | + | : In case opting for the vasm/vlink binutils (instead of the gnu binutils): |
+ | <source lang=text> | ||
+ | make zipinstall CPU_TARGET=m68k OS_TARGET=amiga CROSSOPT="-XV -Avasm" | ||
+ | </source> | ||
+ | * now you have a complete archive with the Amiga Free Pascal compiler with all units and some utilities |
Latest revision as of 17:39, 23 February 2023
Installation of Free Pascal on a Amiga classic (68k) machine
You need:
- an Amiga or emulated UAE
- 68020 or better
- OS 3.0 or better or AROS68k
- much RAM
- binary release of Free Pascal for 68k Amiga
Installation
- Unpack the archive file to a temp folder (not RAM: because usually it will be too big)
- Start the installer follow instructions
- Restart Amiga
Crosscompile from Linux
Docker container
There is a ready to use docker container with Free Pascal and Lazarus
- Download archive [1]
- follow instructions inside the archive
Create cross compiler
This section describe how the Free Pascal compiler with all units can be created under a linux system. This could be important if you start without a working Free Pascal at Amiga.
- A working Linux system (CPU is not important, i386 and x64 tested other platform might work)
- A Free Pascal compiler for your Linux (atm. Version = 3.2) (e.g. at Ubuntu/Debian
apt-get install fpc
) - You need a the amiga binutils, e.g. Cross binutils vasm/vlink
- Get the latest Free Pascal source
- via svn: svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
- via git: git clone https://gitlab.com/freepascal.org/fpc/source.git fpc
- via zip: from the Free Pascal Development Page
- A folder fpc is created with the sources inside, change to the folder
cd fpc
- Now everything is set for make the compiler, we choose
zipinstall
to create directly a packed versionfpc-3.3.1.m68k-amiga.tar.gz
make zipinstall CPU_TARGET=m68k OS_TARGET=amiga
- In case opting for the vasm/vlink binutils (instead of the gnu binutils):
make zipinstall CPU_TARGET=m68k OS_TARGET=amiga CROSSOPT="-XV -Avasm"
- now you have a complete archive with the Amiga Free Pascal compiler with all units and some utilities