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,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:c3:b0:635:ec4c:975d with SMTP id f3-20020a05621400c300b00635ec4c975dmr34908qvs.1.1688425806411; Mon, 03 Jul 2023 16:10:06 -0700 (PDT) X-Received: by 2002:a17:902:7b92:b0:1b5:2607:3256 with SMTP id w18-20020a1709027b9200b001b526073256mr7460633pll.6.1688425805815; Mon, 03 Jul 2023 16:10:05 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!2.eu.feeder.erje.net!feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 3 Jul 2023 16:10:05 -0700 (PDT) In-Reply-To: <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com> <21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com> <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com> Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h" From: Kenneth Wolcott Injection-Date: Mon, 03 Jul 2023 23:10:06 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65415 List-Id: On Monday, July 3, 2023 at 4:01:44=E2=80=AFPM UTC-7, Kenneth Wolcott wrote: > On Monday, July 3, 2023 at 3:56:27=E2=80=AFPM UTC-7, Kenneth Wolcott wrot= e:=20 > > On Monday, July 3, 2023 at 1:11:29=E2=80=AFPM UTC-7, Luke A. Guest wrot= e:=20 > > > On 03/07/2023 20:58, Kenneth Wolcott wrote:=20 > > > > I don't think that downloading the zip file from GitHub would be an= y different than doing the git clone, but=20 > > > Just clone it.=20 > > Hi Luke;=20 > >=20 > > I've cloned the package.=20 > >=20 > > I've manually applied the patch to the cloned package.=20 > >=20 > > I'm about to build it now (fingers crossed).=20 > >=20 > > Thanks,=20 > > Ken > Well, I must have made one or more mistakes in the manual patching of the= files (*SIGH*)=20 >=20 > make SDL_PLATFORM=3Dmacos_ports SDL_MODE=3Drelease=20 > mkdir -p gen/src/=20 > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_ports \= =20 > -Ptools.gpr=20 > Setup=20 > [mkdir] object directory for project Tools=20 > Compile=20 > [Ada] gen_keyboard.adb=20 > [Ada] scancodes.ads=20 > [Ada] utils.adb=20 > Bind=20 > [gprbind] gen_keyboard.bexch=20 > [Ada] gen_keyboard.ali=20 > Link=20 > [link] gen_keyboard.adb=20 > ./gen/release/tools/gen_keyboard > gen/src/sdl-events-keyboards.ads=20 > gprbuild -p -gnat2012 -XSDL_MODE=3Drelease -XSDL_PLATFORM=3Dmacos_ports \= =20 > -Psdlada.gpr=20 > sdlada.gpr:16:07: undefined attribute "default_swiches"=20 > sdlada.gpr:17:03: ";" after declarative items expected=20 > sdlada.gpr:26:09: a variable cannot be declared for the first time here= =20 > sdlada.gpr:26:23: unknown variable "C_Switches"=20 > sdlada.gpr:34:08: undefined attribute "languages"=20 > sdlada.gpr:35:08: undefined attribute "source_dirs"=20 > sdlada.gpr:42:08: undefined attribute "library_name"=20 > sdlada.gpr:43:08: undefined attribute "object_dir"=20 > sdlada.gpr:44:08: undefined attribute "library_dir"=20 > sdlada.gpr:45:08: undefined attribute "library_kind"=20 > sdlada.gpr:47:04: a package cannot be declared here=20 > sdlada.gpr:79:04: a package cannot be declared here=20 > sdlada.gpr:108:05: expected "builder"=20 > gprbuild: "sdlada.gpr" processing failed=20 > make: *** [lib/libadasdl.a] Error 5=20 >=20 > 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=3Dmacos_ports SDL_MODE=3Ddebug mkdir -p gen/src/ gprbuild -p -gnat2012 -XSDL_MODE=3Ddebug -XSDL_PLATFORM=3Dmacos_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=3Ddebug -XSDL_PLATFORM=3Dmacos_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 t= he SDLAda port to MacPorts... Ken