Advertisement
Lunos2

Lunos' Bizarre Adventure through Fedora Remix on WSL1

Nov 24th, 2022 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. What I did in an attempt to build the Pret NDS Decomps in 2022:
  2. 1) Download Fedora Remix's package.
  3. 2) Extract the files from its "Fedora-Remix-for-WSL-SL_37.0.4.0_x64_arm64.msixbundle\Fedora-Remix-for-WSL-SL_37.0.4.0_x64.msix" file somewhere safe.
  4. 3) Run the fedoraremix.exe file, type in a user and a pass normally, and wait.
  5. 4) Close Fedora, and inside a command prompt do: wsl -l -v, and after looking at the Fedora installation's name, wsl --set-version fedoraremix 1
  6. 5) Once I got back into Fedora, I typed sudo dnf update which seems to be the equivalent to "sudo apt update && sudo apt upgrade".
  7. 6) "sudo dnf install make automake gcc gcc-c++ kernel-devel git libpng-devel nano ugrep pacman"
  8. Note: nano and ugrep are optional.
  9. 7) "sudo pacman-key --init"
  10. 8) "export DEVKITPRO=/opt/devkitpro && echo export DEVKITPRO=$DEVKITPRO >> ~/.bashrc"
  11. 9) "export DEVKITARM=$DEVKITPRO/devkitARM && echo export DEVKITARM=$DEVKITARM >> ~/.bashrc"
  12. 10) "sudo pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com"
  13. 11) "sudo pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0"
  14. 12) "sudo wget https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz"
  15. 13) "sudo pacman -U devkitpro-keyring.pkg.tar.xz"
  16. 14) Go to Fedora's filesystem with cd, browse back some folders with "cd ..", enter the "etc" folder and edit the pacman.conf file with "sudo nano", adding this at the end:
  17. [dkp-libs]
  18. Server = https://pkg.devkitpro.org/packages
  19.  
  20. [dkp-linux]
  21. Server = https://pkg.devkitpro.org/packages/linux/$arch/
  22. 15) Ctrl+X to exit, Y to confirm a save, and then "source pacman.conf" to refresh the file just in case.
  23. 16) "sudo pacman -Syu"
  24. 17) "sudo pacman -S gba-dev"
  25. 18) Use cd to enter agbcc's folder, and then modify the build.sh script like so:
  26. ```diff
  27. - if ! ([ -n "$DEVKITARM" ] && [ -d "$DEVKITARM/bin" ]) && ! (command -v arm-none-eabi-as &> /dev/null && command -v arm-none-eabi-ar &> /dev/null) ; then
  28. + if ! ([ -n "$DEVKITARM" ] && [ -d "$DEVKITARM/bin" ]) && ! (command -v sudo pacman arm-none-eabi-as &> /dev/null && command -v sudo pacman arm-none-eabi-ar &> /dev/null) ; then
  29. ```
  30. 19) "sudo ./build.sh"
  31.  
  32. And then I gave up because the environment couldn't find or access arm-none-eabi-as and arm-none-eabi-ar, and instead of looking how to make it happen, I just switched to Debian :P
  33. I started by building the GBA decomps to familiarize myself with things.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement