Thanks, that got the build process going.   Ran into the following problems:

1.  building Zanyblue places random "build" folders in my directory
structure outside of my gnoga envrionment.  I originally thought this was a
windows only issue, but today I was building it for a variant of Ubuntu
16.04 and it did the same there if my gnoga directory was far enough away
from root locked folders.  To be clear if I have:

/d/Program_Files/mingw64/home/Jere/gnoga-code/

and I build zany blue, I get phantom "build" directories in the following
locations:

/d/build
/d/Program_Files/build
/d/Program_Files/mingw64/home/build

I get the same results in my Ubuntu 16.04 variant OS.  I noticed in the
main Makefile that the path ../../../build is passed to the zanyblue
makefile.  I wonder if it is using it incorrectly in places?

2.  Some potential bugs:
components/pixi/src/gnoga-gui-plugin-pixi-sprite.adb
lines 86 and 876 call Sprite.Loop_Times() but in Ada you cannot use the
object.operation notation unless operation is a primitive operation.  Since
both the declaration and the definition are in the body file (.adb) it
cannot be a primitive operation and thus the call is illegal.  Ironically,
recent versions of GNAT compile it fine, but when I use 5.4 on my Ubuntu
box, it flags it as illegal.  Moving the declaration to the spec file
(.ads) fixes the problem.

3.  For some reason on Ubuntu, it looks for gnoga-application-Linux and
gnoga.application-Unix in the build process but the files are all lower
case named.  It builds fine on windows which is case insensitive but fails
on Ubuntu which is strict on case.  Renaming the files fixes the issue.

Thanks again.

Side note:  On the ubuntu box, I had to fix one of the zanyblue files in
the text subdirectory becauase it was using Object'Image, which 5.4 doesn't
support.  However, when I search the copy I have on my windows machine, I
don't find it.  In both cases I used "git clone -b dev_1.4
source/forge/path/to/gnoga gnoga-code" (both on today).  Since I cant
replicate it here, I don't have much to give.  My ubuntu box is essentially
standalone, so it is hard to get data off of it to here.

On Wed, May 2, 2018 at 3:17 PM, Pascal via Gnoga-list <
[email protected]> wrote:

>
> > Le 2 mai 2018 à 02:39, Jeremiah Breeden <[email protected]> a
> écrit :
> >
> > Build environment:
> > mingw64/msys2 x86_64 GNAT 7.2 FSF on Windows 10
> >
> > I cloned the 1.4 branch and tried to make a build.  I started with a
> "make all" command and after a bit it erred on:
> >
> > *******************************************************
> > make[2]: Leaving directory '/home/Jere/gnoga-code-2018_
> 05_01/components/pixi'
> > make -C mnmenu install
> > make[2]: Entering directory '/home/Jere/gnoga-code-2018_
> 05_01/components/mnmenu'
> > cp -p css/*.* ../../css
> > cp -p html/*.* ../../html
> > cp -p img/*.* ../../img
> > cp -p js/*.* ../../js
> > make[2]: Leaving directory '/home/Jere/gnoga-code-2018_
> 05_01/components/mnmenu'
> > make[1]: Leaving directory '/home/Jere/gnoga-code-2018_05_01/components'
> > gprbuild -p --target=x86_64-w64-mingw32 -P src/gnoga.gpr
> -XPRJ_TARGET=Windows
> > gnoga.gpr:2:06: unknown project file: "lib_components.gpr"
> > gprbuild: "src/gnoga.gpr" processing failed
> > make: *** [Makefile:188: gnoga] Error 4
> >
> > *******************************************************
> > SNIPPED...
> > anyone know where I go from here?
> >
> >
>
> Thanks Jeremiah for reporting,
>
> Thanks for help log, it is really helpful for analysis.
> The issue is cause by the wrong choice of PATH separator which is not the
> same between Unix and Windows.
>
> Here is a patch for the makefile:
>
> diff --git a/Makefile b/Makefile
> index bf6a37c7..c350701e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -79,7 +79,7 @@ endif
>
>  PATHSEP=$(strip $(PATHSEP2))
>
> -ifeq ($(PRJ_TARGET),Windows)
> +ifeq ($(BUILD_OS),Windows)
>         GPR_PROJECT_PATH_SEP=;
>  else
>         GPR_PROJECT_PATH_SEP=:
>
> The separator choice should be good now.
>
> HTH, Pascal.
> http://blady.pagesperso-orange.fr
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gnoga-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gnoga-list
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to