From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:14f0:b0:635:f068:9739 with SMTP id k16-20020a05621414f000b00635f0689739mr702qvw.9.1688060044042; Thu, 29 Jun 2023 10:34:04 -0700 (PDT) X-Received: by 2002:a05:6870:2a49:b0:1b0:7f56:47d4 with SMTP id jd9-20020a0568702a4900b001b07f5647d4mr486381oab.8.1688060043809; Thu, 29 Jun 2023 10:34:03 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 29 Jun 2023 10:34:03 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com> <21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" From: Kenneth Wolcott Injection-Date: Thu, 29 Jun 2023 17:34:04 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65377 List-Id: On Thursday, June 29, 2023 at 9:06:56=E2=80=AFAM UTC-7, Simon Wright wrote: > "Luke A. Guest" writes:=20 >=20 > > Yeah, unfortunately I cannot remove the C files as they turn C macros= =20 > > into variables and are useful at runtime, see the sdlada repo for=20 > > someone who wants to get rid of them. > I had exactly this in tcladashell; even better, a Tcl script to generate= =20 > a C source, compiled against the Tcl/Tk libraries and run to generate=20 > Ada source specifying record sizes/alignments. Hi Luke & Simon; Let's see if I can properly address all of the wonderful responses in a s= ummarized fashion. 1. I'm using gnatmake versus gprbuild because I just haven't gotten used to= it yet, not avoiding it specifically. Of course it looks like it makes th= ings easier... 2. I stopped using Alire because I wanted a native gnat compiler and Alire = didn't provide one and now that I installed and am using Simon's (again, th= ank you) build, Alire refuses to "get" some interesting packages. I'll re= spond later with some specific examples. Perhaps I have Alire improperly i= nstalled or configured... 3. I have installed libsdl2 via MacPorts: port list | grep sdl2 libsdl2_mixer @2.6.3 audio/libsdl2_mixer libsdl2 @2.28.0 devel/libsdl2 libsdl2-snowleopard @2.0.22 devel/libsdl2-snowleopard libsdl2_gfx @1.0.4 devel/libsdl2_gfx libsdl2_image @2.6.3 devel/libsdl2_image libsdl2_net @2.2.0 devel/libsdl2_net libsdl2_ttf @2.20.2 devel/libsdl2_ttf 4. Examples of Alire's "get" failure: alr --no-color search --crates sdl labs_solar_system A set of SDL-based exercises to learn Ada libsdl2 Simple DirectMedia Layer development files libsdl2_image Simple DirectMedia Layer development files - Image libsdl2_ttf Simple DirectMedia Layer development files - TTF pygamer_simulator SDL simulator of the AdaFruit PyGamer console sdlada Ada 2012 SDL 2.x bindings. alr --no-color get sdlada Warning: Warning: New solution is incomplete. Warning: +~ libsdl2 ^2.0.0 (new,external) Warning: +~ libsdl2_image ^2.0.0 (new,external) Warning: +~ libsdl2_ttf ^2.0.0 (new,external) Warning: + make 3.81.0 (new) Warning: Warning: Could not find a complete solution for sdlada=3D2.5.5 Build will fail unless externals are made available, do you want to continu= e? [Y] Yes [N] No (default is No) n ERROR: Crate retrieval abandoned. alr --no-color get libsdl2_ttf ERROR: No source release indexed for the requested crate, and cannot use sy= stem packages in unknown distribution alr --no-color get libsdl2 ERROR: No source release indexed for the requested crate, and cannot use sy= stem packages in unknown distribution Thanks, Ken