Difference between revisions of "Installation OS4"

From Freepascal Amiga wiki
Jump to navigation Jump to search
m (m68k->powerpc)
(changes for new installer 3.2+, docker introduced)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
* OS 4.0 or better
 
* OS 4.0 or better
 
* much RAM
 
* much RAM
* official AmigaOS4 SDK
+
* binary release of [https://freepascal.org/down/powerpc/amigaos.html Free Pascal for PowerPC Amiga]
* binary release of [http://blog.alb42.de/fpc-amigaos-4/ FPC-AmigaOS4]
 
  
 
=== Installation ===
 
=== Installation ===
  
* Unpack the archive file to a folder where you like to have the installation
+
* Unpack the archive file to a temp folder (not RAM: because usually it will be too big)
* Create an assign FreePascal: to the ''pp'' folder (for example in s:user-startup)
+
* Start the installer follow instructions
* Add the binary location to path ''Freepascal:bin/powerpc-amiga'' (for example in s:user-startup)
+
* Restart Amiga
* if you do not want to create an assign you can also edit the ''fpc.cfg'' and ''fp.cfg'' and add your personal path directly there
 
  
 
=== Crosscompile from Linux ===
 
=== Crosscompile from Linux ===
  
This section describe how the freepascal 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.
+
==== Docker container ====
 +
 
 +
There is a ready to use docker container with Free Pascal and Lazarus
 +
 
 +
* Download archive [http://www.alb42.de/prgs/CrossAmigaLazarus.tar.gz]
 +
* 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 working linux system (CPU is not important, i386 and x64 tested other platform might work)
* A freepascal compiler for this linux (Version = 3.0) (e.g. at Ubuntu/Debian <code lang=shell>apt-get install fpc</code>)
+
* Latest stable 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 AmigaOS4 binutils (TODO: source/manual)
+
* You need a the AmigaOS4 binutils e.g. [[Cross binutils vasm/vlink]]
* Get the latest freepascal source
+
* 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 Freepascal Development Page]
 
** via zip: from the [http://freepascal.org/develop.var Freepascal Development Page]
Line 29: Line 36:
 
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.1.1.powerpc-amiga.tar.gz</code>
+
* 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.powerpc-amiga.tar.gz</code>
 
<source lang=text>
 
<source lang=text>
 
make zipinstall CPU_TARGET=powerpc OS_TARGET=amiga
 
make zipinstall CPU_TARGET=powerpc OS_TARGET=amiga
 
</source>
 
</source>
 +
: In case opting for the vasm/vlink binutils (instead of the gnu binutils):
 +
<source lang=text>
 +
make zipinstall CPU_TARGET=powerpc OS_TARGET=amiga CROSSOPT="-XV -Avasm"
 +
</source>
 +
 
* now you have a complete archive with the Amiga freepascal compiler with all units and some utilities
 
* now you have a complete archive with the Amiga freepascal compiler with all units and some utilities

Latest revision as of 19:31, 9 January 2021

Installation of Free Pascal on a AmigaOS 4 machine

You need:

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)
  • Latest stable Free Pascal compiler for your Linux (atm. Version = 3.2) (e.g. at Ubuntu/Debian apt-get install fpc)
  • You need a the AmigaOS4 binutils e.g. Cross binutils vasm/vlink
  • Get the latest Free Pascal source
  • 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 version fpc-3.3.1.powerpc-amiga.tar.gz
make zipinstall CPU_TARGET=powerpc OS_TARGET=amiga
In case opting for the vasm/vlink binutils (instead of the gnu binutils):
make zipinstall CPU_TARGET=powerpc OS_TARGET=amiga CROSSOPT="-XV -Avasm"
  • now you have a complete archive with the Amiga freepascal compiler with all units and some utilities