Difference between revisions of "fpcupdeluxe"

From Lazarus wiki
Jump to navigationJump to search
Line 10: Line 10:
 
<p>The above screenshot (click Setup+ on mainscreen) shows the advanced settings of fpcupdeluxe.</p>
 
<p>The above screenshot (click Setup+ on mainscreen) shows the advanced settings of fpcupdeluxe.</p>
 
<h1>Crosscompiling</h1>
 
<h1>Crosscompiling</h1>
Fpcupdeluxe makes cross-compiling easy: just select a CPU and an OS, and press install crosscompiler.
+
<p>Fpcupdeluxe makes cross-compiling easy: just select a CPU and an OS, and press install crosscompiler.
 
If libraries and/or binary tools are needed, fpcupdeluxe will try to get them online.
 
If libraries and/or binary tools are needed, fpcupdeluxe will try to get them online.
<h2>Crosscompiling from Windows towards Darwin</h2>
+
Use the link to see what is available at the moment !</p>
<p>With the help of fpcupdeluxe, NewPascal and a toolset called osxcross, you can crosscompile towards Darwin.<br />This help will concentrate on crossing from Windows towards Darwin only.</p>
+
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxx64crossbins_v1.0 Linux 64bit binary toolchains]</p>
 +
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/linuxi386crossbins_v1.0 Linux 32bit binary toolchains]</p>
 +
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/wincrossbins_v1.0 Windows binary toolchains]</p>
 +
<p>[https://github.com/newpascal/fpcupdeluxe/releases/tag/crosslibs_v1.0 System libraries]</p>
 +
<h2>Crosscompiling from Windows and Linux towards Darwin</h2>
 +
<p>With the help of fpcupdeluxe, NewPascal and a toolset called osxcross, you can crosscompile towards Darwin. This help will concentrate on manually setting up crossing from Windows/Linux towards Darwin (fpcupdeluxe can also do all the auto-magic for you for crossing towards Darwin; see above)</p>
 
<p>First, you will need to get osxcross, and compile it yourself.</p>
 
<p>First, you will need to get osxcross, and compile it yourself.</p>
 
<p>[https://github.com/tpoechtrager/osxcross osxcross original]<br />[https://github.com/LongDirtyAnimAlf/osxcross osxcross for FPC]</p>
 
<p>[https://github.com/tpoechtrager/osxcross osxcross original]<br />[https://github.com/LongDirtyAnimAlf/osxcross osxcross for FPC]</p>
Line 29: Line 34:
 
[[File:fpcupdeluxe_darwinbins.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the binary tools location]]
 
[[File:fpcupdeluxe_darwinbins.JPG|none|200px|thumb|left|Point fpcupdeluxe towards the binary tools location]]
 
<p>Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !</p>
 
<p>Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !</p>
 +
<p>'''Again, fpcupdeluxe also has pre-build tools for crossing towards Darwin: using the fpcupdeluxe-auto-magic will be the easiest !!!'''</p>
 
<h1>External links</h1>
 
<h1>External links</h1>
 
<p>[http://wiki.lazarus.freepascal.org/fpcup Fpcup by Reinier]</p>
 
<p>[http://wiki.lazarus.freepascal.org/fpcup Fpcup by Reinier]</p>

Revision as of 08:51, 21 January 2017

fpupdeluxe on Windows

Fpcupdeluxe, a GUI installer for FPC and Lazarus. Based on fpcup

Fpcupdeluxe source

Latest release

Installation of FPC and Lazarus

The main purpose of fpcdeluxe is to provide a means for installing and updating various versions of FPC and Lazarus in a self-contained manner. Self-contained meaning that an install by fpcupdeluxe will have no influence on your system at all: you can install multiple versions of FPC and Lazarus.

Only one requirement: you HAVE to use the generated link to start the install !

Advanced settings

Fpcupdeluxe advanced settings screen.

The above screenshot (click Setup+ on mainscreen) shows the advanced settings of fpcupdeluxe.

Crosscompiling

Fpcupdeluxe makes cross-compiling easy: just select a CPU and an OS, and press install crosscompiler. If libraries and/or binary tools are needed, fpcupdeluxe will try to get them online. Use the link to see what is available at the moment !

Linux 64bit binary toolchains

Linux 32bit binary toolchains

Windows binary toolchains

System libraries

Crosscompiling from Windows and Linux towards Darwin

With the help of fpcupdeluxe, NewPascal and a toolset called osxcross, you can crosscompile towards Darwin. This help will concentrate on manually setting up crossing from Windows/Linux towards Darwin (fpcupdeluxe can also do all the auto-magic for you for crossing towards Darwin; see above)

First, you will need to get osxcross, and compile it yourself.

osxcross original
osxcross for FPC

You will need the osxcross for FPC that has been adapted for use by FPC.

Get yourself a SDK, either from your own Mac, or from online sources: Various Mac SDK's

Build osxcross according to the instructions. E.g. on Windows with Cygwin.

Please note: to be able to cross from Windows towards Darwin, you need to have NewPascal installed ! NewPascal is FPC trunk with some additional features.

Use fpcupdeluxe to install NewPascal.

Before building the cross-compiler, you need to inform fpcupdeluxe where to find the Darwin libs (SDK) and the binary tools (build by osxcross). The two screenshot below show how to proceed:

Choose a CPU-type and an OS (Darwin). Select custom. You should now be able to use the buttons and point fpcupdeluxe to the right locations.

Point fpcupdeluxe towards the library location
Point fpcupdeluxe towards the binary tools location

Now, on the mainscreen, you can select your CPU and OS (Darwin) and build the cross-compiler !

Again, fpcupdeluxe also has pre-build tools for crossing towards Darwin: using the fpcupdeluxe-auto-magic will be the easiest !!!

External links

Fpcup by Reinier

Fpcupdeluxe source

Latest release

NewPascal