Skip to content

Instantly share code, notes, and snippets.

@tomshen
Last active February 4, 2024 04:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomshen/c7ae6f99429316eab4097f657cfb2185 to your computer and use it in GitHub Desktop.
Save tomshen/c7ae6f99429316eab4097f657cfb2185 to your computer and use it in GitHub Desktop.
Instructions for compiling Super Mario 64 Plus on the Steam Deck
  1. Follow the instructions at https://github.com/MorsGames/sm64plus/wiki/Manual-Building-Guide, but at the dependency step, run the following before building:
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -S sdl2 glew glibc linux-api-headers libusb libglvnd
  1. Add the sm64.us.f3dex2e file in build/us_pc as a non-Steam game.
  2. Pass in the gfx folder path as the second argument in the "Target" setting in Steam properties for the game.
  3. (Optional) Use artwork from https://www.steamgriddb.com/game/37177.
@jasicarose75
Copy link

What's good about Steam Deck?

@Erotemic
Copy link

Erotemic commented Feb 4, 2024

I'm getting errors:

src/pc/gfx/gfx_glx.c:10:10: fatal error: X11/X.h: No such file or directory
   10 | #include <X11/X.h>
      |          ^~~~~~~~~
compilation terminated.
Compiling: src/pc/audio/audio_null.c -> build/us_pc/src/pc/audio/audio_null.o
make: *** [Makefile:839: build/us_pc/src/pc/gfx/gfx_glx.o] Error 1
make: *** Waiting for unfinished jobs....
src/pc/audio/audio_alsa.c:33:10: fatal error: alsa/asoundlib.h: No such file or directory
   33 | #include <alsa/asoundlib.h>
      |          ^~~~~~~~~~~~~~~~~~

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment