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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,516fa714bab424cb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPS 2010 for AVR Date: Thu, 29 Jul 2010 21:08:14 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 29 Jul 2010 20:08:16 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="28490"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8piHfUBot6gs8XxViE1y0jZO215inNNs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:TVsaOLdbEXMYq45Xlof1Trqvbxo= sha1:2lZW1gHBgI2h/p1KxiqIHWywrig= Xref: g2news1.google.com comp.lang.ada:12685 Date: 2010-07-29T21:08:14+01:00 List-Id: Warren writes: > I have in my C:\GNAT-AVR\2010\bin directory the > necessary executables, including avr-gnatmake.exe, > etc. > > So where do I configure this for GPS? Go into Project > Edit Project Properties, select the Language tab. In the lower half (Tools) > Compiler, click on 'gnatmake'. I see a little diaog with an option pulldown - click on this and there is avr-gnatmake! Might be as well to do the others as well (I see no avr-gdb, better GIRFT. Or build/test the main app logic on the host). > How can I set this for ALL projects -- after all, > this is the win-avr version of GPS. GPS is a host application, which supports multiple targets. The way we've worked in a GNAT Pro environment is that gnatmake and powerpc-wrs-vxworks-gnatmake (in your case, avr-gnatmake) and friends all live in the same folder. Indeed, the way to install the cross-environment is to install the host compiler first and then the cross; on Windows it defaults to the same install head. That's part of the reason for having -gnatmake. Our GPRs are set up to use environment variables to choose whether to build for the host or the target. I don't know whether you can do this from the project properties editor in GPS, but you can certainly do it in Emacs! (nor Notepad, come to that).