Ada Programming $WikiTagline
 

This page describes how to compile GNAT/Pro. First you will need to download the all GNAT/Pro sources available. Use your GNAT Tracker account and download in one go.

build-gnat-pro

It is really all done by the attached script:

Attach:build.bashusefull functions shared between build scripts
Attach:build-gnat-probuild script for GNAT/Pro

Some notes about the script:

  1. The pathnames are more or less hardcoded and installation is done in /opt/ada so you should check if they fit your needs.
  2. The script compiles all and everything in one go - if you don't need everything you should make a copy and cut out everyting you are not interested it

pathnames needed

/work/gnat-proBase directory for the build process. Script files, downloads and all temporary files go here. You need just about a GB of free space to compile everything.
/work/configureScript files go here. Should also be the current directory when starting the scripts.
/work/gnat-pro/5.03/...Downloaded files. The structure should be the same as the one used by the gnat tracker when creating you donwload package.
/opt/gnatBase directory for the installation. You need about 400 MB of free space when you install everything.

current status

The script works fine exept for GPS - GPS has it's own GNAT sources and they clash with the sources installed.

Pitfalls (edit)

Pango

The supplied pango won't compile with newer freetypes. In such cases you should install pango from the distribution.

Python

The Python detector in GPS is quite primitive and supplies misleading error messages. The --with-python options needs to point to a directory from which to find lib/libpython.so and include/python/. On most systems that should be /usr. You might have to provide symbolic links to the actual files and directories.

But even when the python development files are found you might still experience link error.


© 2005,2006 Martin Krischik, Content is available under GNU Free Documentation License.