DCurrent / openbor

OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!
http://www.chronocrash.com
BSD 3-Clause "New" or "Revised" License
901 stars 121 forks source link

[OpenBOR Build 2021-07-19] Building Failed on Windows (v10.0.19043.1110) #238

Closed P0W3 closed 7 months ago

P0W3 commented 3 years ago

I am new to this coding, and I have all of the installed dependencies from the system packages that are needed, so here is what I have done so far.

I used Git (v2.32.0.2) to type the following commands, but the building failed at this point.

USER@DESKTOP-VUV87Q9 MINGW64 /
$ cd C:

USER@DESKTOP-VUV87Q9 MINGW64 /c
$ git clone https://github.com/DCurrent/openbor.git
Cloning into 'openbor'...
remote: Enumerating objects: 25813, done.
remote: Counting objects: 100% (264/264), done.
remote: Compressing objects: 100% (149/149), done.
remote: Total 25813 (delta 173), reused 178 (delta 115), pack-reused 25549
Receiving objects: 100% (25813/25813), 1.21 GiB | 13.30 MiB/s, done.
Resolving deltas: 100% (16450/16450), done.

USER@DESKTOP-VUV87Q9 MINGW64 /c
$ cd openbor/engine

USER@DESKTOP-VUV87Q9 MINGW64 /c/openbor/engine (master)
$ ./build.sh all
      0 [main] make (12384) C:\devkitPro\msys2\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
                                                            This problem is probably due to using incompatible versions of the cygwin DLL.
                                                          Search for cygwin1.dll using the Windows Start->Find/Search facility
                                              and delete all but the most recent version.  The most recent version *should*
                                           reside in x:\cygwin\bin, where 'x' is the drive on which you have
                            installed the cygwin distribution.  Rebooting is also suggested if you
                  are unable to find another cygwin DLL.
                                                              0 [main] make (1476) C:\devkitPro\msys2\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
                                   This problem is probably due to using incompatible versions of the cygwin DLL.
                                 Search for cygwin1.dll using the Windows Start->Find/Search facility
                     and delete all but the most recent version.  The most recent version *should*
                  reside in x:\cygwin\bin, where 'x' is the drive on which you have
   installed the cygwin distribution.  Rebooting is also suggested if you
                                                                         are unable to find another cygwin DLL.
                               -------------------------------------------------------
        PSP SDK File - Not Found, Downloading SDK!
-------------------------------------------------------
      0 [main] wget (12164) C:\devkitPro\msys2\usr\bin\wget.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
                                                            This problem is probably due to using incompatible versions of the cygwin DLL.
                                                          Search for cygwin1.dll using the Windows Start->Find/Search facility
                                              and delete all but the most recent version.  The most recent version *should*
                                           reside in x:\cygwin\bin, where 'x' is the drive on which you have
                            installed the cygwin distribution.  Rebooting is also suggested if you
                  are unable to find another cygwin DLL.

-------------------------------------------------------
        PSP SDK File - Download Has Completed!
-------------------------------------------------------
-------------------------------------------------------
            ERROR - PSP Environment Failed
                   SDK Installed?
-------------------------------------------------------
-------------------------------------------------------
            ERROR - VITA Environment Failed
                   SDK Installed?
-------------------------------------------------------
-------------------------------------------------------
     Windows SDK (MINGW64_NT-10.0-19043) x86_64 Environment Loaded!
-------------------------------------------------------

Removing All WIN Files...
Done!

./build.sh: line 225: windres.exe: command not found
Compiling WIN Port: openbor.c...
Compiling WIN Port: openborscript.c...
Compiling WIN Port: sdl/control.c...
Compiling WIN Port: sdl/sblaster.c...
C:\openbor\tools\bin\make.exe: *** [openbor.o] Error 1
C:\openbor\tools\bin\make.exe: *** Waiting for unfinished jobs....
C:\openbor\tools\bin\make.exe: *** [openborscript.o] Error 1
C:\openbor\tools\bin\make.exe: *** [sdl/control.o] Error 1

Removing All WIN Files...
Done!

-------------------------------------------------------
         WII SDK (MINGW64_NT-10.0-19043) Environment Loaded!
-------------------------------------------------------
      0 [main] make (4212) C:\devkitPro\msys2\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
                                                           This problem is probably due to using incompatible versions of the cygwin DLL.
                                                         Search for cygwin1.dll using the Windows Start->Find/Search facility
                                             and delete all but the most recent version.  The most recent version *should*
                                          reside in x:\cygwin\bin, where 'x' is the drive on which you have
                           installed the cygwin distribution.  Rebooting is also suggested if you
                 are unable to find another cygwin DLL.
                                                             0 [main] make (5344) C:\devkitPro\msys2\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
                                  This problem is probably due to using incompatible versions of the cygwin DLL.
                                Search for cygwin1.dll using the Windows Start->Find/Search facility
                    and delete all but the most recent version.  The most recent version *should*
                 reside in x:\cygwin\bin, where 'x' is the drive on which you have
  installed the cygwin distribution.  Rebooting is also suggested if you
                                                                        are unable to find another cygwin DLL.
                                    0 [main] make (1408) C:\devkitPro\msys2\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x180347408/0x180352408.
         This problem is probably due to using incompatible versions of the cygwin DLL.
       Search for cygwin1.dll using the Windows Start->Find/Search facility
                                                                           and delete all but the most recent version.  The most recent version *should*
                                                                        reside in x:\cygwin\bin, where 'x' is the drive on which you have
                                                         installed the cygwin distribution.  Rebooting is also suggested if you
                                               are unable to find another cygwin DLL.
     ------------------------------------------------------
          Validating Platforms Built w/Bash
------------------------------------------------------

Windows Platform Failed To Build!
P0W3 commented 3 years ago

The latest commit was 3caaddd.

DCurrent commented 3 years ago

Sorry @P0W3, I have funeral and family stuff this weekend. Will try and have a look when I can, assuming @Plombo, @msmalik681, or @fgames9000 don't beat me to it.

msmalik681 commented 3 years ago

You dont need any dependencies openbor has everything it needs try renaming your mingw64 folder to bak.mingw64 then run build.bat again

P0W3 commented 3 years ago

Okay. I renamed the folder from mingw64 to bak.mingw64 in the Git directory.

image

I ran build.bat in the OpenBOR-engine directory.

image

And, these errors showed up.

-------------------------------------------------------
OpenBOR v3.0 Build 7138 (commit hash 3caaddd) - http://www.ChronoCrash.com

All rights reserved.
See LICENSE and README within OpenBOR root for details.

Copyright (c) 2004 - 2018 OpenBOR Team
-------------------------------------------------------
-------------------------------------------------------
          PSP SDK (SVN) Environment Loaded!
-------------------------------------------------------

Removing All PSP Files...
Done!

Compiling PSP Port: openbor.c...
Compiling PSP Port: openborscript.c...
Compiling PSP Port: psp/control/control.S...
Compiling PSP Port: psp/dvemgr/dvemgr.S...
Compiling PSP Port: psp/kernel/kernel.S...
Compiling PSP Port: psp/graphics.c...
openbor.c:751:1: error: missing braces around initializer [-Werror=missing-braces]
openbor.c:751:1: error: (near initialization for 'playercontrols1.settings') [-Werror=missing-braces]
openbor.c:752:1: error: missing braces around initializer [-Werror=missing-braces]
openbor.c:752:1: error: (near initialization for 'playercontrols2.settings') [-Werror=missing-braces]
openbor.c:753:1: error: missing braces around initializer [-Werror=missing-braces]
openbor.c:753:1: error: (near initialization for 'playercontrols3.settings') [-Werror=missing-braces]
openbor.c:754:1: error: missing braces around initializer [-Werror=missing-braces]
openbor.c:754:1: error: (near initialization for 'playercontrols4.settings') [-Werror=missing-braces]
openbor.c: In function 'clearsettings':
openbor.c:2480:5: error: implicit declaration of function 'control_clearmappings' [-Werror=implicit-function-declaration]
openbor.c: In function 'savesettings':
openbor.c:2505:5: error: implicit declaration of function 'control_savemappings' [-Werror=implicit-function-declaration]
openbor.c: In function 'loadsettings':
openbor.c:2569:5: error: implicit declaration of function 'control_loadmappings' [-Werror=implicit-function-declaration]
Compiling PSP Port: psp/audiodrv.c...
openbor.c: In function 'keyboard_setup':
openbor.c:38170:53: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38171:9: error: implicit declaration of function 'control_getmappings' [-Werror=implicit-function-declaration]
openbor.c:38171:24: error: initialization makes pointer from integer without a cast [-Werror]
openbor.c:38180:17: error: too many arguments to function 'control_getkeyname'
psp/control.h:102:7: note: declared here
openbor.c:38203:13: error: implicit declaration of function 'control_getremappedkey' [-Werror=implicit-function-declaration]
openbor.c:38213:17: error: implicit declaration of function 'control_remapdevice' [-Werror=implicit-function-declaration]
openbor.c:38281:21: error: implicit declaration of function 'control_resetmappings' [-Werror=implicit-function-declaration]
openbor.c: In function 'safe_set_device':
openbor.c:38315:37: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38317:37: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38320:34: error: 's_playercontrols' has no member named 'deviceID'
openbor.c: In function 'menu_options_input':
openbor.c:38332:51: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38349:13: error: implicit declaration of function 'control_getdevicename' [-Werror=implicit-function-declaration]
openbor.c:38349:13: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38361:13: error: implicit declaration of function 'control_isvaliddevice' [-Werror=implicit-function-declaration]
openbor.c:38361:63: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38438:62: error: 's_playercontrols' has no member named 'deviceID'
openbor.c:38466:47: error: 'MAX_DEVICES' undeclared (first use in this function)
openbor.c:38466:47: note: each undeclared identifier is reported only once for each function it appears in
openbor.c:38483:95: error: 's_playercontrols' has no member named 'deviceID'
Compiling PSP Port: psp/sblaster.c...
Compiling PSP Port: psp/control.c...
Compiling PSP Port: psp/vertex.c...
Compiling PSP Port: psp/timer.c...
openbor.c: At top level:
cc1.exe: error: unrecognized command line option "-Wno-stringop-truncation" [-Werror]
cc1.exe: error: unrecognized command line option "-Wno-format-truncation" [-Werror]
cc1.exe: all warnings being treated as errors

..\tools\bin\make.exe: *** [openbor.o] Error 1
..\tools\bin\make.exe: Compiling*** Waiting for un fiPSPnished jobs....
Port: psp/video.c...
Compiling PSP Port: psp/image.c...
..\tools\bin\make.exe: *** Waiting for unfinished jobs....
..\tools\bin\make.exe: *** Waiting for unfinished jobs....

Removing All PSP Files...
Done!

-------------------------------------------------------
            ERROR - VITA Environment Failed
                   SDK Installed?
-------------------------------------------------------
-------------------------------------------------------
     Windows SDK (windows32) ix86-pc Environment Loaded!
-------------------------------------------------------

Removing All WIN Files...
Done!

Compiling WIN Port: openbor.c...
Compiling WIN Port: openborscript.c...
Compiling WIN Port: sdl/control.c...
Compiling WIN Port: sdl/sblaster.c...
In file included from openbor.h:23,
                 from openbor.c:14:
sdl/video.h:15:10: fatal error: SDL.h: No such file or directory
   15 | #include "SDL.h"
      |          ^~~~~~~
compilation terminated.
In file included from sdl/sblaster.c:13:
sdl/sdlport.h:12:10: fatal error: SDL.h: No such file or directory
   12 | #include <SDL.h>
      |          ^~~~~~~
compilation terminated.
..\tools\bin\make.exe: *** [openbor.o] Error 1
..\tools\bin\make.exe: *** Waiting for unfinished jobs....
In file included from source/globals.h:41,
                 from .. tools\bin\make.exe: source/scriptlib/depends.h:13 ** [sdl/sblaster.o] Error 1,
                 from
source/scriptlib/Interpreter.h:11,
                 from In file included from source/openborscript/config.h:12source/globals.h:41,
                 from
                 from openborscript.c:30sdl/control.c:14:

sdl/sdlport.h:12:10:sdl/sdlport.h:12:10:  fatal error: fatal error: SDL.h: No such file or directory
   12 | #include
   12 | #include <SDL.h><SDL.h>
      |
      |          ^~~~~~~^~~~~~~
c
ompilation terminated.
ompilation terminated.
..\tools\bin\make.exe: *** [openborscript.o] Error 1

Removing All WIN Files...
Done!

-------------------------------------------------------
         WII SDK (windows32) Environment Loaded!
-------------------------------------------------------

abnormal program termination
zsh: fork failed: no such file or directory

Removing All WII Files...
Done!

abnormal program termination
zsh: fork failed: no such file or directory
Compiling WII Port: openbor.c...
Compiling WII Port: openborscript.c...
Compiling WII Port: wii/control.c...
Compiling WII Port: wii/sblaster.c...
Compiling WII Port: wii/timer.c...
Compiling WII Port: wii/video.c...
Compiling WII Port: wii/threads.c...
Compiling WII Port: wii/menu.c...
wii/menu.c:14:10:Co piling  Wfatal error: I wupc/wupc.h: No such file or directory
   14 | #include  Port"wupc/wupc.h":
      |          wi /wiiport.c...^~~~~~~~~~~~~

compilation terminated.
..\tools\bin\make.exe: *** [wii/menu.o] Error 1
..\tools\bin\make.exe: *** Waiting for unfinished jobs....

abnormal program termination
zsh: fork failed: no such file or directory

Removing All WII Files...
Done!

------------------------------------------------------
          Validating Platforms Built w/Bash
------------------------------------------------------

Windows Platform Failed To Build!
Press any key to continue . . .
msmalik681 commented 3 years ago

This will normally work on a clean install of windows my guess is you have installed development tools that are causing conflicts. If your not using it for anything else try uninstalling cygwin and you are running the setup in a windows terminal right ?

P0W3 commented 3 years ago

I think that I just realized something.

The build that I was trying to compile was Build 7138 (v3.0).

The latest build that I have is Build 7142 (v4.0).

I was searching for the latest build of OpenBOR.