Advertisement
BigheadSMZ

DXX-Rebirth Build Markdown

Jul 21st, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. # Compiling DXX-Rebirth from scratch in **Windows**
  2.  
  3. ## **Prerequisites**
  4. 1.) Install MSYS2: https://www.msys2.org/ preferably to `D:/mysy64` (make sure no spaces in path)
  5. 2.) After installation is finished, uncheck "**Run MSYS2 now**." as it will open the wrong terminal.
  6. 3.) Open MSYS2 MINGW64 terminal (blue icon) and do `pacman -Syu`
  7. 4.) Terminal will close after this update. Reopen MSYS2 MINGW64 terminal (blue icon).
  8. 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`
  9. 6.) It asks to enter a selection, ignore and press Enter to install all, then Y, Enter to confirm.
  10. 7.) In MSYS2, do `pacman -S python` to install Python, then Y, Enter to confirm.
  11. 8.) In MSYS2, do `pacman -S scons` to install SCons, then Y, Enter to confirm.
  12. 9.) You may want to restart the terminal at this point to make sure installations register.
  13. ## First Compilation
  14. 1.) If restarting terminal, open MSYS2 MINGW64 terminal (blue icon)
  15. 2.) In MSYS2, cd to where you want to clone the repo e.g. `cd D:/GitHub`
  16. 3.) In MSYS2, do `git clone https://github.com/dxx-rebirth/dxx-rebirth`
  17. 4.) In MSYS2, do `cd dxx-rebirth`
  18. 5a.) Compile SDL1.2 by doing `scons sdlmixer=1 host_platform=win32`
  19. 5b.) Or, compile SDL2 by doing `scons sdl2=1 sdlmixer=1 host_platform=win32`
  20. 6.) Compile older commits by doing `git checkout <SHA>` where is the short commit id
  21. 7.) Do `scons -c` before building again
  22. 8.) Builds can be found in `D:\Github\dxx-rebirth\build\d*x-rebirth` (where * is 1 or 2)
  23. ## After Complete Setup and Building Later
  24. 1.) Open MSYS2 MINGW64 terminal (blue icon)
  25. 2.) In MSYS2, do `cd D://GitHub//dxx-rebirth`
  26. 3a.) Compile SDL1.2 by doing `scons sdlmixer=1 host_platform=win32`
  27. 3b.) Compile SDL2 by doing `scons sdl2=1 sdlmixer=1 host_platform=win32`
  28. 5.) Compile older commit by doing `git checkout <SHA>` where is the short commit id
  29. 6.) Do `scons -c` before building again
  30. 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