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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2e86351fb0d532e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GtkAda on Windows: Does anyone have a gtkada.gpr file? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Mon, 18 Oct 2010 09:50:16 +0200 Message-ID: <19e597vj3gojp.1t2ys58wl8lj7$.dlg@40tude.net> NNTP-Posting-Date: 18 Oct 2010 09:50:15 CEST NNTP-Posting-Host: 6d347fa5.newsspool3.arcor-online.net X-Trace: DXC=hQYV<`b]?;j016@cHD@m;jMcF=Q^Z^V3h4Fo<]lROoRa8kF On Sun, 17 Oct 2010 14:32:25 -0700 (PDT), Michael R wrote: > I've just starting to look at GtkAda on Windows. My Ubuntu system > makes it relatively > easy by supplying a gtkada2.gpr project file. Yep, instead of gtkada.gpr they invented gtkada2.gpr. When I use Fedora's GtkAda I add my own gtkada.gpr and some other gpr files to keep it consistent. But since GNAT FSF for Fedora/Ubuntu is quite broken anyway, I would not worry about that in your place. You better use GNAT GPL 2010 for Linux and its GtkAda instead. BTW, the Fedora GtkAda is also outdated, when I checked it last time. In particular pixbuf was not an gobject, if I correctly remember. That is very nasty incompatibility. In short, see above, do not use it. > The standard GtkAda distribution does > not supply a project file. No it does. That is C:\GtkAda\lib\gnat > The documentation suggest simply add > > -IC:\GtkAda\include\gtkada > > to a "gnatmake" command line is all that is needed. This is failing > for the simple.adb example: [..link errors...] > I guess I'm obviously missing something here. Anyone have any > suggestions? 1. If you are going to link using naked gnatmake, you have to add options to the linker, like -lgtk-win32-2.0 (and whatever, the list is long). 2. If you want to use gtkada.gpr, which is preferable of course, you need to make it available. There are many ways. One is to integrate it into the GNAT, like win32ada is. That is a bit complicated. A simpler one is to just add C:\GtkAda\lib\gnat to the ADA_PROJECT_PATH environment variable. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de