From: Jean F. M. <jf...@fr...> - 2008-09-12 21:07:13
|
On Fedora it was straightforward. The only catch is that you have to install the gnat from libre.adacore.com (let's call it adacore gnat) since the gnat shipped in Linux distributions (let's call it GNU gnat) doesn't support the Ada2005 syntax used in qtada 1 (apparently qtada2 no longer uses them). You also need the asis software (also from libre.adacore.com) be it wiith qtada1 or qtada2. I don't know where or even if there is an asis for GNU gnat, if there isn't one you will be forced to use adacore GNAT: asis is tuned to a certain version and release of the compiler and will not work with another. Also adacore Gnat ships with a nice IDE named GPS. Problem is that it ships with gtk, gnome libs who don't play well with the glibc of modern distributions. A very simple solution is (if you installed gnat in /opt/gnat) to rename /opt/gnat_lib/gps into /opt/gnat_lib/gps_old so gps no longer finds them and is forced to rely in the gnome libraries of the distribution. If you plan to use the eclipse plugin of adacore you will still need a working GPS and thus you will have to do what detailed above. GPS (or the eclipse plugin) is designed for Ada and beats hands down Emacs, KDevelop or standard (ie without the plugin) Eclipse. On Fri, 2008-09-12 at 21:52 +0200, Mickaël Labau wrote: > Hi ! > I am student who has to develop a project with Ada and Qt so i wanted > to install Qtada > I get a lot of errors so I learn how to install gentoo in order to get > a new and clean machine to develop on and install the qtada package > (just doing an emerge ) > > I typed : > prompt# ACCEPT_KEYWORDS="~x86" emerge -pv qtada > > The line emerged qt 4.4.1 then gnat 4.1 but when emerge is trying to > install qtada, I get the following output : > > ------------------------------------------------------------------------ > Calculating dependencies... done! > >>> Verifying ebuild Manifests... > > >>> Emerging (1 of 1) dev-ada/qtada-1.0.4 to / > * qtada-gpl-1.0.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... > > [ ok ] > * checking ebuild checksums ;-) ... > > [ ok ] > * checking auxfile checksums ;-) ... > > [ ok ] > * checking miscfile checksums ;-) ... > > [ ok ] > * checking qtada-gpl-1.0.4.tar.gz ;-) ... > > [ ok ] > * This version of qtada can only be compiled with gnat-gpl-4.1 > * > * ERROR: dev-ada/qtada-1.0.4 failed. > * Call stack: > * ebuild.sh, line 49: Called pkg_setup > * qtada-1.0.4.ebuild, line 36: Called die > * The specific snippet of code: > * die "Please switch to gnat-gpl-4.1 and try again" > * The die message: > * Please switch to gnat-gpl-4.1 and try again > * > * If you need support, post the topmost build error, and the call > stack if relevant. > * A complete build log is located at > '/var/tmp/portage/dev-ada/qtada-1.0.4/temp/build.log'. > * The ebuild environment file is located at > '/var/tmp/portage/dev-ada/qtada-1.0.4/temp/die.env'. > * > > * Messages for package dev-ada/qtada-1.0.4: > > * This version of qtada can only be compiled with gnat-gpl-4.1 > * > * ERROR: dev-ada/qtada-1.0.4 failed. > * Call stack: > * ebuild.sh, line 49: Called pkg_setup > * qtada-1.0.4.ebuild, line 36: Called die > * The specific snippet of code: > * die "Please switch to gnat-gpl-4.1 and try again" > * The die message: > * Please switch to gnat-gpl-4.1 and try again > * > * If you need support, post the topmost build error, and the call > stack if relevant. > * A complete build log is located at > '/var/tmp/portage/dev-ada/qtada-1.0.4/temp/build.log'. > * The ebuild environment file is located at > '/var/tmp/portage/dev-ada/qtada-1.0.4/temp/die.env'. > * > ------------------------------------------------------------------------ > > I dont figure out why it does not work ! > > I can supply the vmware image on which i ran these commands. > > > > > > > > > > > > > |