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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Installing GtkAda on Linux (Ubuntu) Date: Tue, 9 Jun 2020 13:54:23 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <5edf435f$0$1464$e4fe514c@news.kpn.nl> <37ffe190-e3a3-9bfe-5577-0387664ee4be@planet.nl> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:59023 Date: 2020-06-09T13:54:23+02:00 List-Id: On 09/06/2020 12:50, ldries46 wrote: > I already had Gtkada installed but only something simple as "with > gtkada;" in the .gpr file does not work. IIn the mean time I have tried > also to put the specific directory in the environment variables > ADA_PROJECT_PATH and GPR_PROJECT_PATH yjat also didn't work. The latest > version which is used in the link is from 2014 > Your linkĀ  did not have any link to the mentioned "with" in the .gpr file You do not need any environment variables. Provided you use the FSF compiler. That is the idea of having language policies. Everything works out of the box. > I already used the latest version of the Adacompiler and Gtkada (both > 2020 version from Adacore for as well GNAT community as Gtkada) OK, this is a completely different scenario. Do you use AdaCore's compiler instead of the FSF compiler? [Why?] You will have ADA_PROJECT_PATH, LIBRARY_PATH correctly set. I wonder if AdaCore installer sets them already and you must move them into your .bashrc or whatever. To check yourself use -I switches with grpbuild. You can always add paths explicitly from the command line. Look if GtkAda's bin directory has gtkada-config executable. It returns switches for compiling/building GtkAda applications. Add them to the gprbuild's command line. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de