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.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6335bb3f8dfd1c4a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.94.8 with SMTP id cy8mr2306561wib.1.1355719048580; Sun, 16 Dec 2012 20:37:28 -0800 (PST) Path: i11ni197096wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!feed.xsnews.nl!border-3.ams.xsnews.nl!post-feeder-01.xsnews.nl!frontend-F10-11.ams.news.kpn.nl From: "ldries46" Newsgroups: comp.lang.ada References: <50cdd1b6$0$18189$703f8584@news.kpn.nl> In-Reply-To: Subject: Re: gtkada.gpr usage Date: Mon, 17 Dec 2012 05:36:22 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Message-ID: <50ce9fa5$0$17411$703f8584@news.kpn.nl> Organization: KPN.com NNTP-Posting-Host: 77.168.179.107 X-Trace: 1355718565 news.kpn.nl 17411 77.168.179.107@kpn/77.168.179.107:49867 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Date: 2012-12-17T05:36:22+01:00 List-Id: I did again install the Gtkada library and saw that I got the following error in the detail window: collect2: ld returned 1 exit status gnatmake: gcc execution error It was further told that the installation of the files was complete but the building of the libraries was not complete. I therefor installed GPS again and got when reinstalling Gtkada the same error again. Checked if the ali files were present in the lib/gnat directory and found they were present. Changing static to relocatable in the gtkada.gpr file did not change the outcome If I merge the gtkada.gpr with my own gpr and include the source directory of Gtkada the program is compiled coorectly. So my problem stays what did I do wrong with original methode? "Dmitry A. Kazakov" schreef in bericht news:mjh9nsr3ncah$.1eq83ckmyzcwl.dlg@40tude.net... On Sun, 16 Dec 2012 14:45:14 +0100, ldries46 wrote: > Various times I tried after recommendation by others to include the "with > gtkada statement in my project file (with GNAT programming studio) > Every time I do get error message like this: > > gnatmake -d -PE:\ada\project\Algemeen\Algemeen.gpr -XLIBRARY_TYPE=static > Algemeen.adb -j4 -s > gnatbind -I- -x E:\ada\project\Algemeen\build\algemeen.ali > error: "gtk.ali" not found, "gtk.ads" must be compiled > error: "glib.ali" not found, "glib.adb" must be compiled > gnatmake: *** bind failed. What happens when you link dynamically? It does not make much sense to link GtkAda statically since Gtk is linked dynamically anyway. And static linking to GtkAda posed problems in the past. > My GNAT GPS installation is on D:\Program files\GNAT\ 2012 and my > GtkADA installation is on D:\program files\GNAT\GtkADA > I do use GPR_PROJECT_PATH with the value D:\Program > Files\2012\lib\gnat;D:\Program Files\GNAT\Gtkada\lib\gnat; > The files are present in the directory D:\Program > Files\GNAT\Gtkada\lib\gnat. It is not the project path but missing compiled instances of GtkAda which make trouble in your case. GtkAda (under Windows) is compiled when you install it. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de