Guide to compiling USBLoaderGX and similar applications (July 2021)

Compiling Homebrew applications


Introduction
Other than some chatting here and there, from what I can see no thorough guide has been created and updated on this subject since the early 2010s, so I am going to show anyone searching for instruction on doing this.

1. Create/fork a repository
(If you are compiling someone else's existing code repository, go to Step 2b).
1a. If the code is yours, you'll need to upload it (makefile and all) to a Github repo.
1b. If you are compiling from an existing repository (i.e, USB Loader GX), you need to fork the repository of the existing code (Img 1 & 2).
img1.png


Img2.png


2. Create a codespace
On the main page for the repository you will see a green button that says "Code" on it. Click that, and choose "Codespaces", and click "Create codespace on [branch]" (Img 3). The codespace will take a bit of time to build, grab some tea or coffee while you wait 😋 🍵
Img3.png


3. Build the application
Once your codespace opens, you should see a terminal window in the bottom right of your screen, type
Code:
make clean && make
press enter (Img 4). You should now have the boot.dol file in your directory. This is the application. Make your meta.xml and icon.png seperately and put them in a folder. This folder should be the application's name, and contain no spaces. Put this folder in the Apps directory on your SD card or USB drive.

Img4.png

Not all applications use this method of building, I mainly put out this guide for people wanting to compile applications like USB Loader GX by themselves.
If you want to compile natively on your computer, you can alternatively follow Steps 1 & 2 and use Visual Studio Code with the Github Codespaces extension installed.

Edit: I'm dumb and wrote 2021 in the title.. remind me next time not to write a tutorial when running on caffeine alone lol
 
Last edited by therealedk_,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    why
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, it's not funny
  • K3Nv2 @ K3Nv2:
    ok
  • BigOnYa @ BigOnYa:
    Wut?
  • K3Nv2 @ K3Nv2:
    That's not funny
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    So two cannibals where eating a clown and one says to the other. Hey does this taste funny to you?
    +2
  • K3Nv2 @ K3Nv2:
    What do you call a slow car? Retired
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Did you hear about the police car that someone stole the wheels off of? The police are working tirelessly to find the thieves.
    +2
  • K3Nv2 @ K3Nv2:
    A firefighter got arrested for assault his main claim was what I was told he was on fire
    +2
  • BigOnYa @ BigOnYa:
    What do you call a hooker with a runny nose? Full
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    What do you tell a woman with two black eyes? Nothing you already told her twice!
  • K3Nv2 @ K3Nv2:
    Diddy also works
  • K3Nv2 @ K3Nv2:
    A scientist heard the word batman so he put a naked lady in a cage with a bat
  • Psionic Roshambo @ Psionic Roshambo:
    Chuck Norris won a staring contest, with the sun.
  • K3Nv2 @ K3Nv2:
    A vampires favorite thing to do is moon you
  • BigOnYa @ BigOnYa:
    What's the difference between an airplane, and Ken's mom? Not everyone has been in an airplane.
  • K3Nv2 @ K3Nv2:
    What's the difference between @BigOnYa and his wife? Nothing both want to bone me
    +3
  • RedColoredStars @ RedColoredStars:
    How much wood could a wood chuck chuck if a wood chuck could chuck norris
    +1
  • BakerMan @ BakerMan:
    how do i know? you're a guy, and he wants to bone every guy on this site (maybe, idk)
    +1
  • K3Nv2 @ K3Nv2:
    He wants to bone anything with a dick
    +1
  • Xdqwerty @ Xdqwerty:
    Good night
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, big day tomorrow. Congrats.
    K3Nv2 @ K3Nv2: https://www.instagram.com/reel/C7iLZ35NrQt/?igsh=MWd2Z3U0dmNlMmNxcw==