Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Compiling DXX-Rebirth from scratch in **Windows**
- ## **Prerequisites**
- 1.) Install MSYS2: https://www.msys2.org/ preferably to `D:/mysy64` (make sure no spaces in path)
- 2.) After installation is finished, uncheck "**Run MSYS2 now**." as it will open the wrong terminal.
- 3.) Open MSYS2 MINGW64 terminal (blue icon) and do `pacman -Syu`
- 4.) Terminal will close after this update. Reopen MSYS2 MINGW64 terminal (blue icon).
- 5.) In MSYS2, do `pacman -S git zip base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-scons mingw-w64-x86_64-pkgconf mingw-w64-x86_64-SDL mingw-w64-x86_64-SDL_image mingw-w64-x86_64-SDL_mixer mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_image mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-physfs`
- 6.) It asks to enter a selection, ignore and press Enter to install all, then Y, Enter to confirm.
- 7.) In MSYS2, do `pacman -S python` to install Python, then Y, Enter to confirm.
- 8.) In MSYS2, do `pacman -S scons` to install SCons, then Y, Enter to confirm.
- 9.) You may want to restart the terminal at this point to make sure installations register.
- ## First Compilation
- 1.) If restarting terminal, open MSYS2 MINGW64 terminal (blue icon)
- 2.) In MSYS2, cd to where you want to clone the repo e.g. `cd D:/GitHub`
- 3.) In MSYS2, do `git clone https://github.com/dxx-rebirth/dxx-rebirth`
- 4.) In MSYS2, do `cd dxx-rebirth`
- 5a.) Compile SDL1.2 by doing `scons sdlmixer=1 host_platform=win32`
- 5b.) Or, compile SDL2 by doing `scons sdl2=1 sdlmixer=1 host_platform=win32`
- 6.) Compile older commits by doing `git checkout <SHA>` where is the short commit id
- 7.) Do `scons -c` before building again
- 8.) Builds can be found in `D:\Github\dxx-rebirth\build\d*x-rebirth` (where * is 1 or 2)
- ## After Complete Setup and Building Later
- 1.) Open MSYS2 MINGW64 terminal (blue icon)
- 2.) In MSYS2, do `cd D://GitHub//dxx-rebirth`
- 3a.) Compile SDL1.2 by doing `scons sdlmixer=1 host_platform=win32`
- 3b.) Compile SDL2 by doing `scons sdl2=1 sdlmixer=1 host_platform=win32`
- 5.) Compile older commit by doing `git checkout <SHA>` where is the short commit id
- 6.) Do `scons -c` before building again
- 7.) Builds can be found in `D:\Github\dxx-rebirth\build\d*x-rebirth` (where * is 1 or 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement