Lunos
Random Uruguayan User
- 3,170
- Posts
- 16
- Years
- Montevideo (Uruguay)
- Seen yesterday
EDIT2 (26/10/2022): Cygwin and devkitPro on Windows both work fine again, so I'm bringing this tutorial back from the dead.
EDIT (19/11/2021): I no longer consider Cygwin as a viable option to build the decomps.
devkitPro has been broken for about a year on my end, so I can no longer recommend it, or anything that requires using it, such as the process to build the decomps.
Windows 7 or 8.1 users should stick to MSys2
I'll be as quick as possible, just like in my previous tutorial about building the decomps in MSys2.
My objective here was to build the decomps as fast as possible, so forget about having me explain the meaning behind these steps.
It's not hard to figure out what are we doing here though.
For this tutorial we only really need the GBA Development Package, so feel free to leave the others unchecked if you want to save on hard drive space.
Note: If for some strange reason you get an error, try again after following these instructions.
To make things easier for everyone, I will assume that you installed it or will install it in its default location, which is C:\devkitPro.
2) Download Cygwin and then open up the installer.
3) As soon as you open it up, just click the "Next" button 6 times to reach the Package Selection.
Note: Needless to say, from this point onward I'll assume you've installed Cygwin in its default location (aka C:\cygwin64) for convenience's sake.
4) Once there, set the View parameter to "Full", so you can see all the packages that Cygwin has.
5) Using the Search Bar to the right, look up the following packages:
7) Open up C:\cygwin64\Cygwin.bat so Cygwin can set up a few config files and a home folder for you to work in.
8) Use the following commands in order:
Protip: You can copy and paste these in your shell using right click, still, one by one.
If you can't, it's because you don't have the QuickEdit Mode enabled.
Do a left click in the icon on the upper left corner of the command prompt's window and go to Properties > Options. Once there, check "QuickEdit Mode", click OK and you're done.
I also recorded a quick video showing the whole process, just in case.
Note: The video is way longer than it should be, as I recorded every single thing included the times where I had to wait for X thing to finish.
Feel free to skip those parts. I couldn't be bothered to remove them myself, I'm way too lazy.
What can you do now? Well, whatever you want really. You have the source code of Game Freak's Pokémon Emerald in front of you, so go wild.
A lot of people like to clone the Pokeemerald-expansion and pull public feature branches to start their projects.
If you want to learn how to do that, you can visit my tutorial.
https://www.pokecommunity.com/threads/432321
And that's pretty much it.
devkitPro has been broken for about a year on my end, so I can no longer recommend it, or anything that requires using it, such as the process to build the decomps.
Windows 7 or 8.1 users should stick to MSys2
I'll be as quick as possible, just like in my previous tutorial about building the decomps in MSys2.
My objective here was to build the decomps as fast as possible, so forget about having me explain the meaning behind these steps.
It's not hard to figure out what are we doing here though.
Instructions
1) Download and install devkitPro.For this tutorial we only really need the GBA Development Package, so feel free to leave the others unchecked if you want to save on hard drive space.
Note: If for some strange reason you get an error, try again after following these instructions.
To make things easier for everyone, I will assume that you installed it or will install it in its default location, which is C:\devkitPro.
2) Download Cygwin and then open up the installer.
3) As soon as you open it up, just click the "Next" button 6 times to reach the Package Selection.
Note: Needless to say, from this point onward I'll assume you've installed Cygwin in its default location (aka C:\cygwin64) for convenience's sake.
4) Once there, set the View parameter to "Full", so you can see all the packages that Cygwin has.
5) Using the Search Bar to the right, look up the following packages:
- gcc-core
- gcc-g++
- git
- libpng-devel
- make
7) Open up C:\cygwin64\Cygwin.bat so Cygwin can set up a few config files and a home folder for you to work in.
8) Use the following commands in order:
Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.export DEVKITPRO=/cygdrive/c/devkitPro
echo export DEVKITPRO=$DEVKITPRO >> ~/.bashrc
export DEVKITARM=$DEVKITPRO/devkitARM
echo export DEVKITARM=$DEVKITARM >> ~/.bashrc
git clone https://github.com/pret/agbcc
git clone https://github.com/pret/pokeruby (or git clone https://github.com/pret/pokeemerald)
cd agbcc
./build.sh
./install.sh ../pokeruby (or ./install.sh ../pokeemerald)
cd ../pokeruby (or cd ../pokeemerald)
make -jN
Protip: You can copy and paste these in your shell using right click, still, one by one.
If you can't, it's because you don't have the QuickEdit Mode enabled.
Do a left click in the icon on the upper left corner of the command prompt's window and go to Properties > Options. Once there, check "QuickEdit Mode", click OK and you're done.
I also recorded a quick video showing the whole process, just in case.
Note: The video is way longer than it should be, as I recorded every single thing included the times where I had to wait for X thing to finish.
Feel free to skip those parts. I couldn't be bothered to remove them myself, I'm way too lazy.
What can you do now? Well, whatever you want really. You have the source code of Game Freak's Pokémon Emerald in front of you, so go wild.
A lot of people like to clone the Pokeemerald-expansion and pull public feature branches to start their projects.
If you want to learn how to do that, you can visit my tutorial.
https://www.pokecommunity.com/threads/432321
And that's pretty much it.
Last edited: