Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Everyone's head is a cheap movie show." -- Jeff G. Bone


devel / comp.lang.ada / Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

SubjectAuthor
* SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"Kenneth Wolcott
`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
 `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  +* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |+* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  ||`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  || `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttSimon Wright
  | `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |  `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttSimon Wright
  |   +* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   |+* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   || +* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   || |`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   || | `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   || `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||  `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||   `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||    `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||     `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttSimon Wright
  |   ||      `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||       `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||        `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||         +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||         `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||          `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||           `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||            `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||             +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||             `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||              +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||              +* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||              |`- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||              `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||               +* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKeith Thompson
  |   ||               |`- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||               `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||                +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                 `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||                  +- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                  `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   ||                   `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  |   ||                    `* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingRod Kay
  |   ||                     `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   |`* Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttSimon Wright
  |   | `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttKenneth Wolcott
  |   `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missingLuke A. Guest
  `- Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttSimon Wright

Pages:123
Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9804&group=comp.lang.ada#9804

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:468c:b0:762:41c7:f66b with SMTP id bq12-20020a05620a468c00b0076241c7f66bmr26115qkb.10.1688325974780;
Sun, 02 Jul 2023 12:26:14 -0700 (PDT)
X-Received: by 2002:a25:25c3:0:b0:c4c:da03:c2e3 with SMTP id
l186-20020a2525c3000000b00c4cda03c2e3mr24018ybl.4.1688325974422; Sun, 02 Jul
2023 12:26:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 2 Jul 2023 12:26:14 -0700 (PDT)
In-Reply-To: <lyr0pq2k4i.fsf@pushface.org>
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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sun, 02 Jul 2023 19:26:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2925
 by: Kenneth Wolcott - Sun, 2 Jul 2023 19:26 UTC

On Sunday, July 2, 2023 at 12:23:12 PM UTC-7, Simon Wright wrote:
> Kenneth Wolcott writes:
>
> > On Sunday, July 2, 2023 at 12:01:44 AM UTC-7, Luke A. Guest wrote:
> >> On 30/06/2023 14:26, Luke A. Guest wrote:
> >> > On 30/06/2023 12:30, Luke A. Guest wrote:
> >> >> The /build/gnat gpr's have got a bit confused by the looks of things.
> >> >>
> >> >> Can you try this patch, it's made from a stash from a diff branch, if
> >> >> it works I'll apply it and push it.
> >> >
> >> > Ignore that, I forgot something, try this one instead.
> >> >
> >>
> >> Hello? Did this work for you?
> >
> > Hi Luke;
> >
> > I'm not sure what you want me to try.
> >
> > I don't see an attachment. I don't see a URL. I don't see a
> > specific mention of a "patch"? on GitHub. Obviously I'm missing
> > something. Sorry I appear quite daft :-(
> >
> > Thanks,
> > Ken
> Google Groups has suppressed Luke's two posts with attached patches.

Well, that's a very logical explanation for me not seeing anything to respond to :-)

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u7skij$3d9vl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9805&group=comp.lang.ada#9805

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Sun, 2 Jul 2023 20:52:51 +0100
Organization: A noiseless patient Spider
Lines: 199
Message-ID: <u7skij$3d9vl$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7i7ql$1sa0a$1@dont-email.me>
<5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 19:52:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d2e373835969da469cdae163b3cb584";
logging-data="3581941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rY8nokkRGg4MQQKMPX/Jpp+Jx+BYFTYg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:TiMkmCGXTVJhbxdIQ8sOaNooW1o=
In-Reply-To: <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
Content-Language: en-GB
 by: Luke A. Guest - Sun, 2 Jul 2023 19:52 UTC

On 02/07/2023 20:26, Kenneth Wolcott wrote:

>> Google Groups has suppressed Luke's two posts with attached patches.
>
> Well, that's a very logical explanation for me not seeing anything to respond to :-)

Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
< test.patch):

diff --git a/build/gnat/makefile b/build/gnat/makefile
index b13930f..0046490 100644
--- a/build/gnat/makefile
+++ b/build/gnat/makefile
@@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
$(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
-XSDL_PLATFORM=$(SDL_PLATFORM) \
- -Ptests.gpr ${SDL2_CONFIG}
+ -Ptests.gpr # ${SDL2_CONFIG}

# Maths library

@@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

build_unit_tests/unit_tests:
$(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
-XSDL_PLATFORM=$(SDL_PLATFORM) \
- -Punit_tests.gpr ${SDL2_CONFIG}
+ -Punit_tests.gpr # ${SDL2_CONFIG}

.PHONY: clean-unit_tests

diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
index adc77f5..13ef8ee 100644
--- a/build/gnat/sdlada.gpr
+++ b/build/gnat/sdlada.gpr
@@ -1,10 +1,21 @@
library project SDLAda is
- type Platform_Type is ("linux", "bsd", "windows", "macosx",
"macos_homebrew", "ios", "android");
+ type Platform_Type is ("linux",
+ "bsd",
+ "windows",
+ "macosx",
+ "macos_homebrew",
+ "macos_ports",
+ "ios",
+ "android");
type Mode_Type is ("debug", "release");

Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
Mode : Mode_Type := external ("SDL_MODE", "debug");

+ package Builder is
+ for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
+ end Builder;
+ Source_Platform := "";

case Platform is
@@ -52,6 +63,11 @@ library project SDLAda is
"-I/usr/local/include",
"-D_REENTRANT");

+ when "macos_ports" =>
+ C_Switches := C_Switches & ("-DSDL_MACPORTS",
+ "-I/opt/local/include",
+ "-D_THREAD_SAFE");
+ when others =>
null;
end case;
@@ -59,4 +75,33 @@ library project SDLAda is
for Default_Switches ("C") use Common_Switches & C_Switches;
for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
end Compiler;
+ + package Linker is
+ Linker_Switches := ();
+ + case Platform is
+ when "linux" | "bsd" | "android" | "windows" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/usr/lib64");
+ + when "macos_homebrew" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/usr/local/lib");
+ + when "macos_ports" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/opt/local/lib");
+ + when others =>
+ null;
+ end case;
+ + for Switches ("Ada") use Linker_Switches;
+ end Linker;
end SDLAda;
diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr
index 1098095..5a9764f 100644
--- a/build/gnat/sdlada_image.gpr
+++ b/build/gnat/sdlada_image.gpr
@@ -11,4 +11,5 @@ library project SDLAda_Image is
for Library_Version use "libsdlada_image.so." & Version;

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;
end SDLAda_Image;
diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
index 70dceff..51ee201 100644
--- a/build/gnat/tests.gpr
+++ b/build/gnat/tests.gpr
@@ -15,24 +15,5 @@ project Tests is
"ttf.adb");

package Compiler renames SDLAda.Compiler;
- - package Linker is
- - Linker_Switches := ();
- - case Sdlada.Platform is
- when "macos_homebrew" =>
- Linker_Switches := Linker_Switches & ("-lSDL2",
- "-lSDL2_ttf",
- "-lSDL2_image",
- "-L/usr/local/lib");
- - when others =>
- null;
- end case;
- - for Switches ("Ada") use Linker_Switches;
- - end Linker;
- + package Linker renames SDLAda.Linker;
end Tests;
diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
index f23be3c..fd68309 100644
--- a/build/gnat/tests_image.gpr
+++ b/build/gnat/tests_image.gpr
@@ -8,6 +8,7 @@ project Tests_Image is
for Main use ("load_surface.adb");

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;

-- package Builder is
-- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
--, "-gnatG");
diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
index c469a34..27dd38f 100644
--- a/build/gnat/unit_tests.gpr
+++ b/build/gnat/unit_tests.gpr
@@ -17,4 +17,5 @@ project Unit_Tests is
-- end Ide;

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;
end Unit_Tests;
diff --git a/src/image/version_images.c b/src/image/version_images.c
index ba5be68..47813a1 100644
--- a/src/image/version_images.c
+++ b/src/image/version_images.c
@@ -21,7 +21,7 @@
* distribution.
**********************************************************************************************************************/
#ifdef __APPLE__
- #ifdef SDL_HOMEBREW
+ #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
#include <SDL2/SDL_image.h>
#else
#include <SDL2_image/SDL_image.h>
diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
index cedfebc..0819103 100644
--- a/src/ttf/version_ttf.c
+++ b/src/ttf/version_ttf.c
@@ -21,7 +21,7 @@
* distribution.
**********************************************************************************************************************/
#ifdef __APPLE__
- #ifdef SDL_HOMEBREW
+ #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
#include <SDL2/SDL_ttf.h>
#else
#include <SDL2_ttf/SDL_ttf.h>

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9806&group=comp.lang.ada#9806

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:468f:b0:765:6a0f:8279 with SMTP id bq15-20020a05620a468f00b007656a0f8279mr23116qkb.0.1688329223372;
Sun, 02 Jul 2023 13:20:23 -0700 (PDT)
X-Received: by 2002:a05:6a00:2d02:b0:663:517c:82f with SMTP id
fa2-20020a056a002d0200b00663517c082fmr10419403pfb.6.1688329223009; Sun, 02
Jul 2023 13:20:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 2 Jul 2023 13:20:22 -0700 (PDT)
In-Reply-To: <u7skij$3d9vl$1@dont-email.me>
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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sun, 02 Jul 2023 20:20:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 9179
 by: Kenneth Wolcott - Sun, 2 Jul 2023 20:20 UTC

On Sunday, July 2, 2023 at 12:52:55 PM UTC-7, Luke A. Guest wrote:
> On 02/07/2023 20:26, Kenneth Wolcott wrote:
>
> >> Google Groups has suppressed Luke's two posts with attached patches.
> >
> > Well, that's a very logical explanation for me not seeing anything to respond to :-)
> Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
> < test.patch):
>
> diff --git a/build/gnat/makefile b/build/gnat/makefile
> index b13930f..0046490 100644
> --- a/build/gnat/makefile
> +++ b/build/gnat/makefile
> @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)
>
> tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
> $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
> -XSDL_PLATFORM=$(SDL_PLATFORM) \
> - -Ptests.gpr ${SDL2_CONFIG}
> + -Ptests.gpr # ${SDL2_CONFIG}
>
> # Maths library
>
> @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests
>
> build_unit_tests/unit_tests:
> $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
> -XSDL_PLATFORM=$(SDL_PLATFORM) \
> - -Punit_tests.gpr ${SDL2_CONFIG}
> + -Punit_tests.gpr # ${SDL2_CONFIG}
>
> .PHONY: clean-unit_tests
>
> diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
> index adc77f5..13ef8ee 100644
> --- a/build/gnat/sdlada.gpr
> +++ b/build/gnat/sdlada.gpr
> @@ -1,10 +1,21 @@
> library project SDLAda is
> - type Platform_Type is ("linux", "bsd", "windows", "macosx",
> "macos_homebrew", "ios", "android");
> + type Platform_Type is ("linux",
> + "bsd",
> + "windows",
> + "macosx",
> + "macos_homebrew",
> + "macos_ports",
> + "ios",
> + "android");
> type Mode_Type is ("debug", "release");
>
> Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
> Mode : Mode_Type := external ("SDL_MODE", "debug");
>
> + package Builder is
> + for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
> + end Builder;
> +
> Source_Platform := "";
>
> case Platform is
> @@ -52,6 +63,11 @@ library project SDLAda is
> "-I/usr/local/include",
> "-D_REENTRANT");
>
> + when "macos_ports" =>
> + C_Switches := C_Switches & ("-DSDL_MACPORTS",
> + "-I/opt/local/include",
> + "-D_THREAD_SAFE");
> +
> when others =>
> null;
> end case;
> @@ -59,4 +75,33 @@ library project SDLAda is
> for Default_Switches ("C") use Common_Switches & C_Switches;
> for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
> end Compiler;
> +
> + package Linker is
> + Linker_Switches := ();
> +
> + case Platform is
> + when "linux" | "bsd" | "android" | "windows" =>
> + Linker_Switches := Linker_Switches & ("-lSDL2",
> + "-lSDL2_ttf",
> + "-lSDL2_image",
> + "-L/usr/lib64");
> +
> + when "macos_homebrew" =>
> + Linker_Switches := Linker_Switches & ("-lSDL2",
> + "-lSDL2_ttf",
> + "-lSDL2_image",
> + "-L/usr/local/lib");
> +
> + when "macos_ports" =>
> + Linker_Switches := Linker_Switches & ("-lSDL2",
> + "-lSDL2_ttf",
> + "-lSDL2_image",
> + "-L/opt/local/lib");
> +
> + when others =>
> + null;
> + end case;
> +
> + for Switches ("Ada") use Linker_Switches;
> + end Linker;
> end SDLAda;
> diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr
> index 1098095..5a9764f 100644
> --- a/build/gnat/sdlada_image.gpr
> +++ b/build/gnat/sdlada_image.gpr
> @@ -11,4 +11,5 @@ library project SDLAda_Image is
> for Library_Version use "libsdlada_image.so." & Version;
>
> package Compiler renames SDLAda.Compiler;
> + package Linker renames SDLAda.Linker;
> end SDLAda_Image;
> diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
> index 70dceff..51ee201 100644
> --- a/build/gnat/tests.gpr
> +++ b/build/gnat/tests.gpr
> @@ -15,24 +15,5 @@ project Tests is
> "ttf.adb");
>
> package Compiler renames SDLAda.Compiler;
> -
> - package Linker is
> -
> - Linker_Switches := ();
> -
> - case Sdlada.Platform is
> - when "macos_homebrew" =>
> - Linker_Switches := Linker_Switches & ("-lSDL2",
> - "-lSDL2_ttf",
> - "-lSDL2_image",
> - "-L/usr/local/lib");
> -
> - when others =>
> - null;
> - end case;
> -
> - for Switches ("Ada") use Linker_Switches;
> -
> - end Linker;
> -
> + package Linker renames SDLAda.Linker;
> end Tests;
> diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
> index f23be3c..fd68309 100644
> --- a/build/gnat/tests_image.gpr
> +++ b/build/gnat/tests_image.gpr
> @@ -8,6 +8,7 @@ project Tests_Image is
> for Main use ("load_surface.adb");
>
> package Compiler renames SDLAda.Compiler;
> + package Linker renames SDLAda.Linker;
>
> -- package Builder is
> -- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
> --, "-gnatG");
> diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
> index c469a34..27dd38f 100644
> --- a/build/gnat/unit_tests.gpr
> +++ b/build/gnat/unit_tests.gpr
> @@ -17,4 +17,5 @@ project Unit_Tests is
> -- end Ide;
>
> package Compiler renames SDLAda.Compiler;
> + package Linker renames SDLAda.Linker;
> end Unit_Tests;
> diff --git a/src/image/version_images.c b/src/image/version_images.c
> index ba5be68..47813a1 100644
> --- a/src/image/version_images.c
> +++ b/src/image/version_images.c
> @@ -21,7 +21,7 @@
> * distribution.
>
> **********************************************************************************************************************/
> #ifdef __APPLE__
> - #ifdef SDL_HOMEBREW
> + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
> #include <SDL2/SDL_image.h>
> #else
> #include <SDL2_image/SDL_image.h>
> diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
> index cedfebc..0819103 100644
> --- a/src/ttf/version_ttf.c
> +++ b/src/ttf/version_ttf.c
> @@ -21,7 +21,7 @@
> * distribution.
>
> **********************************************************************************************************************/
> #ifdef __APPLE__
> - #ifdef SDL_HOMEBREW
> + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
> #include <SDL2/SDL_ttf.h>
> #else
> #include <SDL2_ttf/SDL_ttf.h>

So, I haven't applied a patch in reverse before :-)

You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.

For the simple diffs, I can apply manually, but for the more intensive diffs, I'll probably run into trouble.

So, I need the patch file (?)

I save the output you posted, I manually try to implement the changes and generate a diff and see if my diff matches your diff?

I guess my brain is too old here :-(

Please spoon-feed me here (*SIGH*)

I really appreciate the work you've put in to try to make this SDLAda package work under MacPorts...

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<b5cb4946-1966-49ef-af2c-9efd4cac938cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9807&group=comp.lang.ada#9807

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:4145:b0:765:9914:a338 with SMTP id k5-20020a05620a414500b007659914a338mr22894qko.12.1688333697311;
Sun, 02 Jul 2023 14:34:57 -0700 (PDT)
X-Received: by 2002:a17:903:210a:b0:1b8:921e:e1a3 with SMTP id
o10-20020a170903210a00b001b8921ee1a3mr1435550ple.10.1688333696803; Sun, 02
Jul 2023 14:34:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 2 Jul 2023 14:34:56 -0700 (PDT)
In-Reply-To: <6de97f96-fae6-4e13-9439-e8f550287835n@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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b5cb4946-1966-49ef-af2c-9efd4cac938cn@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sun, 02 Jul 2023 21:34:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 9907
 by: Kenneth Wolcott - Sun, 2 Jul 2023 21:34 UTC

On Sunday, July 2, 2023 at 1:20:25 PM UTC-7, Kenneth Wolcott wrote:
> On Sunday, July 2, 2023 at 12:52:55 PM UTC-7, Luke A. Guest wrote:
> > On 02/07/2023 20:26, Kenneth Wolcott wrote:
> >
> > >> Google Groups has suppressed Luke's two posts with attached patches.
> > >
> > > Well, that's a very logical explanation for me not seeing anything to respond to :-)
> > Friggin' goggle. It's this (within the source dir - patch --dry-run -p1
> > < test.patch):
> >
> > diff --git a/build/gnat/makefile b/build/gnat/makefile
> > index b13930f..0046490 100644
> > --- a/build/gnat/makefile
> > +++ b/build/gnat/makefile
> > @@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)
> >
> > tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
> > $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
> > -XSDL_PLATFORM=$(SDL_PLATFORM) \
> > - -Ptests.gpr ${SDL2_CONFIG}
> > + -Ptests.gpr # ${SDL2_CONFIG}
> >
> > # Maths library
> >
> > @@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests
> >
> > build_unit_tests/unit_tests:
> > $(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
> > -XSDL_PLATFORM=$(SDL_PLATFORM) \
> > - -Punit_tests.gpr ${SDL2_CONFIG}
> > + -Punit_tests.gpr # ${SDL2_CONFIG}
> >
> > .PHONY: clean-unit_tests
> >
> > diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
> > index adc77f5..13ef8ee 100644
> > --- a/build/gnat/sdlada.gpr
> > +++ b/build/gnat/sdlada.gpr
> > @@ -1,10 +1,21 @@
> > library project SDLAda is
> > - type Platform_Type is ("linux", "bsd", "windows", "macosx",
> > "macos_homebrew", "ios", "android");
> > + type Platform_Type is ("linux",
> > + "bsd",
> > + "windows",
> > + "macosx",
> > + "macos_homebrew",
> > + "macos_ports",
> > + "ios",
> > + "android");
> > type Mode_Type is ("debug", "release");
> >
> > Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
> > Mode : Mode_Type := external ("SDL_MODE", "debug");
> >
> > + package Builder is
> > + for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
> > + end Builder;
> > +
> > Source_Platform := "";
> >
> > case Platform is
> > @@ -52,6 +63,11 @@ library project SDLAda is
> > "-I/usr/local/include",
> > "-D_REENTRANT");
> >
> > + when "macos_ports" =>
> > + C_Switches := C_Switches & ("-DSDL_MACPORTS",
> > + "-I/opt/local/include",
> > + "-D_THREAD_SAFE");
> > +
> > when others =>
> > null;
> > end case;
> > @@ -59,4 +75,33 @@ library project SDLAda is
> > for Default_Switches ("C") use Common_Switches & C_Switches;
> > for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
> > end Compiler;
> > +
> > + package Linker is
> > + Linker_Switches := ();
> > +
> > + case Platform is
> > + when "linux" | "bsd" | "android" | "windows" =>
> > + Linker_Switches := Linker_Switches & ("-lSDL2",
> > + "-lSDL2_ttf",
> > + "-lSDL2_image",
> > + "-L/usr/lib64");
> > +
> > + when "macos_homebrew" =>
> > + Linker_Switches := Linker_Switches & ("-lSDL2",
> > + "-lSDL2_ttf",
> > + "-lSDL2_image",
> > + "-L/usr/local/lib");
> > +
> > + when "macos_ports" =>
> > + Linker_Switches := Linker_Switches & ("-lSDL2",
> > + "-lSDL2_ttf",
> > + "-lSDL2_image",
> > + "-L/opt/local/lib");
> > +
> > + when others =>
> > + null;
> > + end case;
> > +
> > + for Switches ("Ada") use Linker_Switches;
> > + end Linker;
> > end SDLAda;
> > diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr
> > index 1098095..5a9764f 100644
> > --- a/build/gnat/sdlada_image.gpr
> > +++ b/build/gnat/sdlada_image.gpr
> > @@ -11,4 +11,5 @@ library project SDLAda_Image is
> > for Library_Version use "libsdlada_image.so." & Version;
> >
> > package Compiler renames SDLAda.Compiler;
> > + package Linker renames SDLAda.Linker;
> > end SDLAda_Image;
> > diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
> > index 70dceff..51ee201 100644
> > --- a/build/gnat/tests.gpr
> > +++ b/build/gnat/tests.gpr
> > @@ -15,24 +15,5 @@ project Tests is
> > "ttf.adb");
> >
> > package Compiler renames SDLAda.Compiler;
> > -
> > - package Linker is
> > -
> > - Linker_Switches := ();
> > -
> > - case Sdlada.Platform is
> > - when "macos_homebrew" =>
> > - Linker_Switches := Linker_Switches & ("-lSDL2",
> > - "-lSDL2_ttf",
> > - "-lSDL2_image",
> > - "-L/usr/local/lib");
> > -
> > - when others =>
> > - null;
> > - end case;
> > -
> > - for Switches ("Ada") use Linker_Switches;
> > -
> > - end Linker;
> > -
> > + package Linker renames SDLAda.Linker;
> > end Tests;
> > diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
> > index f23be3c..fd68309 100644
> > --- a/build/gnat/tests_image.gpr
> > +++ b/build/gnat/tests_image.gpr
> > @@ -8,6 +8,7 @@ project Tests_Image is
> > for Main use ("load_surface.adb");
> >
> > package Compiler renames SDLAda.Compiler;
> > + package Linker renames SDLAda.Linker;
> >
> > -- package Builder is
> > -- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
> > --, "-gnatG");
> > diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
> > index c469a34..27dd38f 100644
> > --- a/build/gnat/unit_tests.gpr
> > +++ b/build/gnat/unit_tests.gpr
> > @@ -17,4 +17,5 @@ project Unit_Tests is
> > -- end Ide;
> >
> > package Compiler renames SDLAda.Compiler;
> > + package Linker renames SDLAda.Linker;
> > end Unit_Tests;
> > diff --git a/src/image/version_images.c b/src/image/version_images.c
> > index ba5be68..47813a1 100644
> > --- a/src/image/version_images.c
> > +++ b/src/image/version_images.c
> > @@ -21,7 +21,7 @@
> > * distribution.
> >
> > **********************************************************************************************************************/
> > #ifdef __APPLE__
> > - #ifdef SDL_HOMEBREW
> > + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
> > #include <SDL2/SDL_image.h>
> > #else
> > #include <SDL2_image/SDL_image.h>
> > diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
> > index cedfebc..0819103 100644
> > --- a/src/ttf/version_ttf.c
> > +++ b/src/ttf/version_ttf.c
> > @@ -21,7 +21,7 @@
> > * distribution.
> >
> > **********************************************************************************************************************/
> > #ifdef __APPLE__
> > - #ifdef SDL_HOMEBREW
> > + #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
> > #include <SDL2/SDL_ttf.h>
> > #else
> > #include <SDL2_ttf/SDL_ttf.h>
> So, I haven't applied a patch in reverse before :-)
>
> You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.
>
> For the simple diffs, I can apply manually, but for the more intensive diffs, I'll probably run into trouble.
>
> So, I need the patch file (?)
>
> I save the output you posted, I manually try to implement the changes and generate a diff and see if my diff matches your diff?
>
> I guess my brain is too old here :-(
>
> Please spoon-feed me here (*SIGH*)
>
> I really appreciate the work you've put in to try to make this SDLAda package work under MacPorts...
>
> Thanks,
> Ken


Click here to read the complete article
Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u7sqrs$3e073$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9808&group=comp.lang.ada#9808

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Sun, 2 Jul 2023 22:40:12 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u7sqrs$3e073$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7i7ql$1sa0a$1@dont-email.me>
<5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 2 Jul 2023 21:40:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d2e373835969da469cdae163b3cb584";
logging-data="3604707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kaoSwmHR0SrqrPc7qMiAGlkUkecp2Ub0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:C3t9qF5ipOwUjg/8uiiqhlKX76s=
Content-Language: en-GB
In-Reply-To: <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
 by: Luke A. Guest - Sun, 2 Jul 2023 21:40 UTC

On 02/07/2023 21:20, Kenneth Wolcott wrote:

> You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.
>
No, that';s the command to test the patch on the source. To apply it you
remove the dry run option.

Just save the email, cut out the crap that's not the patch and then save
it as test.patch as the above command should say (after the "<"), dunno
what happened there.

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9809&group=comp.lang.ada#9809

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:9a6:b0:636:3fbd:84e with SMTP id du6-20020a05621409a600b006363fbd084emr31993qvb.5.1688335187179;
Sun, 02 Jul 2023 14:59:47 -0700 (PDT)
X-Received: by 2002:a63:fd4d:0:b0:557:33c6:603a with SMTP id
m13-20020a63fd4d000000b0055733c6603amr5018980pgj.7.1688335186760; Sun, 02 Jul
2023 14:59:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 2 Jul 2023 14:59:46 -0700 (PDT)
In-Reply-To: <u7sqrs$3e073$1@dont-email.me>
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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <u7sqrs$3e073$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Sun, 02 Jul 2023 21:59:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3131
 by: Kenneth Wolcott - Sun, 2 Jul 2023 21:59 UTC

On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
> On 02/07/2023 21:20, Kenneth Wolcott wrote:
>
> > You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.
> >
> No, that';s the command to test the patch on the source. To apply it you
> remove the dry run option.
>
> Just save the email, cut out the crap that's not the patch and then save
> it as test.patch as the above command should say (after the "<"), dunno
> what happened there.

Thank you.

I think saved the contents of the posting where the first diff starts as test.patch.

I downloaded a fresh sdlada package from GitHub, calling it sdlada2.

I then placed the test.patch file there.

Results:

patch -p1 --dry-run < test.patch
patching file 'build/gnat/makefile'
patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so

Did I do something wrong?

wc -l test.patch
189 test.patch

head -1 test.patch
diff --git a/build/gnat/makefile b/build/gnat/makefile

tail -1 test.patch
#include <SDL2_ttf/SDL_ttf.h>

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u7uejg$3ms0u$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9810&group=comp.lang.ada#9810

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Mon, 3 Jul 2023 13:23:11 +0100
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <u7uejg$3ms0u$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7i7ql$1sa0a$1@dont-email.me>
<5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 3 Jul 2023 12:23:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f4eb3c8731b58ae79a2e6835173b14e0";
logging-data="3895326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EdQ9yt5fUkPMxLEc9pO96eyzxEahmJug="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:dijxTUa8TcBnH/29KN24GWtGRFw=
In-Reply-To: <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
Content-Language: en-GB
 by: Luke A. Guest - Mon, 3 Jul 2023 12:23 UTC

On 02/07/2023 22:59, Kenneth Wolcott wrote:
> On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
>> On 02/07/2023 21:20, Kenneth Wolcott wrote:
>>
>>> You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.
>>>
>> No, that';s the command to test the patch on the source. To apply it you
>> remove the dry run option.
>>
>> Just save the email, cut out the crap that's not the patch and then save
>> it as test.patch as the above command should say (after the "<"), dunno
>> what happened there.
>
> Thank you.
>
> I think saved the contents of the posting where the first diff starts as test.patch.
>
> I downloaded a fresh sdlada package from GitHub, calling it sdlada2.
>
> I then placed the test.patch file there.
>
> Results:
>
> patch -p1 --dry-run < test.patch
> patching file 'build/gnat/makefile'
> patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
>
> Did I do something wrong?

No idea. This is what I did it with:

$ git clone git@github.com:Lucretia/sdlada.git
Cloning into 'sdlada'...
remote: Enumerating objects: 3100, done.
remote: Counting objects: 100% (257/257), done.
remote: Compressing objects: 100% (104/104), done.
remote: Total 3100 (delta 156), reused 227 (delta 144), pack-reused 2843
Receiving objects: 100% (3100/3100), 727.62 KiB | 303.00 KiB/s, done.
Resolving deltas: 100% (2269/2269), done.
$ cd sdlada/
$ patch -p1 --dry-run < ~/src/mine-new/game-dev/sdl/sdlada/test.patch
checking file build/gnat/makefile
checking file build/gnat/sdlada.gpr
checking file build/gnat/sdlada_image.gpr
checking file build/gnat/tests.gpr
checking file build/gnat/tests_image.gpr
checking file build/gnat/unit_tests.gpr
checking file src/image/version_images.c
checking file src/ttf/version_ttf.c

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9811&group=comp.lang.ada#9811

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:1a16:b0:403:2978:b7d0 with SMTP id f22-20020a05622a1a1600b004032978b7d0mr31703qtb.12.1688414284335;
Mon, 03 Jul 2023 12:58:04 -0700 (PDT)
X-Received: by 2002:a17:902:cecf:b0:1b5:2b14:5f2c with SMTP id
d15-20020a170902cecf00b001b52b145f2cmr9320781plg.4.1688414283764; Mon, 03 Jul
2023 12:58:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!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 12:58:03 -0700 (PDT)
In-Reply-To: <u7uejg$3ms0u$1@dont-email.me>
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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <u7uejg$3ms0u$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Mon, 03 Jul 2023 19:58:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Kenneth Wolcott - Mon, 3 Jul 2023 19:58 UTC

On Monday, July 3, 2023 at 5:23:16 AM UTC-7, Luke A. Guest wrote:
> On 02/07/2023 22:59, Kenneth Wolcott wrote:
> > On Sunday, July 2, 2023 at 2:40:15 PM UTC-7, Luke A. Guest wrote:
> >> On 02/07/2023 21:20, Kenneth Wolcott wrote:
> >>
> >>> You posted the output of running patch -p1 --dry-run < patch while inside the build/gnat directory.
> >>>
> >> No, that';s the command to test the patch on the source. To apply it you
> >> remove the dry run option.
> >>
> >> Just save the email, cut out the crap that's not the patch and then save
> >> it as test.patch as the above command should say (after the "<"), dunno
> >> what happened there.
> >
> > Thank you.
> >
> > I think saved the contents of the posting where the first diff starts as test.patch.
> >
> > I downloaded a fresh sdlada package from GitHub, calling it sdlada2.
> >
> > I then placed the test.patch file there.
> >
> > Results:
> >
> > patch -p1 --dry-run < test.patch
> > patching file 'build/gnat/makefile'
> > patch: **** malformed patch at line 7: tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
> >
> > Did I do something wrong?
> No idea. This is what I did it with:
>
> $ git clone g...@github.com:Lucretia/sdlada.git
> Cloning into 'sdlada'...
> remote: Enumerating objects: 3100, done.
> remote: Counting objects: 100% (257/257), done.
> remote: Compressing objects: 100% (104/104), done.
> remote: Total 3100 (delta 156), reused 227 (delta 144), pack-reused 2843
> Receiving objects: 100% (3100/3100), 727.62 KiB | 303.00 KiB/s, done.
> Resolving deltas: 100% (2269/2269), done.
> $ cd sdlada/
> $ patch -p1 --dry-run < ~/src/mine-new/game-dev/sdl/sdlada/test.patch
> checking file build/gnat/makefile
> checking file build/gnat/sdlada.gpr
> checking file build/gnat/sdlada_image.gpr
> checking file build/gnat/tests.gpr
> checking file build/gnat/tests_image.gpr
> checking file build/gnat/unit_tests.gpr
> checking file src/image/version_images.c
> checking file src/ttf/version_ttf.c

Hi Luke;

I wonder if there was an error introduced by the copy&paste with the mouse and/or with the formatting of the posting/email...I'll try to examine that specific area to see if anything shows up under a closer inspection.

I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but there's another difference that might be a cause, ever so remote.

I'll try to get back to you with results shortly.

Again, thanks for your efforts with regards to porting SDLADA towards MacPorts...

Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u7va08$3pn15$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9812&group=comp.lang.ada#9812

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Mon, 3 Jul 2023 21:10:48 +0100
Organization: A noiseless patient Spider
Lines: 206
Message-ID: <u7va08$3pn15$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7i7ql$1sa0a$1@dont-email.me>
<5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 3 Jul 2023 20:10:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f4eb3c8731b58ae79a2e6835173b14e0";
logging-data="3988517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dSZnNLehyQ4oGnt8O+1dRDTDOElTIagw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:lSN4k+2QxNQzXqt/P20EHwdS/m4=
In-Reply-To: <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
Content-Language: en-GB
 by: Luke A. Guest - Mon, 3 Jul 2023 20:10 UTC

On 03/07/2023 20:58, Kenneth Wolcott wrote:
> Hi Luke;
>
> I wonder if there was an error introduced by the copy&paste with the mouse and/or with the formatting of the posting/email...I'll try to examine that specific area to see if anything shows up under a closer inspection.
>
> I don't think that downloading the zip file from GitHub would be any different than doing the git clone, but there's another difference that might be a cause, ever so remote.
>
> I'll try to get back to you with results shortly.
>
> Again, thanks for your efforts with regards to porting SDLADA towards MacPorts...
>
> Ken

I used xclip -i ~/src/mine-new/game-dev/sdl/sdlada/test.patch and paste
with middle mouse button, just like below, the first line should "diff...":

diff --git a/build/gnat/makefile b/build/gnat/makefile
index b13930f..0046490 100644
--- a/build/gnat/makefile
+++ b/build/gnat/makefile
@@ -90,7 +90,7 @@ tests: $(LIB_NAME) tests.gpr $(TESTS_SRCS)

tests.gpr: $(TESTS_SRCS) gen/$(SDL_MODE)/test/libtestmaths.so
$(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
-XSDL_PLATFORM=$(SDL_PLATFORM) \
- -Ptests.gpr ${SDL2_CONFIG}
+ -Ptests.gpr # ${SDL2_CONFIG}

# Maths library

@@ -111,7 +111,7 @@ unit_tests: $(LIB_NAME) build_unit_tests/unit_tests

build_unit_tests/unit_tests:
$(GPRMAKE) -p -gnat2012 -XSDL_MODE=$(SDL_MODE)
-XSDL_PLATFORM=$(SDL_PLATFORM) \
- -Punit_tests.gpr ${SDL2_CONFIG}
+ -Punit_tests.gpr # ${SDL2_CONFIG}

.PHONY: clean-unit_tests

diff --git a/build/gnat/sdlada.gpr b/build/gnat/sdlada.gpr
index adc77f5..13ef8ee 100644
--- a/build/gnat/sdlada.gpr
+++ b/build/gnat/sdlada.gpr
@@ -1,10 +1,21 @@
library project SDLAda is
- type Platform_Type is ("linux", "bsd", "windows", "macosx",
"macos_homebrew", "ios", "android");
+ type Platform_Type is ("linux",
+ "bsd",
+ "windows",
+ "macosx",
+ "macos_homebrew",
+ "macos_ports",
+ "ios",
+ "android");
type Mode_Type is ("debug", "release");

Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
Mode : Mode_Type := external ("SDL_MODE", "debug");

+ package Builder is
+ for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
+ end Builder;
+ Source_Platform := "";

case Platform is
@@ -52,6 +63,11 @@ library project SDLAda is
"-I/usr/local/include",
"-D_REENTRANT");

+ when "macos_ports" =>
+ C_Switches := C_Switches & ("-DSDL_MACPORTS",
+ "-I/opt/local/include",
+ "-D_THREAD_SAFE");
+ when others =>
null;
end case;
@@ -59,4 +75,33 @@ library project SDLAda is
for Default_Switches ("C") use Common_Switches & C_Switches;
for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
end Compiler;
+ + package Linker is
+ Linker_Switches := ();
+ + case Platform is
+ when "linux" | "bsd" | "android" | "windows" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/usr/lib64");
+ + when "macos_homebrew" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/usr/local/lib");
+ + when "macos_ports" =>
+ Linker_Switches := Linker_Switches & ("-lSDL2",
+ "-lSDL2_ttf",
+ "-lSDL2_image",
+ "-L/opt/local/lib");
+ + when others =>
+ null;
+ end case;
+ + for Switches ("Ada") use Linker_Switches;
+ end Linker;
end SDLAda;
diff --git a/build/gnat/sdlada_image.gpr b/build/gnat/sdlada_image.gpr
index 1098095..5a9764f 100644
--- a/build/gnat/sdlada_image.gpr
+++ b/build/gnat/sdlada_image.gpr
@@ -11,4 +11,5 @@ library project SDLAda_Image is
for Library_Version use "libsdlada_image.so." & Version;

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;
end SDLAda_Image;
diff --git a/build/gnat/tests.gpr b/build/gnat/tests.gpr
index 70dceff..51ee201 100644
--- a/build/gnat/tests.gpr
+++ b/build/gnat/tests.gpr
@@ -15,24 +15,5 @@ project Tests is
"ttf.adb");

package Compiler renames SDLAda.Compiler;
- - package Linker is
- - Linker_Switches := ();
- - case Sdlada.Platform is
- when "macos_homebrew" =>
- Linker_Switches := Linker_Switches & ("-lSDL2",
- "-lSDL2_ttf",
- "-lSDL2_image",
- "-L/usr/local/lib");
- - when others =>
- null;
- end case;
- - for Switches ("Ada") use Linker_Switches;
- - end Linker;
- + package Linker renames SDLAda.Linker;
end Tests;
diff --git a/build/gnat/tests_image.gpr b/build/gnat/tests_image.gpr
index f23be3c..fd68309 100644
--- a/build/gnat/tests_image.gpr
+++ b/build/gnat/tests_image.gpr
@@ -8,6 +8,7 @@ project Tests_Image is
for Main use ("load_surface.adb");

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;

-- package Builder is
-- for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
--, "-gnatG");
diff --git a/build/gnat/unit_tests.gpr b/build/gnat/unit_tests.gpr
index c469a34..27dd38f 100644
--- a/build/gnat/unit_tests.gpr
+++ b/build/gnat/unit_tests.gpr
@@ -17,4 +17,5 @@ project Unit_Tests is
-- end Ide;

package Compiler renames SDLAda.Compiler;
+ package Linker renames SDLAda.Linker;
end Unit_Tests;
diff --git a/src/image/version_images.c b/src/image/version_images.c
index ba5be68..47813a1 100644
--- a/src/image/version_images.c
+++ b/src/image/version_images.c
@@ -21,7 +21,7 @@
* distribution.
**********************************************************************************************************************/
#ifdef __APPLE__
- #ifdef SDL_HOMEBREW
+ #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
#include <SDL2/SDL_image.h>
#else
#include <SDL2_image/SDL_image.h>
diff --git a/src/ttf/version_ttf.c b/src/ttf/version_ttf.c
index cedfebc..0819103 100644
--- a/src/ttf/version_ttf.c
+++ b/src/ttf/version_ttf.c
@@ -21,7 +21,7 @@
* distribution.
**********************************************************************************************************************/
#ifdef __APPLE__
- #ifdef SDL_HOMEBREW
+ #if defined (SDL_HOMEBREW) || defined (SDL_MACPORTS)
#include <SDL2/SDL_ttf.h>
#else
#include <SDL2_ttf/SDL_ttf.h>

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u7va1e$3pn15$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9813&group=comp.lang.ada#9813

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Mon, 3 Jul 2023 21:11:26 +0100
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <u7va1e$3pn15$2@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7i7ql$1sa0a$1@dont-email.me>
<5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 3 Jul 2023 20:11:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f4eb3c8731b58ae79a2e6835173b14e0";
logging-data="3988517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1897mp1q90cO6fVDEqt7EQ1nTXsn/w2w/8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:RhWEip+NIh9u2X6yivbsO+LrQ+8=
Content-Language: en-GB
In-Reply-To: <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
 by: Luke A. Guest - Mon, 3 Jul 2023 20:11 UTC

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.

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9814&group=comp.lang.ada#9814

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:1aa4:b0:765:4757:e749 with SMTP id bl36-20020a05620a1aa400b007654757e749mr36428qkb.6.1688424986160;
Mon, 03 Jul 2023 15:56:26 -0700 (PDT)
X-Received: by 2002:a05:6a00:1819:b0:63b:234e:d641 with SMTP id
y25-20020a056a00181900b0063b234ed641mr15599428pfa.4.1688424985920; Mon, 03
Jul 2023 15:56:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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 15:56:25 -0700 (PDT)
In-Reply-To: <u7va1e$3pn15$2@dont-email.me>
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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> <u7va1e$3pn15$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Mon, 03 Jul 2023 22:56:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Kenneth Wolcott - Mon, 3 Jul 2023 22:56 UTC

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

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9815&group=comp.lang.ada#9815

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:462b:b0:767:3541:413b with SMTP id br43-20020a05620a462b00b007673541413bmr72616qkb.1.1688425302640;
Mon, 03 Jul 2023 16:01:42 -0700 (PDT)
X-Received: by 2002:a05:6a00:1815:b0:66a:4083:5c99 with SMTP id
y21-20020a056a00181500b0066a40835c99mr14843501pfa.1.1688425302039; Mon, 03
Jul 2023 16:01:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!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:01:41 -0700 (PDT)
In-Reply-To: <01bd59d9-c5cb-4336-b123-5289165c5de8n@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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> <u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Mon, 03 Jul 2023 23:01:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4269
 by: Kenneth Wolcott - Mon, 3 Jul 2023 23:01 UTC

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

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9816&group=comp.lang.ada#9816

  copy link   Newsgroups: comp.lang.ada
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: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!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>
<u7i7ql$1sa0a$1@dont-email.me> <5442a053-9c59-4be4-8485-b0df2e589aedn@googlegroups.com>
<21e6c8c0-ec62-4192-aa5d-39d38149821cn@googlegroups.com> <ly7crmquni.fsf@pushface.org>
<u7k1ip$25tu0$1@dont-email.me> <ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com> <u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com> <u7med9$2hdm3$1@dont-email.me>
<u7ml5o$2i3mc$1@dont-email.me> <u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com> <lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com> <u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com> <u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com> <u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com> <u7va1e$3pn15$2@dont-email.me>
<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: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Mon, 03 Jul 2023 23:10:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Kenneth Wolcott - Mon, 3 Jul 2023 23:10 UTC

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

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<87lefwwpce.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9817&group=comp.lang.ada#9817

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.lang.ada
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
Date: Mon, 03 Jul 2023 16:24:33 -0700
Organization: None to speak of
Lines: 21
Message-ID: <87lefwwpce.fsf@nosuchdomain.example.com>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
<4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="f796055b850cb9d308e3ed59a225c1cf";
logging-data="4025099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nlHGIATS729o85RWA9UYz"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:/kvXUj2GTjTYHINCRDzvs6FppfA=
sha1:b7qjUa9bri+osiWvTc8DfiH2I/U=
 by: Keith Thompson - Mon, 3 Jul 2023 23:24 UTC

Kenneth Wolcott <kennethwolcott@gmail.com> writes:
[...]
> After adding a semi-colon at the following line in sdlada.gpr
>
> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
[...]

Unless "-gnat202" requests the version of Ada that was current during
the reign of Septimius Severus, you probably want to use "-gnat2022".
(Options can be abbreviated, but "-gnat202" may become ambiguous if
there's a new Ada standard before 2030.)

Also "Default_Swiches" is mispelled.

If the typos are the result of re-typing that line, I strongly suggest
copy-and-pasting any code you post.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9818&group=comp.lang.ada#9818

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:19a3:b0:403:394c:bf29 with SMTP id u35-20020a05622a19a300b00403394cbf29mr42264qtc.2.1688428710796;
Mon, 03 Jul 2023 16:58:30 -0700 (PDT)
X-Received: by 2002:a65:4504:0:b0:553:b8e9:95ac with SMTP id
n4-20020a654504000000b00553b8e995acmr7968400pgq.2.1688428710244; Mon, 03 Jul
2023 16:58:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!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:58:29 -0700 (PDT)
In-Reply-To: <87lefwwpce.fsf@nosuchdomain.example.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>
<ly352aqmlg.fsf@pushface.org> <b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Mon, 03 Jul 2023 23:58:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3465
 by: Kenneth Wolcott - Mon, 3 Jul 2023 23:58 UTC

On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> Kenneth Wolcott writes:
> [...]
> > After adding a semi-colon at the following line in sdlada.gpr
> >
> > for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> [...]
>
> Unless "-gnat202" requests the version of Ada that was current during
> the reign of Septimius Severus, you probably want to use "-gnat2022".
> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> there's a new Ada standard before 2030.)
>
> Also "Default_Swiches" is mispelled.
>
> If the typos are the result of re-typing that line, I strongly suggest
> copy-and-pasting any code you post.
>
> --
> Keith Thompson

Thank you, Keith :-)

Fixed those two typos.

Here's the current output from trying to build:

make SDL_PLATFORM=macos_ports SDL_MODE=debug
mkdir -p gen/src/
gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
-Psdlada.gpr
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

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u80mu6$20i8$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9820&group=comp.lang.ada#9820

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Tue, 4 Jul 2023 09:57:42 +0100
Organization: A noiseless patient Spider
Lines: 136
Message-ID: <u80mu6$20i8$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<ly7crmquni.fsf@pushface.org> <u7k1ip$25tu0$1@dont-email.me>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 4 Jul 2023 08:57:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02518e99bc896200b22bfcbee2fb18e9";
logging-data="66120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19weFWEIBZyRSpyrSNI9KNDy4CQxd4hF6Y="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:higiiBBMDJmcM8cvtJIu3aa2NSw=
Content-Language: en-GB
In-Reply-To: <0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
 by: Luke A. Guest - Tue, 4 Jul 2023 08:57 UTC

On 04/07/2023 00:01, Kenneth Wolcott wrote:
> ./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

I don't know what's going on about, here's the gpr I have:

library project SDLAda is
type Platform_Type is ("linux",
"bsd",
"windows",
"macosx",
"macos_homebrew",
"macos_ports",
"ios",
"android");
type Mode_Type is ("debug", "release");

Platform : Platform_Type := external ("SDL_PLATFORM", "linux");
Mode : Mode_Type := external ("SDL_MODE", "debug");

package Builder is
for Default_Switches ("Ada") use ("-gnat2012", "-gnata");
end Builder;

Source_Platform := "";

case Platform is
when "macos_homebrew" =>
Source_Platform := "../../src/macosx";

when others =>
Source_Platform := "../../src/" & Platform;
end case;

for Languages use ("Ada", "C");
for Source_Dirs use ("../../src", Source_Platform, "gen/src/",

-- For SDL.Image.
"../../src/image",

-- For SDL.TTF.
"../../src/ttf");
for Library_Name use "sdlada";
for Object_Dir use "gen/" & Mode & "/lib/.obj";
for Library_Dir use "gen/" & Mode & "/lib";
for Library_Kind use "static";

package Compiler is
Common_Switches := ("-ffunction-sections", "-fdata-sections");
C_Switches := ();
Ada_Switches := ("-gnat2012", "-gnata", "-gnato", "-gnatE",
"-gnatwa",
"-gnaty", "-gnaty-s", "-gnatyO",
"-gnatyM120", "-gnatyx");

case Mode is
when "debug" =>
Common_Switches := Common_Switches & ("-O0", "-g", "-ggdb");

when "release" =>
Common_Switches := Common_Switches & ("-O2");
end case;

-- These flags require checking on all platforms as they're
taken directly from sdl2-config.
case Platform is
when "linux" | "bsd" | "android" | "windows" =>
C_Switches := C_Switches & ("-I/usr/include/SDL2",
"-D_REENTRANT");

when "macos_homebrew" =>
C_Switches := C_Switches & ("-DSDL_HOMEBREW",
"-I/usr/local/include",
"-D_REENTRANT");

when "macos_ports" =>
C_Switches := C_Switches & ("-DSDL_MACPORTS",
"-I/opt/local/include",
"-D_THREAD_SAFE");

when others =>
null;
end case;

for Default_Switches ("C") use Common_Switches & C_Switches;
for Default_Switches ("Ada") use Common_Switches & Ada_Switches;
end Compiler;

package Linker is
Linker_Switches := ();

case Platform is
when "linux" | "bsd" | "android" | "windows" =>
Linker_Switches := Linker_Switches & ("-lSDL2",
"-lSDL2_ttf",
"-lSDL2_image",
"-L/usr/lib64");

when "macos_homebrew" =>
Linker_Switches := Linker_Switches & ("-lSDL2",
"-lSDL2_ttf",
"-lSDL2_image",
"-L/usr/local/lib");

when "macos_ports" =>
Linker_Switches := Linker_Switches & ("-lSDL2",
"-lSDL2_ttf",
"-lSDL2_image",
"-L/opt/local/lib");

when others =>
null;
end case;

for Switches ("Ada") use Linker_Switches;
end Linker;
end SDLAda;

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u80n10$20i8$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9821&group=comp.lang.ada#9821

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Tue, 4 Jul 2023 09:59:12 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <u80n10$20i8$2@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<ly352aqmlg.fsf@pushface.org>
<b77a6872-1947-4837-acd3-aabe99ba8501n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
<4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 4 Jul 2023 08:59:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02518e99bc896200b22bfcbee2fb18e9";
logging-data="66120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uLfOE2HbxyvzgVDB522ihacgshSFJU9A="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:GlxuQQdmVmCNnME91xLYU7rPsTY=
Content-Language: en-GB
In-Reply-To: <87lefwwpce.fsf@nosuchdomain.example.com>
 by: Luke A. Guest - Tue, 4 Jul 2023 08:59 UTC

On 04/07/2023 00:24, Keith Thompson wrote:
> Kenneth Wolcott <kennethwolcott@gmail.com> writes:
> [...]
>> After adding a semi-colon at the following line in sdlada.gpr
>>
>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> [...]
>
> Unless "-gnat202" requests the version of Ada that was current during
> the reign of Septimius Severus, you probably want to use "-gnat2022".
> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> there's a new Ada standard before 2030.)
>
> Also "Default_Swiches" is mispelled.
>
> If the typos are the result of re-typing that line, I strongly suggest
> copy-and-pasting any code you post.
>

I don't have that, I have "-gnat2012" see my previous post.

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u80n2o$20i8$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9822&group=comp.lang.ada#9822

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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: Tue, 4 Jul 2023 10:00:08 +0100
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <u80n2o$20i8$3@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7kmd8$286ku$2@dont-email.me>
<ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me>
<f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org>
<016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
<4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com>
<f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 4 Jul 2023 09:00:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="02518e99bc896200b22bfcbee2fb18e9";
logging-data="66120"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18phiu0z5i43IuDoeJLXea7b3QGOuQkgE0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:7nejXd6Wb/6PMxXr8/nfbJjChkI=
In-Reply-To: <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
Content-Language: en-GB
 by: Luke A. Guest - Tue, 4 Jul 2023 09:00 UTC

On 04/07/2023 00:58, Kenneth Wolcott wrote:
> On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
>> Kenneth Wolcott writes:
>> [...]
>>> After adding a semi-colon at the following line in sdlada.gpr
>>>
>>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
>> [...]
>>
>> Unless "-gnat202" requests the version of Ada that was current during
>> the reign of Septimius Severus, you probably want to use "-gnat2022".
>> (Options can be abbreviated, but "-gnat202" may become ambiguous if
>> there's a new Ada standard before 2030.)
>>
>> Also "Default_Swiches" is mispelled.
>>
>> If the typos are the result of re-typing that line, I strongly suggest
>> copy-and-pasting any code you post.
>>
>> --
>> Keith Thompson
>
> Thank you, Keith :-)
>
> Fixed those two typos.
>
> Here's the current output from trying to build:
>
> make SDL_PLATFORM=macos_ports SDL_MODE=debug
> mkdir -p gen/src/
> gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> -Psdlada.gpr
> 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
>
> Thanks,
> Ken

This makes no sense, line 26 is this:

Source_Platform := "../../src/" & Platform;

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9826&group=comp.lang.ada#9826

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:ab2:b0:635:db54:4885 with SMTP id ew18-20020a0562140ab200b00635db544885mr14508qvb.4.1688672239025;
Thu, 06 Jul 2023 12:37:19 -0700 (PDT)
X-Received: by 2002:a17:902:e843:b0:1b8:a70e:dd00 with SMTP id
t3-20020a170902e84300b001b8a70edd00mr2512897plg.6.1688672238679; Thu, 06 Jul
2023 12:37:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 6 Jul 2023 12:37:17 -0700 (PDT)
In-Reply-To: <u80n2o$20i8$3@dont-email.me>
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>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Thu, 06 Jul 2023 19:37:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4169
 by: Kenneth Wolcott - Thu, 6 Jul 2023 19:37 UTC

On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> On 04/07/2023 00:58, Kenneth Wolcott wrote:
> > On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> >> Kenneth Wolcott writes:
> >> [...]
> >>> After adding a semi-colon at the following line in sdlada.gpr
> >>>
> >>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> >> [...]
> >>
> >> Unless "-gnat202" requests the version of Ada that was current during
> >> the reign of Septimius Severus, you probably want to use "-gnat2022".
> >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> >> there's a new Ada standard before 2030.)
> >>
> >> Also "Default_Swiches" is mispelled.
> >>
> >> If the typos are the result of re-typing that line, I strongly suggest
> >> copy-and-pasting any code you post.
> >>
> >> --
> >> Keith Thompson
> >
> > Thank you, Keith :-)
> >
> > Fixed those two typos.
> >
> > Here's the current output from trying to build:
> >
> > make SDL_PLATFORM=macos_ports SDL_MODE=debug
> > mkdir -p gen/src/
> > gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> > -Psdlada.gpr
> > 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
> >
> > Thanks,
> > Ken
> This makes no sense, line 26 is this:
> Source_Platform := "../../src/" & Platform;

Hi Luke;

Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9827&group=comp.lang.ada#9827

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ad4:4d48:0:b0:635:11ad:ce58 with SMTP id m8-20020ad44d48000000b0063511adce58mr8813qvm.10.1688693030059;
Thu, 06 Jul 2023 18:23:50 -0700 (PDT)
X-Received: by 2002:a63:9d41:0:b0:55a:e745:b348 with SMTP id
i62-20020a639d41000000b0055ae745b348mr2219165pgd.10.1688693029497; Thu, 06
Jul 2023 18:23:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 6 Jul 2023 18:23:48 -0700 (PDT)
In-Reply-To: <bb5cf333-51bb-4379-8193-018deb1a64a4n@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>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me> <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Fri, 07 Jul 2023 01:23:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4689
 by: Kenneth Wolcott - Fri, 7 Jul 2023 01:23 UTC

On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
> On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> > On 04/07/2023 00:58, Kenneth Wolcott wrote:
> > > On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> > >> Kenneth Wolcott writes:
> > >> [...]
> > >>> After adding a semi-colon at the following line in sdlada.gpr
> > >>>
> > >>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> > >> [...]
> > >>
> > >> Unless "-gnat202" requests the version of Ada that was current during
> > >> the reign of Septimius Severus, you probably want to use "-gnat2022"..
> > >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> > >> there's a new Ada standard before 2030.)
> > >>
> > >> Also "Default_Swiches" is mispelled.
> > >>
> > >> If the typos are the result of re-typing that line, I strongly suggest
> > >> copy-and-pasting any code you post.
> > >>
> > >> --
> > >> Keith Thompson
> > >
> > > Thank you, Keith :-)
> > >
> > > Fixed those two typos.
> > >
> > > Here's the current output from trying to build:
> > >
> > > make SDL_PLATFORM=macos_ports SDL_MODE=debug
> > > mkdir -p gen/src/
> > > gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> > > -Psdlada.gpr
> > > 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
> > >
> > > Thanks,
> > > Ken
> > This makes no sense, line 26 is this:
> > Source_Platform := "../../src/" & Platform;
> Hi Luke;
>
> Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
>
> Thanks,
> Ken

Hi Luke;

Please email the patch to me as an attachment using the email address: kwolcott@yahoo.com...

Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9828&group=comp.lang.ada#9828

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:140c:b0:635:e1a0:255f with SMTP id pr12-20020a056214140c00b00635e1a0255fmr10950qvb.7.1688693141287;
Thu, 06 Jul 2023 18:25:41 -0700 (PDT)
X-Received: by 2002:a17:902:e80d:b0:1b8:91ad:79e1 with SMTP id
u13-20020a170902e80d00b001b891ad79e1mr3656206plg.11.1688693140480; Thu, 06
Jul 2023 18:25:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 6 Jul 2023 18:25:39 -0700 (PDT)
In-Reply-To: <6af1696c-85f8-4714-b459-42953228156dn@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>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me> <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Fri, 07 Jul 2023 01:25:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 75
 by: Kenneth Wolcott - Fri, 7 Jul 2023 01:25 UTC

On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
> > On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> > > On 04/07/2023 00:58, Kenneth Wolcott wrote:
> > > > On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> > > >> Kenneth Wolcott writes:
> > > >> [...]
> > > >>> After adding a semi-colon at the following line in sdlada.gpr
> > > >>>
> > > >>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> > > >> [...]
> > > >>
> > > >> Unless "-gnat202" requests the version of Ada that was current during
> > > >> the reign of Septimius Severus, you probably want to use "-gnat2022".
> > > >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> > > >> there's a new Ada standard before 2030.)
> > > >>
> > > >> Also "Default_Swiches" is mispelled.
> > > >>
> > > >> If the typos are the result of re-typing that line, I strongly suggest
> > > >> copy-and-pasting any code you post.
> > > >>
> > > >> --
> > > >> Keith Thompson
> > > >
> > > > Thank you, Keith :-)
> > > >
> > > > Fixed those two typos.
> > > >
> > > > Here's the current output from trying to build:
> > > >
> > > > make SDL_PLATFORM=macos_ports SDL_MODE=debug
> > > > mkdir -p gen/src/
> > > > gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> > > > -Psdlada.gpr
> > > > 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
> > > >
> > > > Thanks,
> > > > Ken
> > > This makes no sense, line 26 is this:
> > > Source_Platform := "../../src/" & Platform;
> > Hi Luke;
> >
> > Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
> >
> > Thanks,
> > Ken
> Hi Luke;
>
> Please email the patch to me as an attachment using the email address: kwol...@yahoo.com...
>
> Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.
>
> Thanks,
> Ken

The email address is kwolcott at yahoo dot com.

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9832&group=comp.lang.ada#9832

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:590:b0:400:a783:f746 with SMTP id c16-20020a05622a059000b00400a783f746mr74394qtb.0.1689140616759;
Tue, 11 Jul 2023 22:43:36 -0700 (PDT)
X-Received: by 2002:a05:6870:3401:b0:1b0:39e0:977e with SMTP id
g1-20020a056870340100b001b039e0977emr4385641oah.4.1689140616543; Tue, 11 Jul
2023 22:43:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 11 Jul 2023 22:43:36 -0700 (PDT)
In-Reply-To: <78b8aa21-7b89-417d-a264-f756d568771cn@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>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me> <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com> <78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Wed, 12 Jul 2023 05:43:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6741
 by: Kenneth Wolcott - Wed, 12 Jul 2023 05:43 UTC

On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
> > On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
> > > On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> > > > On 04/07/2023 00:58, Kenneth Wolcott wrote:
> > > > > On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> > > > >> Kenneth Wolcott writes:
> > > > >> [...]
> > > > >>> After adding a semi-colon at the following line in sdlada.gpr
> > > > >>>
> > > > >>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> > > > >> [...]
> > > > >>
> > > > >> Unless "-gnat202" requests the version of Ada that was current during
> > > > >> the reign of Septimius Severus, you probably want to use "-gnat2022".
> > > > >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> > > > >> there's a new Ada standard before 2030.)
> > > > >>
> > > > >> Also "Default_Swiches" is mispelled.
> > > > >>
> > > > >> If the typos are the result of re-typing that line, I strongly suggest
> > > > >> copy-and-pasting any code you post.
> > > > >>
> > > > >> --
> > > > >> Keith Thompson
> > > > >
> > > > > Thank you, Keith :-)
> > > > >
> > > > > Fixed those two typos.
> > > > >
> > > > > Here's the current output from trying to build:
> > > > >
> > > > > make SDL_PLATFORM=macos_ports SDL_MODE=debug
> > > > > mkdir -p gen/src/
> > > > > gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> > > > > -Psdlada.gpr
> > > > > 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
> > > > >
> > > > > Thanks,
> > > > > Ken
> > > > This makes no sense, line 26 is this:
> > > > Source_Platform := "../../src/" & Platform;
> > > Hi Luke;
> > >
> > > Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
> > >
> > > Thanks,
> > > Ken
> > Hi Luke;
> >
> > Please email the patch to me as an attachment using the email address: [redacted :-) ]
> >
> > Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.
> >
> > Thanks,
> > Ken
> The email address is kwolcott at yahoo dot com.

Hi Luke;

Thanks for the patch via email.

The md5sum matches...

I ran git restore in the sdlada git clone directory...

I then applied the patch:

patch -p1 < test.patch
patching file 'build/gnat/makefile'
patching file 'build/gnat/sdlada.gpr'
patching file 'build/gnat/sdlada_image.gpr'
Reversed (or previously applied) patch detected! Assume -R? [y] y
patching file 'build/gnat/tests.gpr'
Reversed (or previously applied) patch detected! Assume -R? [y] y
patching file 'build/gnat/tests_image.gpr'
Reversed (or previously applied) patch detected! Assume -R? [y] y
patching file 'build/gnat/unit_tests.gpr'
Reversed (or previously applied) patch detected! Assume -R? [y] y
patching file 'src/image/version_images.c'
Reversed (or previously applied) patch detected! Assume -R? [y] y
patching file 'src/ttf/version_ttf.c'
Reversed (or previously applied) patch detected! Assume -R? [y] y

Attempting to build:

make SDL_PLATFORM=macos_ports SDL_MODE=release
mkdir -p gen/src/
gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
-Psdlada.gpr
Setup
[mkdir] object directory for project SDLAda
sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
gprbuild: "sdlada.gpr" processing failed
make: *** [lib/libadasdl.a] Error 5

So, what did I do wrong this time?

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9833&group=comp.lang.ada#9833

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:622a:1a19:b0:403:b942:f1d3 with SMTP id f25-20020a05622a1a1900b00403b942f1d3mr37887qtb.3.1689141701717;
Tue, 11 Jul 2023 23:01:41 -0700 (PDT)
X-Received: by 2002:a05:6808:98f:b0:3a1:a15b:ef9f with SMTP id
a15-20020a056808098f00b003a1a15bef9fmr1488012oic.0.1689141701418; Tue, 11 Jul
2023 23:01:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 11 Jul 2023 23:01:40 -0700 (PDT)
In-Reply-To: <4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@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>
<u7kmd8$286ku$2@dont-email.me> <ce671bd0-681d-420a-a2c6-2b8f23b5d798n@googlegroups.com>
<u7med9$2hdm3$1@dont-email.me> <u7ml5o$2i3mc$1@dont-email.me>
<u7r7ck$38j9e$1@dont-email.me> <f5bded97-a764-4647-96b9-8a9b8abffa8an@googlegroups.com>
<lyr0pq2k4i.fsf@pushface.org> <016412bf-0247-466b-add9-8b5d41c6a9d7n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me> <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com> <78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>
<4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Wed, 12 Jul 2023 06:01:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 8781
 by: Kenneth Wolcott - Wed, 12 Jul 2023 06:01 UTC

On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
> On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
> > On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
> > > On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
> > > > On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> > > > > On 04/07/2023 00:58, Kenneth Wolcott wrote:
> > > > > > On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> > > > > >> Kenneth Wolcott writes:
> > > > > >> [...]
> > > > > >>> After adding a semi-colon at the following line in sdlada.gpr
> > > > > >>>
> > > > > >>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> > > > > >> [...]
> > > > > >>
> > > > > >> Unless "-gnat202" requests the version of Ada that was current during
> > > > > >> the reign of Septimius Severus, you probably want to use "-gnat2022".
> > > > > >> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> > > > > >> there's a new Ada standard before 2030.)
> > > > > >>
> > > > > >> Also "Default_Swiches" is mispelled.
> > > > > >>
> > > > > >> If the typos are the result of re-typing that line, I strongly suggest
> > > > > >> copy-and-pasting any code you post.
> > > > > >>
> > > > > >> --
> > > > > >> Keith Thompson
> > > > > >
> > > > > > Thank you, Keith :-)
> > > > > >
> > > > > > Fixed those two typos.
> > > > > >
> > > > > > Here's the current output from trying to build:
> > > > > >
> > > > > > make SDL_PLATFORM=macos_ports SDL_MODE=debug
> > > > > > mkdir -p gen/src/
> > > > > > gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> > > > > > -Psdlada.gpr
> > > > > > 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
> > > > > >
> > > > > > Thanks,
> > > > > > Ken
> > > > > This makes no sense, line 26 is this:
> > > > > Source_Platform := "../../src/" & Platform;
> > > > Hi Luke;
> > > >
> > > > Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
> > > >
> > > > Thanks,
> > > > Ken
> > > Hi Luke;
> > >
> > > Please email the patch to me as an attachment using the email address: [redacted :-) ]
> > >
> > > Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.
> > >
> > > Thanks,
> > > Ken
> > The email address is kwolcott at yahoo dot com.
> Hi Luke;
>
> Thanks for the patch via email.
>
> The md5sum matches...
>
> I ran git restore in the sdlada git clone directory...
>
> I then applied the patch:
>
> patch -p1 < test.patch
> patching file 'build/gnat/makefile'
> patching file 'build/gnat/sdlada.gpr'
> patching file 'build/gnat/sdlada_image.gpr'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
> patching file 'build/gnat/tests.gpr'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
> patching file 'build/gnat/tests_image.gpr'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
> patching file 'build/gnat/unit_tests.gpr'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
> patching file 'src/image/version_images.c'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
> patching file 'src/ttf/version_ttf.c'
> Reversed (or previously applied) patch detected! Assume -R? [y] y
>
> Attempting to build:
>
> make SDL_PLATFORM=macos_ports SDL_MODE=release
> mkdir -p gen/src/
> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
> -Psdlada.gpr
> Setup
> [mkdir] object directory for project SDLAda
> sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
> gprbuild: "sdlada.gpr" processing failed
> make: *** [lib/libadasdl.a] Error 5
> So, what did I do wrong this time?
>
> Thanks,
> Ken

Ok,

I deleted the contents of the sdlada git clone directory...

then did a git restore .

then applied the patch

then ran make.

Still fails...

*****************************************************************
patch -p1 < test.patch
patching file 'build/gnat/makefile'
patching file 'build/gnat/sdlada.gpr'
patching file 'build/gnat/sdlada_image.gpr'
patching file 'build/gnat/tests.gpr'
patching file 'build/gnat/tests_image.gpr'
patching file 'build/gnat/unit_tests.gpr'
patching file 'src/image/version_images.c'
patching file 'src/ttf/version_ttf.c'
sdlada: cd build/gnat
gnat: 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
Setup
[mkdir] object directory for project SDLAda
sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
gprbuild: "sdlada.gpr" processing failed
make: *** [lib/libadasdl.a] Error 5
*****************************************************************

Thanks,
Ken

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<u8mhoh$3an6j$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9834&group=comp.lang.ada#9834

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: laguest@archeia.com (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, 12 Jul 2023 16:44:16 +0100
Organization: A noiseless patient Spider
Lines: 167
Message-ID: <u8mhoh$3an6j$1@dont-email.me>
References: <5bd661f7-f077-47e4-a3c0-aef7d3b41059n@googlegroups.com>
<u7skij$3d9vl$1@dont-email.me>
<6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me>
<2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me>
<7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me>
<01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com>
<4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com>
<f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me>
<bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com>
<78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>
<4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com>
<13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 12 Jul 2023 15:44:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="21f16c4f59329ff850063878719f6db7";
logging-data="3497171"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NEuXDBHr+iyXNr4lMRob73RiDBCSUUPg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.12.0
Cancel-Lock: sha1:8NWS+Iq7gRYXyidxJEFxVAHFIn8=
Content-Language: en-GB
In-Reply-To: <13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com>
 by: Luke A. Guest - Wed, 12 Jul 2023 15:44 UTC

On 12/07/2023 07:01, Kenneth Wolcott wrote:
> On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
>> On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
>>> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
>>>> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
>>>>> On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
>>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:
>>>>>>> On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
>>>>>>>> Kenneth Wolcott writes:
>>>>>>>> [...]
>>>>>>>>> After adding a semi-colon at the following line in sdlada.gpr
>>>>>>>>>
>>>>>>>>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
>>>>>>>> [...]
>>>>>>>>
>>>>>>>> Unless "-gnat202" requests the version of Ada that was current during
>>>>>>>> the reign of Septimius Severus, you probably want to use "-gnat2022".
>>>>>>>> (Options can be abbreviated, but "-gnat202" may become ambiguous if
>>>>>>>> there's a new Ada standard before 2030.)
>>>>>>>>
>>>>>>>> Also "Default_Swiches" is mispelled.
>>>>>>>>
>>>>>>>> If the typos are the result of re-typing that line, I strongly suggest
>>>>>>>> copy-and-pasting any code you post.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Keith Thompson
>>>>>>>
>>>>>>> Thank you, Keith :-)
>>>>>>>
>>>>>>> Fixed those two typos.
>>>>>>>
>>>>>>> Here's the current output from trying to build:
>>>>>>>
>>>>>>> make SDL_PLATFORM=macos_ports SDL_MODE=debug
>>>>>>> mkdir -p gen/src/
>>>>>>> gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
>>>>>>> -Psdlada.gpr
>>>>>>> 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
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ken
>>>>>> This makes no sense, line 26 is this:
>>>>>> Source_Platform := "../../src/" & Platform;
>>>>> Hi Luke;
>>>>>
>>>>> Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
>>>>>
>>>>> Thanks,
>>>>> Ken
>>>> Hi Luke;
>>>>
>>>> Please email the patch to me as an attachment using the email address: [redacted :-) ]
>>>>
>>>> Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.
>>>>
>>>> Thanks,
>>>> Ken
>>> The email address is kwolcott at yahoo dot com.
>> Hi Luke;
>>
>> Thanks for the patch via email.
>>
>> The md5sum matches...
>>
>> I ran git restore in the sdlada git clone directory...
>>
>> I then applied the patch:
>>
>> patch -p1 < test.patch
>> patching file 'build/gnat/makefile'
>> patching file 'build/gnat/sdlada.gpr'
>> patching file 'build/gnat/sdlada_image.gpr'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>> patching file 'build/gnat/tests.gpr'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>> patching file 'build/gnat/tests_image.gpr'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>> patching file 'build/gnat/unit_tests.gpr'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>> patching file 'src/image/version_images.c'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>> patching file 'src/ttf/version_ttf.c'
>> Reversed (or previously applied) patch detected! Assume -R? [y] y
>>
>> Attempting to build:
>>
>> make SDL_PLATFORM=macos_ports SDL_MODE=release
>> mkdir -p gen/src/
>> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
>> -Psdlada.gpr
>> Setup
>> [mkdir] object directory for project SDLAda
>> sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
>> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
>> gprbuild: "sdlada.gpr" processing failed
>> make: *** [lib/libadasdl.a] Error 5
>> So, what did I do wrong this time?
>>
>> Thanks,
>> Ken
>
>
> Ok,
>
> I deleted the contents of the sdlada git clone directory...
>
> then did a git restore .
>
> then applied the patch
>
> then ran make.
>
> Still fails...
>
> *****************************************************************
> patch -p1 < test.patch
> patching file 'build/gnat/makefile'
> patching file 'build/gnat/sdlada.gpr'
> patching file 'build/gnat/sdlada_image.gpr'
> patching file 'build/gnat/tests.gpr'
> patching file 'build/gnat/tests_image.gpr'
> patching file 'build/gnat/unit_tests.gpr'
> patching file 'src/image/version_images.c'
> patching file 'src/ttf/version_ttf.c'
> sdlada: cd build/gnat
> gnat: 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
> Setup
> [mkdir] object directory for project SDLAda
> sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
> gprbuild: "sdlada.gpr" processing failed
> make: *** [lib/libadasdl.a] Error 5
> *****************************************************************

