Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up devkitARM to build LövePotion on Windows, Applicable to most 3DS homebrew however
  1. Run devkitProUpdater-1.6.0.exe, devkitARM is the only thing you need to install.
  2. Setup MSYS2: (Skip this if you already have properly setup MSYS2)
  3. Download and install MSYS2 following instructions here.
  4. Run MSYS2 64bit > MSYS2 MinGW 64 bit from Start.
  5. Run the following to install the necessary tools:
pacman --needed -S base-devel git mingw-w64-x86_64-toolchain
  1. Run your shell (ie. MSYS2 64bit > MSYS2 MinGW 64 bit), then change into your development/working directory, ie.:
cd /c/Users/Xtansia/Development/3ds/
  1. Build and install latest 3ds_portlibs:
git clone https://github.com/devkitPro/3ds_portlibs
cd 3ds_portlibs
make zlib
make install-zlib
make freetype libjpeg-turbo libpng libogg
make install
cd ..
  1. Build and install latest ctrulib:
git clone https://github.com/smealum/ctrulib
cd ctrulib/libctru
make
make install
cd ../..
  1. Build and install latest citro3d:
git clone https://github.com/fincs/citro3d
cd citro3d
make
make install
cd ..
  1. Build and install latest sf2dlib:
git clone https://github.com/xerpi/sf2dlib
cd sf2dlib/libsf2d
make
make install
cd ../..
  1. Build and install latest sfillib:
git clone https://github.com/xerpi/sfillib
cd sfillib/libsfil
make
make install
cd ../..
  1. Build and install latest sftdlib:
git clone https://github.com/xerpi/sftdlib
cd sftdlib/libsftd
make
make install
cd ../..
  1. Build latest LövePotion:
git clone https://github.com/VideahGams/LovePotion
cd LovePotion
mkdir game
# put your game stuff in game
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment