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 X-Received: by 10.129.103.4 with SMTP id b4mr8481359ywc.24.1441482607479; Sat, 05 Sep 2015 12:50:07 -0700 (PDT) X-Received: by 10.182.199.37 with SMTP id jh5mr52186obc.6.1441482607433; Sat, 05 Sep 2015 12:50:07 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!xmission!news.glorb.com!v79no1015469qge.0!news-out.google.com!nt1ni1974igb.0!nntp.google.com!kq10no1079058igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 5 Sep 2015 12:50:07 -0700 (PDT) In-Reply-To: <0d2ca159-baab-4781-bc56-d957f5bd61b6@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c69a:d430:d1b8:16e9:cf4d:6828; posting-account=DQbqYQoAAACn8hHn2LmG2aF7Mhbxl_Lf NNTP-Posting-Host: 2a02:1205:c69a:d430:d1b8:16e9:cf4d:6828 References: <0d2ca159-baab-4781-bc56-d957f5bd61b6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Gtkada on Mac using Quartz From: ahlan@marriott.org Injection-Date: Sat, 05 Sep 2015 19:50:07 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:27714 Date: 2015-09-05T12:50:07-07:00 List-Id: In case anyone is interested, I managed to get my non-trivial GUI test prog= ram, written using GPL-2015 Gnat Ada and GPL-2015 GtkAda to work without an= y source changes on all three of my selected targets, namely Windows (XP), = Linux (Ubuntu) and OS X (Yosemite). Yosemite was the biggest challenge because AdaCore for some reason didn't p= rovide a GtkAda installation as they did for Windows and Linux. Which meant that i had to get and compile Gtk myself. Fortunately the linux installation worked Ok on OS X. The other problem is that on Yosemite the Gtk thread has to be the main thr= ead. This restriction does not apply for Windows and Ubuntu. However after rewriting my Gui package to use the main thread, the program = ran on all platforms. Which, I think, is rather cool! :-) On Saturday, August 22, 2015 at 10:30:26 AM UTC+2, ah...@marriott.org wrote= : > Has anyone managed to install GtkAda on a Mac, preferably GPL 2015. >=20 > Unfortunately AdaCore doesn't provide a GtkAda installation for MacOs as = part of its GPL offering however as there is a MacPort of Gtk I rather hope= d that all I had to do was compile the GtkAda bindings to Gtk. >=20 > So I installed MacPorts and Xcode and then did the port install of gtk3 += quartz. > This seemed to work. :-) > Apparently I now have Gtk 3.16.0 installed on my Mac. >=20 > On the perhaps faulty and naive assumption that compiling the GtkAda bind= ings would be the same as for linux I tried to use gtkada-gpl-2015-src.tar >=20 > After decompressing these sources I ran > CC=3D/usr/bin/gcc ./configure --prefix=3D/Users/Ahlan/Documents >=20 > This did lots of checking, liked what it found and created various makefi= les and .gpr files. > So far so good ;-) > =20 > I then started the build by issuing the command Make > This started - but quickly failed ;-( >=20 > gcc -c -gnat05 -gnatQ -O2 -gnatn -gnatws gtkada-mdi.adb > gcc -c -gnat05 -gnatQ -O2 -gnatn -gnatws gtkada-intl.adb > gcc -c -gnat05 -gnatQ -O2 -gnatn -gnatws gtkada-handlers.ads > gcc -c -gnat05 -gnatQ -O2 -gnatn -gnatws gtkada-file_selection.adb > /Users/Ahlan/Documents/gtkada-gpl-2015-src/src/misc_osx.m:37:10: fatal er= ror:=20 > 'gdk/gdkquartz.h' file not found > #include > ^ > gcc -c -gnat05 -gnatQ -O2 -gnatn -gnatws gtkada-dialogs.adb > 1 error generated. >=20 > compilation of misc_osx.m failed >=20 > gprbuild: *** compilation phase failed >=20 > Has anyone any idea why the file gdkquartz.h is missing? > Do I have to do something in addition to get the files for gdk Quartz? > Should I get this file and then see what happens next? > Or am I wasting my time? >=20 > Has anyone ventured down this path - perhaps even getting GtkAda to work? >=20 > Best wishes, > Ahlan