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=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" Date: Thu, 29 Jun 2023 20:35:04 +0100 Organization: A noiseless patient Spider Message-ID: References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com> <21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 29 Jun 2023 19:35:04 -0000 (UTC) Injection-Info: dont-email.me; posting-host="9bb87ce4a1063252a21a0715e161b0ea"; logging-data="2366110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6/Qno+s3nih7EOdyZsajigFn05cfe0UA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cancel-Lock: sha1:gf3jrCvBDY74UUI5s+Xg6C8Bf6Y= In-Reply-To: Content-Language: en-GB Xref: news.eternal-september.org comp.lang.ada:65379 List-Id: On 29/06/2023 18:34, Kenneth Wolcott wrote: > 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 things easier... gnatmake cannot handle project files anymore, it is for building single applications, e.g. gnatmake my_app.adb, nothing more. You need to use gprbuild with sdlada. > 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 Right, so the other SDL libs usually install to the same place SDL is, so what are the locations? Run these commands and tell me the results: $ sdl2-config --cflags $ sdl2-config --libs > 4. Examples of Alire's "get" failure: Forget about alire for now, I can update the main repo and you can grab the source from there and use GPR_PROJECT_PATH=/build/gnat:$GPR_PROJECT_PATH to build. > alr --no-color get libsdl2_ttf > ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution > > alr --no-color get libsdl2 > ERROR: No source release indexed for the requested crate, and cannot use system packages in unknown distribution They're probably missing from the mac m1 specific index.