Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
801 stars 62 forks source link

trying to build on windows 10 #410

Closed platinumb3rlitz closed 8 months ago

platinumb3rlitz commented 8 months ago

i'm trying to build the dependencies with git bash on windows 10 but it only gets as far as glew-2.1.0/src/visualinfo.c before throwing up this error:

/c/src/systemshock/build_ext/built_glew /c/src/systemshock/build_ext
build_win64.sh: line 31: mingw32-make: command not found

i've tried setting my mingw64\bin directory as my PATH variable to no avail

update (10/31/2023): i finally figured it out so what i had to do was manually set my mingw64\bin directory as the system PATH, which i did by going into the advanced system properties and editing the environment variables after doing so i was able to successfully build the dependencies

Gerwin2k commented 8 months ago

i'm trying to build the dependencies with git bash on windows 10 but it only gets as far as glew-2.1.0/src/visualinfo.c before throwing up this error:

/c/src/systemshock/build_ext/built_glew /c/src/systemshock/build_ext
build_win64.sh: line 31: mingw32-make: command not found

i've tried setting my mingw64\bin directory as my PATH variable to no avail

update (10/31/2023): i finally figured it out so what i had to do was manually set my mingw64\bin directory as the system PATH, which i did by going into the advanced system properties and editing the environment variables after doing so i was able to successfully build the dependencies

Yes the PATH setting is important. But you can do it with a command prompt. That way you can even use multiple versions of MinGW, and pick one by setting the path.

I tend to make a .bat file for setting the path for every project. This is the one for Shockolate 32-bit build:

@SET PATH=C:\MinGW10\bin;%PATH%
@SET PATH=C:\MinGW10\lib;%PATH%
@SET PATH=C:\MinGW10\lib\gcc\i686-w64-mingw32\10.3.0\include;%PATH%
@SET PATH=C:\CMAKE\bin;%PATH%

@SET PATH=C:\DEV\SystemShock;%PATH%

But you have to start this bat file from a command prompt window that does not close. When it closes the PATH setting is flushed.