# Installation hints for old versions

Jump to: navigation, search

## Installing Lazarus

### Installing Lazarus under Linux

#### Ubuntu / Debian

##### Problems compiling GTK2 apps with FPC 2.2.2

From this post by Michalis Kamburelis:

In case someone wonders how to workaround this bug (occurs with GTK >= 2.13.4, e.g. on Ubuntu 8.10 we have GTK 2.14):

I found that the quick workaround that works is to pass --noinhibit-exec to ld, that is "-k--noinhibit-exec" to FPC command-line. The ld will then treat unresolved references as mere warnings, and will produce working executable (assuming your program doesn't actually call obsoleted GTK2 functions).

Of course, you can also upgrade to the lastest FPC release 2.2.4. Above workaround is useful only if you have to stick to old released FPC 2.2.2.

#### Installing 0.9.28 using rpms

The next easiest way is to the RPMs for FreePascal and Lazarus from the SourceForge repository.

You need to download the selected version of

• the compiler (eg fpc-2.2.4-0.i386.rpm)
• the pascal source library (eg fpc-src-2.2.4-081004.i386.rpm)
• the Lazarus package (eg lazarus-0.9.28-0.i386.rpm).

Here is an example of a script to install or update to ver.0.9.28. Save it as something like "InstallLazarus.sh", give it execute permission, and run after getting root privileges using su. Don't mind if you get "not installed" message.

 #!/bin/sh
URL=http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20i386%20RPM/Lazarus%200.9.28
wget $URL/fpc-2.2.4-0.i386.rpm/download wget$URL/fpc-src-2.2.4-0.i386.rpm/download

##### Installing Lazarus + fpc For Mandriva X86_64

This was tested on Mandriva 2010.0 X86_64.

http://michael-ep3.physik.uni-halle.de/Lazarus/snapshots/fpc-2.4.0-20100412.x86_64.rpm
http://michael-ep3.physik.uni-halle.de/Lazarus/snapshots/fpc-src-2.4.0-20100412.x86_64.rpm
http://michael-ep3.physik.uni-halle.de/Lazarus/snapshots/lazarus-0.9.29.24591-20100412.x86_64.rpm

You can install them with the command urpmi as root, and write all these 3 urls as paramters on the command line.
• To download and install the current snapshot:

 urpmi $(lynx --source http://michael-ep3.physik.uni-halle.de/Lazarus/ |grep -v lazarus-0.9.28.3| grep 64.rpm | cut -d '"' -f 6-6 | awk '{print "http://michael-ep3.physik.uni-halle.de/Lazarus/"$0}') 
You might have to install lynx and make first: urpmi lynx make.

• Once the RPMs have been installed. Run lazarus for the first time. It will pop up a dialog complaining that the "/usr/bin/ppc386" and "/usr/lib/lazarus" are not valid. Accept ("OK") the alternate choices it suggests.
• When compiling your first project, you may find that lazarus complains of missing libs (e.g. gdk, glib, etc.). Install the necessary libs as needed, I installed these (that I recall, YMMV):
glib-devel
lib64gtk+1.2-devel
lib64gtk+2.0_0-devel
lib64gdk-pixbuf2
lib64gdk-pixbuf2-devel


#### Installing on Slackware

##### Installing Lazarus on Slackware 13.0

There is no real difference from the slackware 12.2 or 12.0 version, therefore the procedure described below should work just as well.

Please note that you will NOT be able to install lazarus on gtk, therefore you MUST use the "LCL_PLATFORM=gtk2" statement. Slackware only provides the KDE enviroment, but the gtk2 type panels are fully supported (no extra installation required). At most, there is one or two symbolic link to add!

##### Installing Lazarus 0.9.28, for Slackware 12.0 users

This have worked in Slackware-12.0 on a Pentium-3 computer:

• The Free Pascal Compiler (FPC) is installed in SUPERUSER mode
• The lazarus in installed in USER mode
• The FPC compiler will be recompiled
• The lazarus Integrated Development Environment (IDE) source code is loaded from the SVN server
• The GTK-2 widget set is used ("LCL_PLATFORM=gtk2")

-- Download "fpc-2.2.4.i386-linux.tar" in a user folder and install it. Go to this folder and type:

 bash-3.1$tar -xvf fpc-2.2.4.i386-linux.tar bash-3.1$ su
bash-3.1$password:xxxxxx bash-3.1# sh install.sh ... (use the default answers for the next 6 questions: press "return" 6 times) ... bash-3.1# exit bash-3.2$ fpc
free pascal compiler version 2.2.4 [] for i386
Copyright (c) 2008 ...
...
...


You have installed the compiler. You may want to recompile it or not, but in any case you will need to download the source code as it is required by the lazarus IDE.

-- Download "fpc-2.2.4.source.tar.gz" in a temporary folder. If you do not want to recompile the source then just skip this section. If you would like to run your own compiled version of FPC, then just type:

 bash-3.1$tar -xvzf fpc-2.2.4.source.tar.gz bash-3.1$ cd fpc-2.2.4
bash-3.1$make clean all bash-3.1$ su
bash-3.1$password: xxxxxxxx bash-3.1# make install bash-3.1# exit bash-3.1$ fpc
free pascal compiler version 2.2.4 [...] for i386
Copyright (c) 2008 ...
...
...


Now you have your own compiled version working.

-- The lazarus IDE editor needs to look at the FPC source code. Even if you do not want to recompile FPC, you need its source code. However, in order to save some space, I only keep a clean (not compiled) copy of the source code. I start from the file "fpc-2.2.4.source.tar.gz" again and I copy it to the /usr/local/src/FPC folder:

 bash-3.1$su bash-3.1$ password: xxxxxxxx
bash-3.1# cp fpc-2.2.4.source.tar.gz /usr/local/src/
bash-3.1# cd /usr/local/src/
bash-3.1# tar -xvzf fpc-2.2.4.source.tar.gz
bash-3.1# rm fpc-2.2.4.source.tar.gz
bash-3.1# exit


The version number is included in the folder name "fpc-2.2.4". This way I can keep many versions the the compiler source and eventually switch between them.

-- The lazarus IDE is kept in my USER "~/lazarus" folder and always compiled in USER mode. I usually download the "lazarus-0.9.28-0.tar.gz" file, but here we can also get the latest development version from the SVN server:

  bash-3.1$svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus  This is for the first time you load it. Next time you will only need to type:  bash-3.1$ svn update


If you do not have SVN installed on your computer, here is how to get it quickly:

--Download the two files: "subversion-1.4.6.tar.gz" and "subversion-deps-1.4.5.tar.gz" (or later versions). Type:

  bash-3.1$tar -xvzf subversion-1.4.6.tar.gz bash-3.1$ tar -xvzf subversion-deps-1.4.6.tar.gz
bash-3.1$cd subversion-1.4.6 bash-3.1$ ./configure
bash-3.1$make bash-3.1$ su
bash-3.1$password:xxxxxx bash-3.1# make install bash-3.1$ exit


-- At this point you have the folder "~/lazarus" containing the source code. You should compile it very simply:

  bash-3.1$make clean all LCL_PLATFORM=gtk2  The "LCL_PLATFORM=gtk2" means of course that you will develop your applications in GTK-2. The default widget set for lazarus is GTK-1 but you will not be able to use it in Slackware 12.0. I strongly recommend that you use the "LCL_PLATFORM=gtk2" option now. After a few minutes, the compiler stops:  ... ... Linking ../Lazbuild 987 linescompiled ... make [2] leaving ... make [1] leaving ... bash-3.1$


-- Just type:

  bash-3.1$./lazarus  WOW! You get a message: "Free Pascal sources not found". Just follow the instructions and indicate your Free Pascal Compiler source directory in the panel: "Environment->Environment_Options->Files". As explained earlier, on my computer this should point to "/usr/local/src/fpc-2.2.4". Note that when you change this folder, you should click on "Environment / Rescan_FPC_source_directory". Voila! #### Installing on openSUSE ##### Installing Lazarus 0.9.28. For openSUSE 11.1 users Free Pascal Compiler requires: - Gnu binutils (gnu as, gnu ld, gnu make) These utils can be installed by:  zypper in -t pattern devel_basis  Lazarus also requires these components: 1) glib2 devel 2) gtk2 devel Important: The lazarus rpm requires the gtk 2 version, not the version 1.2. These libraries can be installed by:  zypper -n install gtk2 glib2  Download these binary files (RPM) • fpc-2.2.4-0.i386.rpm (yes i586 and not i386) • fpc-src-2.2.4-0.i386.rpm • lazarus-0.9.28.2-0.i586.rpm install them opening a terminal session (mouse's right button -> Menu: Open in terminal)  rpm -Uvh fpc-2.2.4-0.i386.rpm rpm -Uvh fpc-src-2.2.4-0.i386.rpm rpm -Uvh lazarus-0.9.28.2-0.i586.rpm  #### Installing from source If you prefer to install from source and compile the files yourself, follow these instructions. Because the whole lazarus stuff is installed into one directory, uninstall is very easy and you don't need to be root to install lazarus. You can get tgz files for fpc, fpcsrc and lazarus from the downloads section or you can download it directly via svn. Here is an example of installing 0.9.28 to Ubuntu 6.06. If you understand Linux commands and bash script, you can get what steps are needed. Just copy the script (change the version number when new version has been released), paste it into a text editor, and save it as something like "install_lazarus.sh". Give it execute permission, and run it in a console. Note: In this example, fpc is installed in /opt. So when prompted 'Install prefix', enter '/opt/fpc'.  #!/bin/sh #installing required packages sudo apt-get install build-essential sudo apt-get install libgtk2.0-dev sudo apt-get install libgdk-pixbuf-dev #installing FreePascal source cd /opt sudo wget http://nchc.dl.sourceforge.net/lazarus/fpc-src-2.2.4.source.tgz sudo tar -xvf fpc-src-2.2.4.source.tgz sudo mv fpc fpcsrc #installing FreePascal sudo mkdir fpc cd fpc sudo wget http://nchc.dl.sourceforge.net/lazarus/fpc-2.2.4.i386-linux.tar sudo tar -xvf fpc-2.2.4.i386-linux.tar echo "Enter '/opt/fpc' when prompted 'Install prefix'" sudo sh install.sh #adding fpc path to the PATH echo "#FPC PATH" >> ~/.bash_profile echo "if [ -d /opt/fpc/bin ] ; then" >> ~/.bash_profile echo PATH=/opt/fpc/bin:"${PATH}" >> ~/.bash_profile
echo "fi" >> ~/.bash_profile

#installing Lazarus
cd ../
sudo wget http://nchc.dl.sourceforge.net/lazarus/lazarus-0.9.28-0.tar.gz
sudo tar -zxvf lazarus-0.9.28-0.tar.gz
PATH=/opt/fpc/bin:"${PATH}" sudo chmod -R 777 lazarus cd lazarus make clean all ./lazarus  Note: You have to manually set fpc-src path in the Environmental Options. ##### Downloading Lazarus Source Code The lazarus repository has moved from cvs to svn (Subversion). SVN provides an easy way to update your sources by only downloading the changes. This is the recommended way and saves you a lot of time. A connection to the internet is needed for this: you don't need to be root. Please note these instructions are for SubVersion, but there is also a Git mirror repository of Free Pascal Compiler and Lazarus. See Git mirror for details. You can also use git directly with SubVersion server using git-svn link. See Lazarus git-svn for details. Lazarus does not need any special permissions, neither during installation nor at runtime. With the move we also changed the directory layout of the lazarus sources. The main difference is that all ide sources are moved from the root to a separate ide subdir. As anybody might understand, this has an impact on the Makefiles, the searchpaths etc. We are in progress of fixing things, so if something doesn't work, please let us know. Now the most important thing.... getting the sources  []$ svn checkout http://svn.freepascal.org/svn/lazarus/trunk/ lazarus


(or any other dir where you want to place your sources)

On subsequent occasions, to update simply type

 []$svn update lazarus  For more information on Subversion, see: http://subversion.tigris.org/ Note: the CVS is still accessable, but is frozen. This means that no new updates are comitted. ##### Compiling and running Whether you checkout from cvs or svn, the next step is: compile lazarus []$ cd lazarus
[]$make (gmake on BSD)  If fpc is installed correctly, the compilation should work without problems. If not, see FAQ. Start lazarus []$ ./lazarus


The IDE should start. If you started lazarus in a terminal, you can see some notes about missing settings. This is normal at first start. The IDE automatically tries to find out where the freepascal compiler and its sources are installed by searching in the most common directories.

Check the paths
Use the IDE menu to go to
Environment -> Environment Options -> Files

The 'FPC Source directory' should point to your fpc source directory. This directory normally ends with /fpc/ or /fpcsrc/ (e.g. /usr/src/fpcsrc or /home/username/freepascal/fpc) and contains directories like 'compiler', 'docs', 'fcl', 'rtl' and 'packages'.

See here for the documentation about this dialog: IDE_Window:_Environment_Options

Hint

To update lazarus you can use

[]$svn update lazarus  then for either update pathway: []$ make clean all   (gmake on BSD)


This will rebuild lazarus and create an IDE without lazarus packages. To link your installed packages do after the above:

[]$./lazbuild --build-ide=  You may have to append other options if for example you use a custom config directory (ie. add --pcp="C:\Documents and Settings\<USER>\Local Settings\Application Data\lazarus-tests") #### Installing Lazarus under Debian GNU/Linux There are preliminary Debian packages for lazarus available for download. They are not the latest versions, however. Make sure you read /usr/share/doc/lazarus/README.Debian carefully before you start using it. Feedback is needed and appreciated; please send your comments to Carlos Laviola <claviola@debian.org>. Note that for a fully working Lazarus install, no older or incompatible versions of, for example, the fpc source or fpc compiler must be installed. Remove them by typing  dpkg -r <package name>  without .deb extension. And then install the newest versions as described. #### Installing Lazarus 64 bit version on Red Hat EL 5 Linking may fail when you do your first compile with an error "incompatible libglib" if the following symbolic links are not present in the /usr/lib64/ directory libglib.so -> libglib-1.2.so.0 libgtk.so -> libgtk-1.2.so.0.9.1 libgdk.so -> libgdk-1.2.so.0.9.1 The steps for successful installation on Red Hat were yum install gimp gimp-devel gtk+* gtk+-devel Then install the following rpms fpc-2.2.4-0.x86_64.rpm fpc-docs-2.2.4-0.x86_64.rpm lazarus-0.9.28.2-0.src.rpm lazarus-debuginfo-0.9.28.2-0.x86_64.rpm fpc-2.2.4-3.fc10.x86_64.rpm fpc-src-2.2.4-091006.x86_64.rpm lazarus-0.9.28.2-0.x86_64.rpm add -Fl/usr/lib64 under #ifdef cpux86_64 in fpc.cfg Then add the symbolic links listed above. #### Fedora Core 11 Needed packages: gtk2-devel glibc-devel binutils  Useful packages for development: subversion wget gcc bison rpm-build  ### Installing Lazarus under Windows The current releases of the Windows Lazarus binary packages install very easily, and should work 'out-of-the-box'. It is even possible to install the whole Lazarus/FPC package on a portable USB drive (capacity at least 256 MB), for use in environments where you are not allowed to install software on your Windows workstation or where you haven't got administrator privileges. You do have to be a little careful about adjusting the paths in the compiler and environment options and the fpc.cfg file. It may also be necessary to keep the directory for test compilation on your portable drive. << Q:DOES ANYONE KNOW HOW TO SET UP RELATIVE PATHS IN THESE TAGS AND FILES, SO THAT THE ADDRESSING WORKS WHEN YOU MOVE THE USB DEVICE TO ANOTHER MACHINE WHERE IT HAS A DIFFERENT DRIVE LETTER? A: This is what I do. It's relatively convoluted, but it's the best solution I've found. I have a "bin" directory on my USB drive, where I have several scripts and utilities installed. Inside that directory is a batch file called "setenv.bat" which sets an environment variable called THUMBDRIVE. It is set by using this command in the batch file:  set THUMBDRIVE=%CD:~0,2%  This is used in setenv.bat to set some paths to other things I have installed on the USB drive. I also have a link in the root directory of the thumb drive with this property:  %SystemRoot%\system32\cmd.exe /k bin\setenv  so that when I click on that link when the thumb drive folder is diplayed after inserting it, it will open a command prompt at the thumb drive with the environment variables set from setenv.bat. Also inside the bin directory is sed (the actual binary is one I obtained from the mingw distribution). So I created another batch file called fixlaz.bat which takes one argument, the drive letter which is currently in the Lazarus/fpc settings files that you want to change (note that this is the previous drive letter the last time you ran fixlaz.bat, not the current one of your USB drive which fixlaz.bat already knows). You will need to create this batch file to fit where you installed Lazarus in the root directory structure of the drive if you didn't install it directly in the root folder, and then repeat these lines also for the editoroptions.xml and fpc.cfg files (fpc.cfg is the the fpc bin directory, which might be buried deep in the lazarus folder):  copy %THUMBDRIVE%\lazarus\environmentoptions.xml %THUMBDRIVE%\lazarus\environmentoptions.bak sed -e 's/%1/%THUMBDRIVE%/g' %THUMBDRIVE%\lazarus\environmentoptions.bak > %THUMBDRIVE%\lazarus\environmentoptions.xml  So to use it, I would type at the command prompt of the USB drive:  fixlaz G:  if "G:" was the previous drive letter used the last time I ran it. This will then scan the file(s) and replace "G:" with the current drive letter of the USB drive, which is in the %THUMBDRIVE% environment variable (after running setenv.bat). Note that you could write it to save the current drive letter in a separate file, so that you wouldn't have to remember it yourself the next time. But this works well enough for me right now. >> The binary package is available for Linux and Windows from Download the latest release (currently Lazarus-0.9.28-0-win32.exe) and launch the application. You will be taken through a typical Windows installation, in which the FPC compiler and source libraries are installed within the same directory structure as Lazarus, and the IDE should launch and operate without significant problems, provided you have uninstalled(!!!) any previous version of Lazarus and/or FPC (often found in the C:\pp directory). You can also use a Lazarus Snapshot. For download locations see Lazarus Snapshots Downloads. Tip: It's perhaps a good idea to reboot your Windows after you installed Lazarus and before you try to install additional lazarus components as zeoslib fore example. #### Installing from source If you prefer to install from sources, then follow these instructions (Thanks to Joe for the initial Step-by-step description). Please note these instructions are for SubVersion, but there is also a Git mirror repository of Free Pascal Compiler and Lazarus. See Git mirror for details. You can also use git directly with SubVersion server using git-svn link. See Lazarus git-svn for details. You have to download the lazarus source from one of the snapshots servers. Then unzip it to c:\lazarus for example [below called$(LazarusDir)].

Or you use SVN:

 []$svn checkout http://svn.freepascal.org/svn/lazarus/trunk/  You have to install at least fpc-2.2.4, but a fpc-2.5.1 snapshot is also possible. It compiles for me, and lazarus.exe works. The path to my fpc is: c:\pp\bin\win32. In this directory you can find a lot of exe (make, grep, ppc386, and so on). Open a command line. Start->Run...>command or choose MS-DOS icon. Type: //Replace$(LazarusDir) with the path you have unzipped/checked out Lazarus
cd $(LazarusDir)\ide set path=c:\pp\bin\win32;$(LazarusDir)  //of course change the first to
//the path of yours
windres -i lazarus.rc -o lazarus.res
cd $(LazarusDir) make  If you are lucky then you can type: lazarus.exe. The source editor, dialogs and the property editor work, but not perfectly... Look and you will see. You can compile examples also: cd$(LazarusDir)\examples
make


If you extracted lazarus to another drive, eg.: d:\lazarus. It can happen that you need the gnu utility to make it. If you have it, you can take its path to set path=...;<gmakepath> but it is simpler not to choose drive d:\

That's all.

### Installing Lazarus under FreeBSD

#### FreeBSD 6+

The latest version of Lazarus into FreeBSD port tree is 0.9.28.3 (Fixes branch). We can to install lazarus using FreeBSD ports.

[]# cd /usr/ports/editors/lazarus && make install clean clean-depends


If you get the messages about missing source files, go to [menu bar >> Environment >> Environment Options >> Files Tab: FPC source library] and enter the directory of the FPC source files. It can be obtained from /usr/ports/distfiles/freepascal

### Installing Lazarus under PC-BSD 1.0rc1+

You can install Lazarus on PB-BSD by simply downloading the Lazarus PBI from PBI Dir

Note that you must install glib* port from /usr/port/devel/glib* or glib packages by pkg_add -r glib12 glib20. I will fix this in new PBI releases.

[other OpenBSD/NetBSD/DragonFlyBSD goes here]

### Installing Lazarus under Mac OS X

First need to install the Apple developer tools. Then you can install the latest release from [1] or the daily snapshots from the snaphot servers.

More elaborate instructions can be found in Installing Lazarus on MacOS X.

If you install all 3 .dmg snapshot files, this also installs the FPC compiler and the FPC and Lazarus source too. If you only need to run Lazarus to develop and compile your own apps, you don't need to install the FPC and Lazarus sources as described above. If you need to rebuild Lazarus or want to help with its development, then you should to install the Lazarus source to a folder where you have read-write permission, as described above.

Now you can start Lazarus from the folder /Applications.

### Installing Lazarus under Haiku

Lazarus requires Qt under Haiku. Qt is not installed by default under Haiku. You need to install package available from this site : http://qt-haiku.ru/

Currently, there is no binary package to install Lazarus.

You will have to compile Lazarus from sources.

Detailed instructions to build Lazarus under Haiku are available here : Installing Lazarus on Haiku

### Additional experiences and advice on installing FPC and Lazarus

On linux, getting Lazarus to work can be complicated if you have an older version installed. If you have already installed earlier versions of FPC and/or Lazarus, you have to take great care that the PATHS are adjusted so that only your new versions are called.

Pitfalls that I have experienced in various attempts with SuSE linux include:

The rpm versions often install FPC in /bin or /usr/bin, with the libraries in /lib or /usr/lib.

If you perform a make install on a source version or use a .tar.gz, the compiler is usually installed in /usr/local/bin with the libraries in /usr/local/lib.

So if earlier versions have been installed from rpm, make sure all links are changed to reflect the directory structure of your new compiler. The place to make the changes is in /etc/fpc.cfg ; make sure there are no remnant configuration files in your home directory or in your FPC download directory. Typically they are found in ~/.fpc.cfg

Make sure the links in /etc/fpc.cfg point to the correct versions of the libraries (particularly if you have older versions still lurking around).

In /usr/local/bin or /usr/bin there is a file called fpc ; this is the executable that is called when you invoke the compiler. One of the first things it does is to open ppc386 in the same directory. This has to be the same version as the fpc file, or can be a link pointing to the true ppc386 in some other directory (such as a library directory, or the fpc directory in your own development space); be sure to update your link if you install a newer version of the compiler.

Try running the compiler from the command line using one of the simple example programs or one which you wrote yourself.

Turning to Lazarus:

If you use a downloaded snapshot (.tar.gz) or get the source from CVS, enter your lazarus directory and type

make
./lazarus


and hopefully the IDE should load. There may be a message saying it can't find the sources; if so, go to the menu at the top and select Environment -> Environment options and insert the name of the directory where you expect to find your lazarus files (eg ~/FreePascal/lazarus), your compiler (e.g. /usr/local/bin/ppc386), the FreePascal source directory (e.g. /usr/local/lib/fpc/\$version/fpc or a directory in your own space e.g. ~/FreePascal/fpc). Then close the dialog and start programming.

You may find further problems when you start programming or compiling; most of these will be related to PATH selection.

Many of the difficulties are dealt with in the Lazarus FAQ, found either on this WiKi site, or a more complete list on the main Lazarus site

From the top menu select Run -> Compiler Options (or Project -> Compiler Options in more recent releases of Lazarus) and select the Paths tab on the resulting dialog. There are several boxes for entry of paths for Unit files, Include files, Other source files, Libraries etc. For each of these, it is worth pressing the ... (ellipsis) button on the right, and you will be given a blank window for inserting path information, and a lower window giving some suggestions. Select as many as you like (or ALL!) and press the ADD button to transfer the selections to the upper window. When your selection is complete, press OK and move on to the next box. If you know of other paths which need to be followed, press the Browse button associated with each box, and insert the additional paths.

When you think you have got your paths right, try to compile your application. If there are further path-related errors ('can't find unit .......') then go back and check your paths, both in /etc/fpc.cfg and in your Run -> Compiler Options dialog (or Project -> Compiler Options depending on your version).

Once you have got the environment and PATHS correct, it is worth saving the settings to a file, otherwise you will have to go through this process for each new project. In the Run -> Compiler options dialog there is a Load/Save button; select this and then save the setings to the filename of your choice: mine is ~/FreePascal/default.cfg. Then each time I start a new project, I can go to the Run -> Compiler Options dialog (or Project -> Compiler Options), select Load/Save, and load my default.cfg file to the new project. You can, of course, modify the options for each new project if you so desire.