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: a07f3367d7,5059e1c3870d4dc8 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!1g2000vbu.googlegroups.com!not-for-mail From: jrmarino Newsgroups: comp.lang.ada Subject: Re: Ada on Android? Date: Wed, 7 Sep 2011 22:51:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4c50bf38-c045-425d-ac17-73450726ec74@1g2000vbu.googlegroups.com> References: <82zkiihpjo.fsf@stephe-leake.org> <657d70d1-2df5-4436-a44c-c97228daff27@l4g2000vbv.googlegroups.com> <4E665060.2060903@obry.net> <3b8dc9c5-6e29-46f3-877f-e9aa92149e6d@u20g2000yqj.googlegroups.com> <82bouvkhsx.fsf@stephe-leake.org> NNTP-Posting-Host: 90.38.105.198 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1315461196 23983 127.0.0.1 (8 Sep 2011 05:53:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Sep 2011 05:53:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 1g2000vbu.googlegroups.com; posting-host=90.38.105.198; posting-account=Zsf4jwoAAADEqwCydv835KU9-S3h_Y26 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HNKRUAELSC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21848 Date: 2011-09-07T22:51:52-07:00 List-Id: On Sep 8, 2:18=A0am, Stephen Leake wrote: > jrmarino writes: > > On Sep 6, 6:54=A0pm, Pascal Obry wrote: > >> Le 05/09/2011 22:15, onox a =E9crit : > > >> > You might be interested in checking the GNATDroid (Android 2.3+) cro= ss- > >> > compiler for FreeBSD athttp://www.dragonlace.net/ > > >> I haven't looked, but is there a script or instruction to build a cros= s > >> for Android somewhere? > > >> Pascal. > > > Pascal, > > Only the GNAT-AUX repository has the necessary patches to build GNAT > > for Android. =A0 > > This is ambiguous. Android is an operating system; you also need to > specify the machine when talking about cross compilers. > > As far as I can tell, GNAT-AUX only targets the ARM machine. > > > Unless somebody duplicates my work, any new android cross-compiler > > would have use this codebase. > > I see no reason why the GNAT GPL 2011 jvm target should not work for > Android (except for the bugs I'm complaining about, of course. but they > are at a different level of detail :). > > -- > -- Stephe Stephe, you're talking apples to oranges. We're talking about building native Ada applications which (like native C/C++ applications) could utilize the Android API for windows, accelerator sensor access, etc. The binding with those libraries still need to be made, and you need to wrap in the xml manifests described in the "nativeactivity" capability that was introduced with Android 2.3. You're talking about building the apps in the Java VM I think, and that's just an entirely different approach. GNAT-AUX specifically targets x86, x86_64 on four BSDs and Solaris, and ARM on Android. It will very likely work on other platforms (namely Linux) and even other processors, but that is just a carryover from gcc and it's not tested. Stock GCC/GNAT can not be built for Android/ARM, although it should work fine for Linux/ARM. John