Advertisement
Lunos2

Lunos' Bizarre but Successful Adventure through Debian on WSL1

Nov 24th, 2022
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. What I did in an attempt to build the Pret NDS Decomps in 2022:
  2. 1) Downloaded the Debian Linux distro for WSL from: https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions
  3. 2) Extract the files from its "TheDebianProject.DebianGNULinux_1.12.2.0_neutral___76v4gfsz19hv4.AppxBundle\DistroLauncher-Appx_1.12.2.0_x64.appx" file somewhere safe.
  4. 3) Ran the debian.exe file, type in a user and a pass normally, and wait.
  5. 4) I closed Fedora, and inside an elevanted Windows command prompt I used: wsl -l -v, and after looking at the Fedora installation's name, "wsl --set-version debian 1".
  6. 5) Once I got back into Debian, I got myself comfortable adding some of my Ubuntu aliases, changing the font and window size and stuff. Then I typed "sudo apt update && sudo apt upgrade".
  7. 6) Once that was done, "sudo apt install build-essential git libpng-dev".
  8. 7) Then I moved to a home folder I made in C:\Users\%USERNAME%\Home, I installed wget and typed "wget https://apt.devkitpro.org/install-devkitpro-pacman" and then "sudo bash install-devkitpro-pacman".
  9. 8) After the package installed, I downloaded and installed devkitPro's GBA Development Package via "sudo dkp-pacman -S gba-dev" and restarted Debian.
  10. Note: Here I got an error involving "". I just made a symlink with "sudo ln -s /proc/self/mounts /etc/mtab" following <https://github.com/microsoft/WSL/issues/3984#issuecomment-491684299> and it worked.
  11. 9) Once I was back in Debian, I cloned and built agbcc and Pokeemerald to get myself comfortable.
  12.  
  13. Now's when I started to work my way through Pokeheartgold.
  14. Naturally, this started by using "git clone https://github.com/pret/pokeheartgold" in my Home folder.
  15. The rest is just following its INSTALL.md.
  16. 1) Download mwccarm and copy its folder into "pokeheartgold\tools".
  17. 2) Download and uncompress NitroSDK-4_2-071210-jp.7z, and put its "bin" folder inside "pokeheartgold\tools".
  18. 3) Grab the following files and put them in the appropriate places inside Pokeheartgold's folder:
  19. -"include\nitro\specfiles\ARM7-TS.lcf.template" // This goes in Pokeheartgold's "sub" directory.
  20. -"include\nitro\specfiles\ARM9-TS.lcf.template" // This goes in Pokeheartgold's root folder.
  21. -"include\nitro\specfiles\mwldarm.response.template" // This goes in Pokeheartgold's root folder.
  22. 4) "sudo apt install wine python3 pkg-config libpugixml-dev -y"
  23. 5) Make an environment variable called "LM_LICENSE_FILE" and point it to "C:\Users\(YOUR_USERNAME)\Home\pokeheartgold\tools\mwccarm\license.dat".
  24.  
  25. Then I tried to build a ROM normally by using "make".
  26. And then I got errors because Debian couldn't find some of the binary files that the project needs.
  27. To solve it, I just threw in the following paths in my Windows PATH env. variable:
  28. -"C:\Users\(YOUR_USERNAME)\Home\pokeheartgold\tools\mwccarm\2.0\sp2p2"
  29. -"C:\Users\(YOUR_USERNAME)\Home\pokeheartgold\tools\mwccarm\2.0\sp2p3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement