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: Mon, 3 Jul 2023 16:10:05 -0700 (PDT)	[thread overview]
Message-ID: <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com> (raw)
In-Reply-To: <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>

On Monday, July 3, 2023 at 4:01:44 PM UTC-7, Kenneth Wolcott wrote:
> On Monday, July 3, 2023 at 3:56:27 PM UTC-7, Kenneth Wolcott wrote: 
> > On Monday, July 3, 2023 at 1:11:29 PM UTC-7, Luke A. Guest wrote: 
> > > On 03/07/2023 20:58, Kenneth Wolcott wrote: 
> > > > I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but 
> > > Just clone it. 
> > Hi Luke; 
> > 
> > I've cloned the package. 
> > 
> > I've manually applied the patch to the cloned package. 
> > 
> > I'm about to build it now (fingers crossed). 
> > 
> > Thanks, 
> > Ken
> Well, I must have made one or more mistakes in the manual patching of the files (*SIGH*) 
> 
> make SDL_PLATFORM=macos_ports SDL_MODE=release 
> mkdir -p gen/src/ 
> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ 
> -Ptools.gpr 
> Setup 
> [mkdir] object directory for project Tools 
> Compile 
> [Ada] gen_keyboard.adb 
> [Ada] scancodes.ads 
> [Ada] utils.adb 
> Bind 
> [gprbind] gen_keyboard.bexch 
> [Ada] gen_keyboard.ali 
> Link 
> [link] gen_keyboard.adb 
> ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads 
> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \ 
> -Psdlada.gpr 
> sdlada.gpr:16:07: undefined attribute "default_swiches" 
> sdlada.gpr:17:03: ";" after declarative items expected 
> sdlada.gpr:26:09: a variable cannot be declared for the first time here 
> sdlada.gpr:26:23: unknown variable "C_Switches" 
> sdlada.gpr:34:08: undefined attribute "languages" 
> sdlada.gpr:35:08: undefined attribute "source_dirs" 
> sdlada.gpr:42:08: undefined attribute "library_name" 
> sdlada.gpr:43:08: undefined attribute "object_dir" 
> sdlada.gpr:44:08: undefined attribute "library_dir" 
> sdlada.gpr:45:08: undefined attribute "library_kind" 
> sdlada.gpr:47:04: a package cannot be declared here 
> sdlada.gpr:79:04: a package cannot be declared here 
> sdlada.gpr:108:05: expected "builder" 
> gprbuild: "sdlada.gpr" processing failed 
> make: *** [lib/libadasdl.a] Error 5 
> 
> Ken

After adding a semi-colon at the following line in sdlada.gpr

  for Default_Swiches ("Ada") use ("-gnat202", "-gnata");

We have the following when trying to make again:

make SDL_PLATFORM=macos_ports SDL_MODE=debug
mkdir -p gen/src/
gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
		-Ptools.gpr
Setup
   [mkdir]        object directory for project Tools
Compile
   [Ada]          gen_keyboard.adb
   [Ada]          scancodes.ads
   [Ada]          utils.adb
Bind
   [gprbind]      gen_keyboard.bexch
   [Ada]          gen_keyboard.ali
Link
   [link]         gen_keyboard.adb
./gen/debug/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads
gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
		-Psdlada.gpr
sdlada.gpr:16:07: undefined attribute "default_swiches"
sdlada.gpr:26:09: a variable cannot be declared for the first time here
sdlada.gpr:26:23: unknown variable "C_Switches"
gprbuild: "sdlada.gpr" processing failed
make: *** [lib/libadasdl.a] Error 5

I hope that this shows that I made mistake(s) that can be shown to me that I can fix or that this is clear regarding what still needs to be done for the SDLAda port to MacPorts...

Ken

  reply	other threads:[~2023-07-03 23:10 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
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 [this message]
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