comp.lang.ada
 help / color / mirror / Atom feed
From: ahlan@marriott.org
Subject: Re: Trying to install the latest GtkAda for Mac on Mojave using Community 2018
Date: Thu, 31 Jan 2019 09:13:48 -0800 (PST)
Date: 2019-01-31T09:13:48-08:00	[thread overview]
Message-ID: <6a7e5654-3440-4a65-88e9-cc9e1a96ed42@googlegroups.com> (raw)
In-Reply-To: <c71d185b-4dc1-4616-93f5-f6de0942b3e2@googlegroups.com>

On Thursday, January 31, 2019 at 4:56:28 PM UTC+1, ah...@marriott.org wrote:
> Once upon a time, (2015), I successfully installed GtkAda 3.8.4 using Macports and then GtkAda from the sources provided in gtkada-gpl-2015-src.tar.gz and all was well.
> 
> However on buying a new Mac I tried to do the same thing but failed.
> As I don't particularly want to remain on this version I have tried to install the latest and greatest.
> 
> But again without success.
> Can someone give me a clue as to what I am doing wrong or what I should be doing.
> Is there a better way of getting GtkAda running on my MAC?
> 
> I  installed the community 2018 version of GNAT for OSX.
> Easy - so far so good.
> 
> I assume that GtkAda needs Gtk3 for Quartz and so I installed Macports 2.5.3 and then did a port install of gtk3 +quartz which installed 3.22.30
> So far so good.
> 
> I then cloned the sources for GtkAda from GitHub.com/AdaCore/gtkada and then tried to build GtkAda.
> 
> Previously I changed directory to the sources and then entered
> 
> CC=/usr/bin/gcc ./configure --prefix=/Users/Ahlan/gtkada
> make
> make install
> 
> However the make now fails when trying to compile misc.c on line 32 
> #include <stdio.h>
> fatal error: stdio.h: No such file
> 
> and misc_generated.c fails to find limits.h
> 
> How is it supposed to find these files?
> Do I need to install something else?
> Am I installing GtkAda in the correct and recommended manner?
> 
> Any help very much appreciated.
> Best wishes,
> Ahlan

To part answer my own question - a better way to install GtkAda is to simply copy Xnadalib-gpl-2018-quartz-x86_64-apple-darwin 17.7.0-bin.tar that some very thoughtful chaps have made available.
This seems to be a compilation of "everything" and is built with GNAT community 2018, so the binaries and libraries are all compatible with the version of GNAT I am using.

Double plus good!

If I had known about this before I could have saved myself such a lot of time ;-)
But now I do - so a very big thanks to those involved in creating this time saving pre-built collection.

I have made a donation - not much but enough for a beer - Enjoy!

MfG
Ahlan

  reply	other threads:[~2019-01-31 17:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-31 15:56 Trying to install the latest GtkAda for Mac on Mojave using Community 2018 ahlan
2019-01-31 17:13 ` ahlan [this message]
2019-01-31 18:10 ` Simon Wright
2019-02-04 11:16   ` ahlan
2019-02-04 15:44     ` Simon Wright
2019-07-12  6:06       ` Roger
2019-07-12  6:11         ` Roger
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox