Advertisement
Lunos2

Building Pokeemerald's PC Port (WSL - Ubuntu 18.04)

Sep 1st, 2020 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 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 inside a folder called "Home" where I store my decomps related work (C:\Users\USER\Home).
  7.  
  8. 4) Download SDL from: https://www.libsdl.org/download-2.0.php
  9. You need the Development Libraries for MinGW specifically, and the Runtime Library for 32-bit Windows as well.
  10.  
  11. 5) Uncompress the Development Libraries (SDL2-devel-2.0.14-mingw.tar.gz) twice. Then drag and drop the SDL2-2.0.14 folder in C:\Users\USER\Decomps\pokeemerald_pc\tools.
  12.  
  13. 6) Uncompress the Runtime Libraries (SDL2-2.0.14-win32-x86.zip) once, and drag-and-drop the SDL2.dll file in C:\Users\USER\Decomps\pokeemerald_pc.
  14.  
  15. 7) Adjust the path to SDL in pokeemerald_pc's Makefile_pc if needed, like so:
  16. SDL_DIR := /mnt/c/Users/Lunos/Home/pokeemerald_pc/tools/SDL2-2.0.14/i686-w64-mingw32
  17.  
  18. 8) Back to WSL do:
  19. cd pokeemerald_pc
  20. make tools
  21. make -f Makefile_pc -jN
  22. Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.
  23.  
  24. 9) Wait until it's done.
  25. Once the process ends, you should find a pokeemerald.exe file in your pokeemerald_pc folder, so open it and have fun.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement