Skip to content

Installing Dependencies

someone2639 edited this page Aug 16, 2024 · 19 revisions

HackerSM64 has a few dependencies that need to be installed on your Linux filesystem in order to compile.

New Ubuntu installations likely need their package lists updated to find new packages. To update package lists, run the following command:

sudo apt update

To install the required dependencies, run this command:

sudo apt install -y binutils-mips-linux-gnu build-essential git libcapstone-dev pkgconf python3 gcc-mips-linux-gnu

Note that, unlike the vanilla SM64 decompilation repository, this repository also requires the gcc-mips-linux-gnu package.


If you're using a Linux distro other than Ubuntu, these are the install strings you should use instead:

Fedora/CentOS/RHEL

  • sudo dnf update
  • sudo dnf install binutils-mips64-linux-gnu base-devel git capstone-devel pkgconf python3 gcc-mips64-linux-gnu

Arch/Manjaro/Steam Deck

We have an unofficial PKGBUILD now!
  • Use a quicker build script to both install dependencies and build the game!
    • Baseroms must be placed in your home folder (/home/(username)/ or ~/)
    • Download the PKGBUILD and place in a new folder
    • Run makepkg -s in that folder
    • Your repository will live in (that folder)/src/HackerSM64-develop-2.1.0 for you to play around with (or move to an easier location)
Grab Dependencies Manually
  • sudo pacman -Syu
  • sudo pacman -S git make capstone gcc pkgconf
  • You will also need some packages from the AUR:
    • First, get mips64-elf-gcc-stage1
    • Next, install mips64-elf-binutils and mips64-elf-gcc
Previous
Mounting WSL to Drive

Installing Dependencies
Installing HackerSM64

                                                                                                  
Next
Setting up a Hack Repository