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: Wed, 28 Jun 2023 23:45:38 +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: Wed, 28 Jun 2023 22:45:39 -0000 (UTC) Injection-Info: dont-email.me; posting-host="9bb87ce4a1063252a21a0715e161b0ea"; logging-data="1992169"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GPm6b/3v62vDfr9fWk8ve5Oqf+N7RNJg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Cancel-Lock: sha1:Bbaadz+QuyVVJR3hkxeMZ1hLN2w= In-Reply-To: <21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> Content-Language: en-GB Xref: news.eternal-september.org comp.lang.ada:65369 List-Id: On 28/06/2023 22:53, Kenneth Wolcott wrote: >> I heavily use MacPorts. I keep hearing that it is a very bad idea to have MacPorts and HomeBrew concurrently installed on the same machine. Is it at all possible to do this without HomeBrew? Apparently I did not read your documentation carefully enough...I thought that having SDL installed via HomeBrew was optional, not required. I didn't get it working on Mac myself, I originally started to get it going using the downloadable binaries you can just drag n drop. Others got it working with brew, afaik. > Since I'm not using ALIRE (ALR), but using gnatmake (I'm on a Mac mini with an M1 chip, ALR refuses to get most packages because I don't have a native Ada compiler), I thought that the HomeBrew mention was in regards to using the SDLAda package via ALIRE. > > So that's a different problem requiring a different post :-) You're probably better off using git to grab it, then modify the makefile and gpr's for a specific macos macports port, add a new Platform_Type, macosx_macports and add what you need inside the sdlada.gpr. Then you can call make SDL_PLATFORM=macosx_macports SDL_MODE=release to build it. Check whatever sdl2-config --cflags produces on that port. If the headers are in different directories, you'll need to modify the version*.c files with extra #ifdef's for macports.