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
  • Xdqwerty @ Xdqwerty:
    good night
  • K3Nv2 @ K3Nv2:
    Oj did the Dj
  • Psionic Roshambo @ Psionic Roshambo:
    This the ultimate showdown of criminal celebrities!!!
  • Psionic Roshambo @ Psionic Roshambo:
    Bad guys and charges as far as the eye can see!!!
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder who will survive in prison I wonder who it will be!
  • Psionic Roshambo @ Psionic Roshambo:
    Jared and his blood covered foot long
  • meowie13 @ meowie13:
    hellooo everyone
  • K3Nv2 @ K3Nv2:
    https://a.co/d/7FN990Y lol flip my switch
  • Veho @ Veho:
    How to automate the un-automatable.
  • K3Nv2 @ K3Nv2:
    Kind of useless now considering my cat probably has a wifi chip inside it
  • Veho @ Veho:
    I guess it's useful if your landlord doesn't let you rewire the apartment or change the switches.
  • K3Nv2 @ K3Nv2:
    Smart plugs and bulbs are already around the same price
  • K3Nv2 @ K3Nv2:
    Wifi power strips even becoming common
  • Veho @ Veho:
    Having a remote servo that can push/pull something for you is still useful.
  • Veho @ Veho:
    It could operate a latch.
  • Veho @ Veho:
    On the other hand there are those chandeliers with like 50 lightbulbs and that would be a bit expensive to replace with smart bulbs.
    +1
  • K3Nv2 @ K3Nv2:
    Maybe if your hands are decapitated
  • Veho @ Veho:
    Maybe if I'm lazy.
    +1
  • Veho @ Veho:
    I have a number of geriatric relatives.
    +1
  • Veho @ Veho:
    Anbernic's SP clone will be $60 and I think I'll buy it. Looks decent enough and it will stop me from drooling over every single new handheld that comes out.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    It does look fun lol
    +1
  • Veho @ Veho:
    I love the GBA SP and this is the GBA SP on steroids. WiFi, Bluetooth, HDMI out, two microSD card slots, sleep mode on screen close, it has everything :D
    +1
  • SylverReZ @ SylverReZ:
    Hey guys. What's new about the Anbernic SP clone?
    SylverReZ @ SylverReZ: Hey guys. What's new about the Anbernic SP clone?