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:620a:469f:b0:765:aafa:5be5 with SMTP id bq31-20020a05620a469f00b00765aafa5be5mr1575qkb.4.1688076259504; Thu, 29 Jun 2023 15:04:19 -0700 (PDT) X-Received: by 2002:a63:2b02:0:b0:557:a2ae:9310 with SMTP id r2-20020a632b02000000b00557a2ae9310mr49188pgr.1.1688076259246; Thu, 29 Jun 2023 15:04:19 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!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 15:04:18 -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 22:04:19 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65381 List-Id: On Thursday, June 29, 2023 at 12:35:08=E2=80=AFPM UTC-7, Luke A. Guest wrot= e: > On 29/06/2023 18:34, Kenneth Wolcott wrote:=20 >=20 > > 1. I'm using gnatmake versus gprbuild because I just haven't gotten use= d to it yet, not avoiding it specifically. Of course it looks like it makes= things easier... > gnatmake cannot handle project files anymore, it is for building single= =20 > applications, e.g. gnatmake my_app.adb, nothing more. You need to use=20 > gprbuild with sdlada. > > 3. I have installed libsdl2 via MacPorts:=20 > > port list | grep sdl2=20 > > libsdl2_mixer @2.6.3 audio/libsdl2_mixer=20 > > libsdl2 @2.28.0 devel/libsdl2=20 > > libsdl2-snowleopard @2.0.22 devel/libsdl2-snowleopard=20 > > libsdl2_gfx @1.0.4 devel/libsdl2_gfx=20 > > libsdl2_image @2.6.3 devel/libsdl2_image=20 > > libsdl2_net @2.2.0 devel/libsdl2_net=20 > > libsdl2_ttf @2.20.2 devel/libsdl2_ttf > Right, so the other SDL libs usually install to the same place SDL is,=20 > so what are the locations? Run these commands and tell me the results:=20 Actually, me the dummy, provided for you all what MacPorts has, not what I = have :-) This is what I have installed via MacPorts: port installed | grep sdl libsdl2 @2.24.2_0 libsdl2 @2.26.1_0 libsdl2 @2.26.2_0 libsdl2 @2.26.3_0 libsdl2 @2.26.4_0 libsdl2 @2.26.5_0 libsdl2 @2.28.0_0 (active) > $ sdl2-config --cflags=20 > $ sdl2-config --libs sdl2-config --cflags -I/opt/local/include/SDL2 -D_THREAD_SAFE sdl2-config --libs -L/opt/local/lib -lSDL2 > > 4. Examples of Alire's "get" failure: > Forget about alire for now, I can update the main repo and you can grab= =20 > the source from there and use GPR_PROJECT_PATH=3D sdlada>/build/gnat:$GPR_PROJECT_PATH to build. Ok, cool. > > alr --no-color get libsdl2_ttf=20 > > ERROR: No source release indexed for the requested crate, and cannot us= e system packages in unknown distribution=20 > >=20 > > alr --no-color get libsdl2=20 > > ERROR: No source release indexed for the requested crate, and cannot us= e system packages in unknown distribution > They're probably missing from the mac m1 specific index. Well, that would probably explain the problem :-) Thanks, Ken