From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,PLING_QUERY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: gtkada working on a Ubuntu Machine.... ??&##?!!!! Date: Fri, 3 Oct 2014 18:11:36 +0200 Organization: cbb software GmbH Message-ID: <5l92l110rpc$.1v8caxflsb8tq.dlg@40tude.net> References: <2YyXv.259296$8M5.213334@fx09.fr7> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ZB2Fb2q1fa4xpMpNKFqV6Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:22042 Date: 2014-10-03T18:11:36+02:00 List-Id: On Fri, 03 Oct 2014 15:06:38 GMT, Phil wrote: > I am wondering if someone can give me some pointers on the best way to > get gtkada properly installed. Depends on the Gtk version. Normally, you get the packages and install them. That's all. > On either windows or Ubuntu. For Windows the latest public GtkAda + Gtk is in the GNAT GPL 2014. Is Ubuntu a Debian clone? Then you install Debian's Gtk and GtkAda packages. Make sure you are using same Gtk version on all platforms, because Gtk 2.x is incompatible with Gtk 3.x. [ GNAT GPL 2014 comes with Gtk 3.8. ] > I have run the program below on a Ubuntu 12.04 box, and get the message > file "gtkada.ads" not found. error message and sample program below. > > I was never really confident the installation was done correctly. As the > ubuntu software centre already has some components installed or my > meddling, and I may have doubled up with a download from Adacore. Was it > done in the correct order and with correct paths etc set. > > Any suggestion on what to check first? > > gnatmake -d -P/home/ada/ADAprojects/test1001project.gpr > gcc-4.6 -c -I- -gnatA /home/ada/ADAprojects/test1001.adb > test1001.adb:1:06: file "gtkada.ads" not found > gnatmake: "/home/ada/ADAprojects/test1001.adb" compilation error Check if the project refers to gtkada.gpr or the corresponding one of the installation. Antique versions used gtkada2.gpr, if I correctly remember. GCC 4.6 is pretty ancient for Debian. Should be 4.8 if not 4.9 already. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de