Difference between revisions of "Installation Classic"

From Freepascal Amiga wiki
Jump to navigation Jump to search
m (case)
(link how to create vasm/vlink)
Line 22: Line 22:
 
* 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>)
 
* A freepascal compiler for this linux (Version = 3.0) (e.g. at Ubuntu/Debian <code lang=shell>apt-get install fpc</code>)
* You need a the amiga binutils (TODO: source/manual)
+
* You need a the amiga binutils, e.g. [[Cross binutils vasm/vlink]]
 
* Get the latest freepascal source
 
* Get the latest freepascal 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''

Revision as of 23:03, 16 May 2020

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
  • ixemul.library 48+ (check on Aminet)
  • binary release of FPC-m68k-Amiga

Installation

  • Unpack the archive file to a folder where you like to have the installation
  • Create an assign FreePascal: to the pp folder (for example in s:user-startup)
  • Add the binary location to path Freepascal:bin/m68k-amiga (for example in s:user-startup)
  • 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

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.

  • 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 apt-get install fpc)
  • You need a the amiga binutils, e.g. Cross binutils vasm/vlink
  • Get the latest freepascal 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.1.1.m68k-amiga.tar.gz
make zipinstall CPU_TARGET=m68k OS_TARGET=amiga
  • now you have a complete archive with the Amiga freepascal compiler with all units and some utilities