comp.lang.ada
 help / color / mirror / Atom feed
From: Kenneth Wolcott <kennethwolcott@gmail.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
Date: Thu, 29 Jun 2023 10:34:03 -0700 (PDT)	[thread overview]
Message-ID: <b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> (raw)
In-Reply-To: <ly352aqmlg.fsf@pushface.org>

On Thursday, June 29, 2023 at 9:06:56 AM UTC-7, Simon Wright wrote:
> "Luke A. Guest" writes: 
> 
> > Yeah, unfortunately I cannot remove the C files as they turn C macros 
> > into variables and are useful at runtime, see the sdlada repo for 
> > someone who wants to get rid of them.
> I had exactly this in tcladashell; even better, a Tcl script to generate 
> a C source, compiled against the Tcl/Tk libraries and run to generate 
> Ada source specifying record sizes/alignments.

Hi Luke & Simon;

  Let's see if I can properly address all of the wonderful responses in a summarized 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 things 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, thank you) build, Alire refuses to "get" some interesting packages.   I'll respond later with some specific examples.  Perhaps I have Alire improperly installed 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=2.5.5
Build will fail unless externals are made available, do you want to continue?
[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 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

Thanks,
Ken

  reply	other threads:[~2023-06-29 17:34 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-28 18:38 SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" Kenneth Wolcott
2023-06-28 21:13 ` Luke A. Guest
2023-06-28 21:18   ` Kenneth Wolcott
2023-06-28 21:53     ` Kenneth Wolcott
2023-06-28 22:45       ` Luke A. Guest
2023-06-29  0:17         ` Kenneth Wolcott
2023-06-29  9:50           ` Luke A. Guest
2023-06-29 13:12       ` Simon Wright
2023-06-29 13:39         ` Luke A. Guest
2023-06-29 16:06           ` Simon Wright
2023-06-29 17:34             ` Kenneth Wolcott [this message]
2023-06-29 19:35               ` Luke A. Guest
2023-06-29 22:04                 ` Kenneth Wolcott
2023-06-30  8:04                   ` Luke A. Guest
2023-06-30 15:41                     ` Kenneth Wolcott
2023-06-30 15:43                       ` Luke A. Guest
2023-06-30 11:30                   ` Luke A. Guest
2023-06-30 13:26                     ` Luke A. Guest
2023-07-02  7:01                       ` Luke A. Guest
2023-07-02 17:05                         ` Kenneth Wolcott
2023-07-02 19:23                           ` Simon Wright
2023-07-02 19:26                             ` Kenneth Wolcott
2023-07-02 19:52                               ` Luke A. Guest
2023-07-02 20:20                                 ` Kenneth Wolcott
2023-07-02 21:34                                   ` Kenneth Wolcott
2023-07-02 21:40                                   ` Luke A. Guest
2023-07-02 21:59                                     ` Kenneth Wolcott
2023-07-03 12:23                                       ` Luke A. Guest
2023-07-03 19:58                                         ` Kenneth Wolcott
2023-07-03 20:10                                           ` Luke A. Guest
2023-07-03 20:11                                           ` Luke A. Guest
2023-07-03 22:56                                             ` Kenneth Wolcott
2023-07-03 23:01                                               ` Kenneth Wolcott
2023-07-03 23:10                                                 ` Kenneth Wolcott
2023-07-03 23:24                                                   ` Keith Thompson
2023-07-03 23:58                                                     ` Kenneth Wolcott
2023-07-04  9:00                                                       ` Luke A. Guest
2023-07-06 19:37                                                         ` Kenneth Wolcott
2023-07-07  1:23                                                           ` Kenneth Wolcott
2023-07-07  1:25                                                             ` Kenneth Wolcott
2023-07-12  5:43                                                               ` Kenneth Wolcott
2023-07-12  6:01                                                                 ` Kenneth Wolcott
2023-07-12 15:44                                                                   ` Luke A. Guest
2023-07-12 23:09                                                                     ` Kenneth Wolcott
2023-07-12 23:11                                                                       ` Kenneth Wolcott
2023-07-13 10:59                                                                         ` Luke A. Guest
2023-07-13 14:14                                                                           ` Rod Kay
2023-07-13 15:15                                                                             ` Kenneth Wolcott
2023-07-04  8:59                                                     ` Luke A. Guest
2023-07-04  8:57                                                 ` Luke A. Guest
2023-06-29 21:22               ` Simon Wright
2023-06-29 22:12                 ` Kenneth Wolcott
2023-06-29 19:29             ` Luke A. Guest
2023-06-29 11:33     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox