Building QtAda on Fedora

From Qt Wiki
Revision as of 17:16, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Building QtAda on Fedora 16

First make sure you have the libgnat-static package installed. If you don’t, you may get an error like the one in this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=613407

Download the latest version of QtAda from http://www.qtada.com/en/download.html and extract the source.

You have to use the pre-packaged gela/ASIS code (I couldn’t find another version that would work on Fedora). Do this with the following configure command:

On Fedora 16, with gcc version gcc-4.6.3-2.fc16.x86_64, there seems to be a bug that causes the compiler to crash when compiling examples/qt_ada/tasking/jobs.adb. You may get an error like the one shown below.

A QtAda developer has stated this is due to a bug in gcc, and that it should compile okay with gcc 4.7.

However, if you have gcc 4.6 and you want to get the examples to build, simply comment out the declaration of and call to the Free procedure in jobs.adb (but beware that using this example will then cause memory leaks).

Then simply run:

And then as root (or a user with permissions to write to the install dir):

That should do it. Have fun!