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,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: Simon Wright 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 12:33:44 +0100 Organization: A noiseless patient Spider Message-ID: References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="01bc129a055bf06d3ed09199f4a59a8c"; logging-data="2263928"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/a1wgi7RApELeU9vhZuFsEPqIkc/aFubA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:WMzfPleeqEH0yFwMN4kXz2+nMgo= sha1:xxJzTBlLMc3Bx0J/0sGAnbPnnBY= Xref: news.eternal-september.org comp.lang.ada:65373 List-Id: Kenneth Wolcott writes: > 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. It's quite tricky to get the C includes and library directories working; using Homebrew doesn't make it any easier, and the fact that the Mac compilers (both the ones I've provided and the ones you get via Alire) don't look in /usr/local by default doesn't help. Having the external SDL2/SDL2_images/SDL22_ttf installed via Homebrew isn't mandatory, but they do have to be installed! I expect that MacPorts can do this. With HomeBrew, installed packages are(almost always) under $HOMEBREW_PREFIX, and I've defined these environment variables globally: export C_INCLUDE_PATH=$HOMEBREW_PREFIX/include export LIBRARY_PATH=$HOMEBREW_PREFIX/lib I'd be surprised if MacPorts doesn't do similar (e.g. MACPORTS_PREFIX=/opt/local ??).