Check the sdlada.gpr, it will get the platform name as the src dir too,
I forgot about that. Change:

case Platform is
when "macos_homebrew" =>

to:

case Platform is
when "macos_homebrew" | "macos_ports" | "macosx" =>

Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

<45f83e2f-0085-4f42-9a49-05c7a3e4101an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9836&group=comp.lang.ada#9836

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:420d:b0:635:db0c:95eb with SMTP id nd13-20020a056214420d00b00635db0c95ebmr23249qvb.1.1689203376972;
Wed, 12 Jul 2023 16:09:36 -0700 (PDT)
X-Received: by 2002:a05:6808:2005:b0:3a1:c163:6022 with SMTP id
q5-20020a056808200500b003a1c1636022mr349195oiw.4.1689203376730; Wed, 12 Jul
2023 16:09:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Wed, 12 Jul 2023 16:09:36 -0700 (PDT)
In-Reply-To: <u8mhoh$3an6j$1@dont-email.me>
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>
<u7skij$3d9vl$1@dont-email.me> <6de97f96-fae6-4e13-9439-e8f550287835n@googlegroups.com>
<u7sqrs$3e073$1@dont-email.me> <2566ce87-a407-48a9-a805-afb4582a542bn@googlegroups.com>
<u7uejg$3ms0u$1@dont-email.me> <7023751f-54a8-4392-b60f-611d5a8dfcb2n@googlegroups.com>
<u7va1e$3pn15$2@dont-email.me> <01bd59d9-c5cb-4336-b123-5289165c5de8n@googlegroups.com>
<0d46efb3-210d-46d8-9e3c-4d3d938c1924n@googlegroups.com> <4ead2fde-6bc6-4bb3-97d0-4000b79f7d45n@googlegroups.com>
<87lefwwpce.fsf@nosuchdomain.example.com> <f0b6baa0-02cc-4d21-8ad4-953d076e9da7n@googlegroups.com>
<u80n2o$20i8$3@dont-email.me> <bb5cf333-51bb-4379-8193-018deb1a64a4n@googlegroups.com>
<6af1696c-85f8-4714-b459-42953228156dn@googlegroups.com> <78b8aa21-7b89-417d-a264-f756d568771cn@googlegroups.com>
<4f24f3df-6413-4a1b-a2ac-e9b90b20ec4en@googlegroups.com> <13e5d57c-e79e-4635-8986-d0b95542cb61n@googlegroups.com>
<u8mhoh$3an6j$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <45f83e2f-0085-4f42-9a49-05c7a3e4101an@googlegroups.com>
Subject: Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"
From: kennethwolcott@gmail.com (Kenneth Wolcott)
Injection-Date: Wed, 12 Jul 2023 23:09:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 10626
 by: Kenneth Wolcott - Wed, 12 Jul 2023 23:09 UTC

On Wednesday, July 12, 2023 at 8:44:20 AM UTC-7, Luke A. Guest wrote:
> On 12/07/2023 07:01, Kenneth Wolcott wrote:
> > On Tuesday, July 11, 2023 at 10:43:37 PM UTC-7, Kenneth Wolcott wrote:
> >> On Thursday, July 6, 2023 at 6:25:42 PM UTC-7, Kenneth Wolcott wrote:
> >>> On Thursday, July 6, 2023 at 6:23:51 PM UTC-7, Kenneth Wolcott wrote:
> >>>> On Thursday, July 6, 2023 at 12:37:20 PM UTC-7, Kenneth Wolcott wrote:
> >>>>> On Tuesday, July 4, 2023 at 2:00:11 AM UTC-7, Luke A. Guest wrote:
> >>>>>> On 04/07/2023 00:58, Kenneth Wolcott wrote:
> >>>>>>> On Monday, July 3, 2023 at 4:24:37 PM UTC-7, Keith Thompson wrote:
> >>>>>>>> Kenneth Wolcott writes:
> >>>>>>>> [...]
> >>>>>>>>> After adding a semi-colon at the following line in sdlada.gpr
> >>>>>>>>>
> >>>>>>>>> for Default_Swiches ("Ada") use ("-gnat202", "-gnata");
> >>>>>>>> [...]
> >>>>>>>>
> >>>>>>>> Unless "-gnat202" requests the version of Ada that was current during
> >>>>>>>> the reign of Septimius Severus, you probably want to use "-gnat2022".
> >>>>>>>> (Options can be abbreviated, but "-gnat202" may become ambiguous if
> >>>>>>>> there's a new Ada standard before 2030.)
> >>>>>>>>
> >>>>>>>> Also "Default_Swiches" is mispelled.
> >>>>>>>>
> >>>>>>>> If the typos are the result of re-typing that line, I strongly suggest
> >>>>>>>> copy-and-pasting any code you post.
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Keith Thompson
> >>>>>>>
> >>>>>>> Thank you, Keith :-)
> >>>>>>>
> >>>>>>> Fixed those two typos.
> >>>>>>>
> >>>>>>> Here's the current output from trying to build:
> >>>>>>>
> >>>>>>> make SDL_PLATFORM=macos_ports SDL_MODE=debug
> >>>>>>> mkdir -p gen/src/
> >>>>>>> gprbuild -p -gnat2012 -XSDL_MODE=debug -XSDL_PLATFORM=macos_ports \
> >>>>>>> -Psdlada.gpr
> >>>>>>> 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
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>> Ken
> >>>>>> This makes no sense, line 26 is this:
> >>>>>> Source_Platform := "../../src/" & Platform;
> >>>>> Hi Luke;
> >>>>>
> >>>>> Is it possible for us to arrange a process to send the patch to me in another means? If Google Groups blocks attachments and I'm getting massively confused with the content being pasted inside the posting, we need to derive another means of communicating. I can share a different email address which is already being heavily spammed...
> >>>>>
> >>>>> Thanks,
> >>>>> Ken
> >>>> Hi Luke;
> >>>>
> >>>> Please email the patch to me as an attachment using the email address: [redacted :-) ]
> >>>>
> >>>> Please also provide a checksum of some kind so I know that the file didn't get corrupted en-route.
> >>>>
> >>>> Thanks,
> >>>> Ken
> >>> The email address is kwolcott at yahoo dot com.
> >> Hi Luke;
> >>
> >> Thanks for the patch via email.
> >>
> >> The md5sum matches...
> >>
> >> I ran git restore in the sdlada git clone directory...
> >>
> >> I then applied the patch:
> >>
> >> patch -p1 < test.patch
> >> patching file 'build/gnat/makefile'
> >> patching file 'build/gnat/sdlada.gpr'
> >> patching file 'build/gnat/sdlada_image.gpr'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >> patching file 'build/gnat/tests.gpr'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >> patching file 'build/gnat/tests_image.gpr'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >> patching file 'build/gnat/unit_tests.gpr'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >> patching file 'src/image/version_images.c'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >> patching file 'src/ttf/version_ttf.c'
> >> Reversed (or previously applied) patch detected! Assume -R? [y] y
> >>
> >> Attempting to build:
> >>
> >> make SDL_PLATFORM=macos_ports SDL_MODE=release
> >> mkdir -p gen/src/
> >> gprbuild -p -gnat2012 -XSDL_MODE=release -XSDL_PLATFORM=macos_ports \
> >> -Psdlada.gpr
> >> Setup
> >> [mkdir] object directory for project SDLAda
> >> sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
> >> sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
> >> gprbuild: "sdlada.gpr" processing failed
> >> make: *** [lib/libadasdl.a] Error 5
> >> So, what did I do wrong this time?
> >>
> >> Thanks,
> >> Ken
> >
> >
> > Ok,
> >
> > I deleted the contents of the sdlada git clone directory...
> >
> > then did a git restore .
> >
> > then applied the patch
> >
> > then ran make.
> >
> > Still fails...
> >
> > *****************************************************************
> > patch -p1 < test.patch
> > patching file 'build/gnat/makefile'
> > patching file 'build/gnat/sdlada.gpr'
> > patching file 'build/gnat/sdlada_image.gpr'
> > patching file 'build/gnat/tests.gpr'
> > patching file 'build/gnat/tests_image.gpr'
> > patching file 'build/gnat/unit_tests.gpr'
> > patching file 'src/image/version_images.c'
> > patching file 'src/ttf/version_ttf.c'
> > sdlada: cd build/gnat
> > gnat: 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
> > Setup
> > [mkdir] object directory for project SDLAda
> > sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
> > sdlada.gpr:30:39: "../../src/macos_ports" is not a valid directory
> > gprbuild: "sdlada.gpr" processing failed
> > make: *** [lib/libadasdl.a] Error 5
> > *****************************************************************
> Check the sdlada.gpr, it will get the platform name as the src dir too,
> I forgot about that. Change:
> case Platform is
> when "macos_homebrew" =>
> to:
>
> case Platform is
> when "macos_homebrew" | "macos_ports" | "macosx" =>

After
1. Completely deleting the cloned instance of sdlada;
2. Applying the patch you provided via email;
3. manually modifying sdlada.gpr as you directed above;

We have the following result:
*********************************************
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
Setup
[mkdir] object directory for project SDLAda
sdlada.gpr:1:17: warning: Linker switches not taken into account in library projects
Compile
[C] version_ttf.c
[REDACTED]/sdlada/src/ttf/version_ttf.c:25:18: fatal error: SDL2/SDL_ttf.h: No such file or directory
25 | #include <SDL2/SDL_ttf.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
gprbuild: *** compilation phase failed
make: *** [lib/libadasdl.a] Error 4
*********************************************


Click here to read the complete article

devel / comp.lang.ada / Re: SDL Ada package fails to compile on Mac, gnat 13.1, missing "SDL2_ttf/SDL_ttf.h"

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor