Difference between revisions of "Installation MorphOS"

From Freepascal Amiga wiki
Jump to: navigation, search
(Crosscompile from Linux: link to Cross MorphOS Binutils)
(Crosscompile from Linux: better instructions for linux crossinstaller)
Line 21: Line 21:
 
* 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 MorphOS binutils (TODO: source/manual [[Cross MorphOS binutils]])
+
* You need a the MorphOS binutils (How to create [[Cross MorphOS binutils]])
 +
 
 
* 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''
 
** via zip: from the [http://freepascal.org/develop.var Freepascal Development Page]
 
** via zip: from the [http://freepascal.org/develop.var Freepascal 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.1.1.powerpc-morphos.tar.gz</code>
+
* make the compiler, e.g. <code>zipinstall</code> to create directly a packed version <code lang=shell>fpc-3.3.1.powerpc-morphos.tar.gz</code>
 
<source lang=text>
 
<source lang=text>
 
make zipinstall CPU_TARGET=powerpc OS_TARGET=morphos
 
make zipinstall CPU_TARGET=powerpc OS_TARGET=morphos
 
</source>
 
</source>
* now you have a complete archive with the MorphOS Free Pascal compiler with all units and some utilities
+
* copy the archive to your MorphOS and replace the binaries and units
 +
* make the cross compiler e.g. <code>crossall</code> and install it
 +
<source lang=text>
 +
make crossall CPU_TARGET=powerpc OS_TARGET=morphos
 +
sudo make crossinstall CPU_TARGET=powerpc OS_TARGET=morphos
 +
</source>

Revision as of 17:16, 16 May 2020

Installation of Free Pascal on a MorphOS machine

You need:

  • an MorphOS machine
  • MorphOS 3.0 or better
  • much RAM
  • official MorphOS SDK
  • binary release of FPC-MorphOS

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/powerpc-morphos (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 freepascal at MorphOS.

  • 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 MorphOS binutils (How to create Cross MorphOS binutils)
cd fpc
  • make the compiler, e.g. zipinstall to create directly a packed version fpc-3.3.1.powerpc-morphos.tar.gz
make zipinstall CPU_TARGET=powerpc OS_TARGET=morphos
  • copy the archive to your MorphOS and replace the binaries and units
  • make the cross compiler e.g. crossall and install it
make crossall CPU_TARGET=powerpc OS_TARGET=morphos
sudo make crossinstall CPU_TARGET=powerpc OS_TARGET=morphos