Skip to content
SDL2 for the Nintendo Wii U (build with "cmake [SDL source path] -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu")
C Objective-C C++ Shell Java CMake Other
Branch: wiiu-2.0.9
Clone or download
Pull request Compare This branch is 114 commits ahead, 905 commits behind SDL-mirror:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
VisualC Added display event files to the Visual Studio projects Aug 23, 2018
Xcode-iOS Don't build SDL_JOYSTICK_HIDAPI by default on iOS Oct 26, 2018
build-scripts use less ancient versions of autofoo scripts Oct 18, 2018
include video/wiiu: Add flags to only draw on TV or Gamepad (#1) Apr 29, 2019
test test: Makefile should copy .dat files for testoverlay2. Sep 2, 2018
visualtest ran 'chmod -x' on many files Jun 12, 2018
.gitignore add gitignore (sorry) Apr 29, 2019
.hgignore First pass on the new SDL sensor API Aug 21, 2018
BUGS.txt BUGS.txt: Changed mailing list link to Apr 1, 2017
CMakeLists.txt cmake: Don't link against stub libraries Nov 21, 2019
COPYING.txt Updated copyright for 2018 Jan 3, 2018
CREDITS.txt Added Julian Winter to the credits for the SDL 2.0 website. Aug 12, 2013
Makefile.minimal Added a dummy sensor driver Aug 21, 2018
Makefile.pandora Added a dummy sensor driver Aug 21, 2018
Makefile.wiz Added a dummy sensor driver Aug 21, 2018
README-SDL.txt More HTTPS changes in the documentation. Feb 16, 2017
VisualC.html Fixed two typos in documentation. Jan 12, 2016
WhatsNew.txt Added patch note for SDL_GameControllerGetPlayerIndex() and friends Oct 26, 2018
configure Mark a subsystem as dummy, not disabled, if it was intended to be com… Sep 29, 2018 Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch Oct 7, 2016 Revert fix for bug 1392 because it breaks linking with mingw32 Oct 21, 2013

SDL2 for Wii U


This project is a port of the SDL software development library to the Nintendo Wii U video game console, built for the wut toolchain. Currently it implements support for audio, joystick (gamepad), touchscreen (gamepad), video (gx2), hardware accelerated rendering (gx2), timers and threading.


Prebuilt versions of sdl2, along with other sdl2 libraries (gfx, image, mixer, ttf), are available on the wiiu-fling pacman repository. Please reffer to these instructions to set up wiiu-fling.

Building on Linux

In order to build sdl2 for wiiu, you'll need to install some prerequisites:

  • devkitPPC (make sure to export $DEVKITPRO)
  • wut (make sure to export $WUT_ROOT)
  • cmake

Clone and enter the wiiu sdl repo:

$ git clone
$ cd SDL

Prepare for the build:

$ mkdir build && cd build


$ cmake ../ -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu
$ make

Install (might need to run as sudo depending on $DEVKITPRO/portlibs/wiiupermissions):

$ make install


  • rw-r-r-0644, quarktheawesome, exjam: wiiu sdl2 port and libraries
  • wiiu homebrew contributors
  • sdl mantainters
  • inspired by libnx/libtransistor sdl2 ports
You can’t perform that action at this time.