Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Note: If you already have WSL set up, go to the Step 10.
- 1) Enable WSL if you haven't done it already by going to Windows PowerShell and typing:
- Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Let it run and restart your PC once it's done.
- 2) Go to the Microsoft Store and download Ubuntu 18.04 from there.
- Alternatively, you can download the distro outside of the store as a .appx package from the Ubuntu Wiki.
- https://wiki.ubuntu.com/WSL#Installing_Ubuntu_on_WSL_by_sideloading_the_.appx
- 3) Introduce the following commands, one at a time. It's gonna take a lot of waiting. You'll also need to press the Y key, choose Yes and press Enter at some point.
- sudo apt update
- sudo apt upgrade
- 4) sudo apt install build-essential git libpng-dev libarchive13 pkg-config
- Press Y and wait until it finishes.
- 5) Download devkitpro's installer for Linux (devkitpro-pacman.amd64.deb).
- https://github.com/devkitPro/pacman/releases
- 6) Put it in your Desktop, a folder or wherever and go there using the "cd" command.
- 7) sudo dpkg -i devkitpro-pacman.amd64.deb
- 8) Run the following commands:
- sudo dkp-pacman -Sy
- sudo dkp-pacman -S gba-dev
- 9) Close WSL and open it again, so it can recognize the variables created by devkitpro.
- 10) Go to your regular work folder or make one if you don't have one.
- I personally like to keep my stuff in C:\Users\Lunos\Decomps, so imma head there by using "cd /mnt/c/Users/Lunos/Decomps"
- 11) git clone https://github.com/pret/pokediamond
- 12) Download the MWCC compiler right here: https://cdn.discordapp.com/attachments/698589325620936736/845499146982129684/mwccarm.zip
- 13) Extract the folder and toss the mwccarm containing 2 folders and a license.dat file into C:\cygwin64\home\USER\pokediamond\tools
- 14) Download the Nitro SDK right here: https://cdn.discordapp.com/attachments/698589325620936736/722822401963851797/NitroSDK-3_2-060901.7z
- 15) Extract the folder and go to C:\Users\USER\Desktop\NitroSDK-3_2-060901\tools
- 16) Throw the bin folder there into C:\cygwin64\home\USER\pokediamond\tools
- 17) Go back to C:\Users\Lunos\Desktop\NitroSDK-3_2-060901 and from there go to include\nitro\specfiles
- Once there:
- *-Grab the ARM7-TS.lcf.template file and drop it in C:\cygwin64\home\USER\pokediamond\arm7
- *-Grab the ARM9-TS.lcf.template file and drop it in C:\cygwin64\home\USER\pokediamond\arm9
- 18) Make a new Environment Variable (Win+R > rundll32.exe sysdm.cpl,EditEnvironmentVariables).
- Its name will be "LM_LICENSE_FILE" and the variable value will be the path to the license.dat file in Pokediamond's folder.
- Ex: C:\Users\Lunos\Decomps\pokediamond\tools\mwccarm\license.dat
- Make another one, call it "MWCIncludes" and give it whatever value you want, just don't leave it empty.
- This is to skip some irrelevant warning messages.
- 19) Add the paths to mwccarm\1.2\sp2p3 and mwccarm\2.0\sp1 present in your Pokediamond folder to Windows' PATH Variable.
- In my case, they look like this: https://i.imgur.com/QlHdCA0.png
- 20) Go back to WSL and then just
- cd pokediamond
- make -jN
- Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.
- And that's pretty much it.
Add Comment
Please, Sign In to add comment