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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: GPS on MacOS 10.9 doesn't find GTKAda Date: Sun, 09 Feb 2014 19:48:20 -0500 Organization: The Wasteland Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 10 Feb 2014 00:48:22 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="d17dee34624b7b363488e8f2f4ab0076"; logging-data="12565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dipvdRmpi6atj84k3TLLGE5YiNz3DdK8=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: Cancel-Lock: sha1:Gr987Nm8qcJpqd7KvvYQZyNbI+A= Xref: news.eternal-september.org comp.lang.ada:18462 Date: 2014-02-09T19:48:20-05:00 List-Id: On 2/7/14, 6:16 PM, Laurent wrote: > > I am learning Ada. For the moment a GUI is not really needed for my programs but i was curious and tried the Xadalib-2013 which contains GtkAda and some other things precompiled for MacOS. > > Put this in my profile file: > > PATH=/usr/local/bin:usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:$PATH > #path for gnat ada compiler + gtkada > export PATH=$PATH:/usr/local/xadalib-2013/bin:/usr/local/gnat/bin:$PATH > export GPR_PROJECT_PATH=/usr/local/xadalib-2013/lib/gnat:$GPR_PROJECT_PATH > export XDG_DATA_DIRS=/usr/local/xadalib-2013/share > > When I try to compile this: > > with gtkada.gpr > > procedure Test is > Begin > Null; > End Test; > > Fails with the message that gtkada.ads can't be found. > > This code code from open classroom fails with the message that gtk.ads can't be found. > > WITH Gtk.Main ; USE Gtk.Main ; > WITH Gtk.Window ; USE Gtk.Window ; > > > PROCEDURE Test01 IS > win : Gtk_window ; > BEGIN > Init ; > Gtk_New(Win) ; > Win.show_all ; > Main ; > END Test01 ; You can use the gtkada-config script to get the required compiler and linker arguments: gnatmake test01 `gtkada-config` Alternatively, you can 'with "gtkada"` in your .gpr file, as discussed here: Both approaches are covered in "Getting started with GtkAda": -- John B. Matthews trashgod at gmail dot com