All Projects → vgmoose → sdl-hello-world

vgmoose / sdl-hello-world

Licence: other
Draw "hello world" on the screen of the Nintendo Switch

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to sdl-hello-world

sys-clk-Overlay
Editor for your sys-clk configuration using ovl-loader!
Stars: ✭ 53 (+47.22%)
Mutual labels:  homebrew, nintendo-switch
Borealis
Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx).
Stars: ✭ 135 (+275%)
Mutual labels:  homebrew, nintendo-switch
Deko3d
Homebrew low level graphics API for Nintendo Switch (Nvidia Tegra X1)
Stars: ✭ 103 (+186.11%)
Mutual labels:  homebrew, nintendo-switch
Hbupdater
A simple python app for keeping your switch apps up-to-date using the github api.
Stars: ✭ 37 (+2.78%)
Mutual labels:  homebrew, nintendo-switch
Nx Activity Log
Homebrew application for the Nintendo Switch which displays play activity with more accuracy
Stars: ✭ 197 (+447.22%)
Mutual labels:  homebrew, nintendo-switch
Switchpresence
A Nintendo Switch custom sysmodule for Discord Rich Presence.
Stars: ✭ 75 (+108.33%)
Mutual labels:  homebrew, nintendo-switch
Twili
Homebrew debug monitor for the Nintendo Switch.
Stars: ✭ 131 (+263.89%)
Mutual labels:  homebrew, nintendo-switch
Sysdvr
Stream switch games to your PC via USB or network
Stars: ✭ 523 (+1352.78%)
Mutual labels:  homebrew, nintendo-switch
Amiiswap
Nintendo Switch GUI Amiibo Manager homebrew for emulation with Emuiibo (nfp mitm)
Stars: ✭ 159 (+341.67%)
Mutual labels:  homebrew, nintendo-switch
Goldleaf
🍂 Multipurpose homebrew tool for Nintendo Switch
Stars: ✭ 2,026 (+5527.78%)
Mutual labels:  homebrew, nintendo-switch
Vba M Nx
WIP full featured port of VBA-M for Nintendo Switch
Stars: ✭ 11 (-69.44%)
Mutual labels:  homebrew, nintendo-switch
NSW-Custom-Game-Icons
Nintendo Switch custom game icons, icon repo for NX-GiC
Stars: ✭ 33 (-8.33%)
Mutual labels:  homebrew, nintendo-switch
Hydrosphere
Ocean beyond the Horizon
Stars: ✭ 17 (-52.78%)
Mutual labels:  homebrew, nintendo-switch
Sys Clk Editor
Editor for your sys-clk configuration!
Stars: ✭ 89 (+147.22%)
Mutual labels:  homebrew, nintendo-switch
Nx Shell
A multi-purpose file manager for the Nintendo Switch.
Stars: ✭ 639 (+1675%)
Mutual labels:  homebrew, nintendo-switch
Vba Next Switch
Libretro VBA-Next port for Switch. **Don't use this, see readme!**
Stars: ✭ 110 (+205.56%)
Mutual labels:  homebrew, nintendo-switch
Switchthemeinjector
Create custom themes for the nintendo switch !
Stars: ✭ 436 (+1111.11%)
Mutual labels:  homebrew, nintendo-switch
Hb Appstore
Homebrew App Store - GUI for downloading/managing homebrew apps for video game consoles
Stars: ✭ 463 (+1186.11%)
Mutual labels:  homebrew, nintendo-switch
Brew.js
[WIP] C++ high-level JavaScript API for Nintendo 3DS/Switch
Stars: ✭ 136 (+277.78%)
Mutual labels:  homebrew, nintendo-switch
libusbhsfs
USB Mass Storage Class Host + Filesystem Mounter static library for Nintendo Switch homebrew applications.
Stars: ✭ 81 (+125%)
Mutual labels:  homebrew, nintendo-switch

This program draws "Hello world!" on the Nintendo Switch using a bitmap font.

The main code is in hello.c.

To see another simple SDL2 program with graphics and input, see spacenx, or for a more complicated one appstorenx

Compiling

For Switch (libtransistor)

  1. You will need llvm for your computer. You can probably get this through your package manger (eg. brew install llvm, see here for more info)

  2. Setup and install libtransistor by downloading it from the releases page. It is recommended to copy it to /opt/libtransistor.

  3. Export the following environment variable to where you unpacked libtransistor. You may want to put this line in your bash profile:

export LIBTRANSISTOR_HOME=/opt/libtransistor
  1. Clone, setup, and compile sdl-libtransistor:
git clone https://github.com/reswitched/sdl-libtransistor.git
cd sdl-libtransistor
make -f switch.mk
  1. Install pyelftools and lz4via pip
pip3 install pyelftools lz4
  1. Clone this repo and run make:
git clone https://github.com/vgmoose/sdl-hello-world.git
cd sdl-hello-world
make

A file hello.nro should be sitting in your current directory.

For Switch (libnx)

  1. Setup and install dkp-pacman

  2. Install devkitA64 needed Switch dependencies via dkp-pacman:

sudo dkp-pacman -S devkitA64 libnx switch-tools switch-sdl2
  1. Clone this repo and run make:
git clone https://github.com/vgmoose/sdl-hello-world.git
cd sdl-hello-world
make -f Makefile.libnx

A file hello.nro should be sitting in the build folder.

For PC

This program can also be compiled for the computer. There's no Makefile target, but with SDL2 installed:

gcc -lSDL2 *.c -o hello
./hello

Running

You can run this program on most Switches that were released prior to June 2018 regardless of firmware. For detailed instructions, see this post.

You should put the hello.nro file in sd:/switch/hello.nro and then run hbmenu in order to run this app.

If you need additional resources or help, you can feel free to stop by the Homebrew App Store discord server, make an issue on this repo, or contact me directly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].