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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,50726d0ce9421ec6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!postnews.google.com!k37g2000hsf.googlegroups.com!not-for-mail From: Joe Newsgroups: comp.lang.ada Subject: Re: Using GtkAda in Ubuntu Date: Thu, 11 Sep 2008 14:22:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7dc1e743-0be8-45cc-ba63-93aa6ccc1ede@k37g2000hsf.googlegroups.com> References: <76b70293-fe58-48ff-98e8-fdf3af209fd6@i76g2000hsf.googlegroups.com> <878wtyquxi.fsf@ludovic-brenta.org> NNTP-Posting-Host: 134.240.241.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1221168165 16542 127.0.0.1 (11 Sep 2008 21:22:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 11 Sep 2008 21:22:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k37g2000hsf.googlegroups.com; posting-host=134.240.241.2; posting-account=ZyfIlgoAAADvwmSv7gUPoyt-iOc2yu_g User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko/2008090211 Ubuntu/8.10 (intrepid) Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1989 Date: 2008-09-11T14:22:45-07:00 List-Id: On Sep 11, 4:39=A0pm, Ludovic Brenta wrote: > Joe writes: > > Hey all, > > > I'm having some trouble getting GtkAda setup on my computer. > > > I'm using Ubuntu 8.10, gtkAda 2.12 and gnat 4.3.1. > > > Compiling the simple window example results in this: > > > simple.adb:1:06: file "gtk.ads" not found > > gnatmake: "simple.adb" compilation error > > How did you set up your source files and how did you invoke gnatmake? > > > > > I have installed all the libgtkada's, and gnat-glade installed. > > > I think it has to do with the gtkada2-config script. I think the paths > > that the script looks for are different than what I have. On my system > > I don't have /usr/lib/gtkada or /usr/include/gtkada. The path for > > gtkada seems to be /usr/lib/ada/adalib/gtkada2 and /usr/share/ada/ > > adainclude/gtkada2 > > > I changed the libdir and includedir script variables to the locations > > on my computer and compiling mostly worked until I got this: > > > /usr/bin/ld: cannot find -lgtkada > > collect2: ld returned 1 exit status > > gnatlink: error when calling /usr/bin/gcc-4.3 > > gnatmake: *** link failed. > > > Any help would be appreciated. =A0Also, is there someway to put the > > many .ali and .o files somewhere else. > > Yes, read /usr/share/doc/libgtkada2-dev/README.Debian and > /usr/share/ada/adainclude/gtkada2.gpr. > > The problem with gtkada2-config is known ashttp://bugs.debian.org/497407 > > -- > Ludovic Brenta. Awesome, got it to work. I set it up like so: example.adb example.gpr gtkada2.gpr obj gnatmake -Pexample Thanks a lot for the help.