Lunos

Quick Steps to build the decomps on a clean Windows OS

Aug 9th, 2019
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. Note #1: For the sake of easiness, we'll install everything in their default paths, so C:\devkitPro and C:\Cygwin64.
  2. Note #2: Win Key + R > inetcpl.cpl and make sure to check SSL 2.0, TLS 1.1 and TLS 1.2 to avoid getting errors.
  3.  
  4. 1) Download and install devkitPro from here: https://github.com/devkitPro/installer/releases
  5. 2) Download and run the Cygwin installer from here: https://www.cygwin.com/install.html
  6. Inside the Cygwin installer do Next, Next, Next until you reach the Package Selection.
  7. 3) Set "View" to Full so you can look up any package that Cygwin has, and using the Search Bar, make sure to check these:
  8. * gcc-core (Description: "GNU Compiler Collection (C, OpenMP)")
  9. * gcc-g++ (Description: "GNU Compiler Collection (C++)")
  10. * git (Description: "Distributed version control system")
  11. * libpng-devel (Description: "PNG library")
  12. * make (Description: "The GNU version of the 'make' utility")
  13. 4) Click on Next, let Cygwin handle the rest and close the installer once it's done.
  14. 5) Open up C:\cygwin64\Cygwin.bat at least once.
  15. 6) On Cygwin.bat type in these commands one by one:
  16. * export DEVKITPRO=/opt/devkitPro
  17. * echo "export DEVKITPRO=$DEVKITPRO" >> ~/.bashrc
  18. * export DEVKITARM=$DEVKITPRO/devkitARM
  19. * echo "export DEVKITARM=$DEVKITARM" >> ~/.bashrc
  20. 7) Time to clone agbcc and the desired decomp. For this demonstration, I'll use Pokeemerald.
  21. * git clone https://github.com/pret/agbcc
  22. * git clone https://github.com/pret/pokeemerald
  23. 8) Once they're done, we'll build Agbcc by doing:
  24. * cd agbcc
  25. * ./build.sh
  26. 9) Then we'll install Agbcc on our repository by doing:
  27. * ./install.sh ../pokeemerald
  28. 10) And then we're ready to compile Pokeemerald by doing:
  29. * cd ../pokeemerald
  30. * make -jN
  31. Note: "N" stands for the number of CPU Threads you want to assign to the compiler. The more threads, the faster it'll go.
  32.  
  33. And that's pretty much it.
  34.  
  35. If nothing went wrong, this should be the result: https://i.imgur.com/FOoCKTu.png
Advertisement
Add Comment
Please, Sign In to add comment