From Free Pascal wiki
Jump to: navigation, search
fpupdeluxe on Windows

Installation of FPC and Lazarus

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

In order to have the installation working you MUST use the generated link to start the install !

That launcher link contains a line like:

Exec=/P/s/lazarus/lazarus --pcp="/P/s/config_lazarus"

directing Lazarus to use the pcp , i.e. primary configuration setting path of "/P/s/config_lazarus" or a similar subdir under /home/ depending on you choice made from the GUI. No fpc or anything is required in the searchpath.

Advanced settings

Fpcupdeluxe advanced settings screen.

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

Some examples of advanced settings:

--> for debugging FPC itself, add "-g -gl -O-" into the "FPC options" field.


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: the hard way

With the help of fpcupdeluxe, NewPascal and a toolset called osxcross/cctools-port, 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/cctools-port, and compile it yourself.

osxcross original
osxcross for FPC

cctools-port original
cctools-port for FPC

For Mac OSX, you will need the osxcross for FPC that has been adapted for use by FPC.

For iOS/iPhone, you will need the cctools-port 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

SDKs for iPhone can also be obtained from online sources: Various iPhone SDK's

Build osxcross/cctools-port 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/cctools-port). 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

see in depth guide for BUILD / MAKE: Build FAQ

Fpcup by Reinier

Fpcupdeluxe source

Latest release