Lunos2

Building Pokeemerald's PC Port (WSL2 - Ubuntu 20.04)

Nov 13th, 2021 (edited)
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. 1) Open WSL, sudo apt update and sudo apt upgrade
  2.  
  3. 2) sudo apt install build-essential git make g++-mingw-w64-i686
  4.  
  5. 3) git clone https://github.com/Kurausukun/pokeemerald -b pc_port pokeemerald_pc
  6. For reference, I cloned it on WSL2 inside its Linux filesystem.
  7. Basically, my Pokeemerald_pc folder is in "\\wsl$\Ubuntu-20.04\home\lunos\pokeemerald_pc".
  8.  
  9. 4) Download SDL from: https://www.libsdl.org/download-2.0.php
  10. You need the Development Libraries for MinGW specifically, and the Runtime Library for 32-bit Windows as well.
  11.  
  12. 5) Uncompress the Development Libraries (SDL2-devel-2.0.16-mingw.tar.gz) twice. Then drag and drop the SDL2-2.0.16 folder in C:\Users\USER\Decomps\pokeemerald_pc.
  13.  
  14. 6) Uncompress the Runtime Libraries (SDL2-2.0.16-win32-x86.zip) once, and drag-and-drop the SDL2.dll file in C:\Users\USER\Decomps\pokeemerald_pc.
  15.  
  16. 7) Adjust the path to SDL in pokeemerald_pc's Makefile_pc if needed, like so:
  17. SDL_DIR := /home/lunos/pokeemerald_pc/SDL2-2.0.16/i686-w64-mingw32
  18. Note: Don't forget to replace my user name with yours.
  19.  
  20. 8) Back to WSL do:
  21. cd pokeemerald_pc
  22. make tools
  23. make -f Makefile_pc -jN
  24. Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.
  25.  
  26. 9) Wait until it's done.
  27. Once the process ends, you should find a pokeemerald.exe file in your pokeemerald_pc folder, so open it and have fun.
Add Comment
Please, Sign In to add comment