Homebrew RELEASE switchdev - Docker image to easily compile homebrew applications for the Nintendo Switch

geodeath

Well-Known Member
Member
Joined
Oct 26, 2006
Messages
300
Trophies
0
Location
London
XP
752
Country
This is just a super simple Docker image that will allow you to easily compile a Nintendo Switch homebrew application without having to install a bunch of stuff & configure your local workstation for Switch homebrew.

Assuming you have Docker setup on your workstation and a Makefile for your project, you can just run this command from within your homebrew project's root directory:
Code:
docker run --rm -v $PWD:/developer yesimnathan/switchdev

I'm just getting into Switch homebrew but I've compiled some basic apps as well as Atmosphere with this and it seems to work great, so I figured I'd share it for others to use!

Image on Docker Hub: https://hub.docker.com/r/yesimnathan/switchdev/
Source: https://github.com/nchowning/dockerfiles/tree/master/switchdev

What languages can you use atm to develop Switch apps? I might consider getting my hands dirty, especially now that all this tooling that i am already using for years is compatible!
 

MaxiBus

Well-Known Member
Member
Joined
Jan 12, 2018
Messages
219
Trophies
0
XP
1,240
Country
Austria
On Manjaro: docker: Error response from daemon: error creating aufs mount to /var/lib/docker/aufs/mnt/9aaa832df8bae150693cda2333b72848087660d4642279d639edacb1e36b7bf9-init: invalid argument.

Something is wrong with your docker installation. Just tested on debian 9, works.
 

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
Country
United States
What languages can you use atm to develop Switch apps? I might consider getting my hands dirty, especially now that all this tooling that i am already using for years is compatible!

With this container, just C & C++ for right now. I think there are some solutions for writing python & lua on the switch as well but I haven't played with them yet
 

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
Country
United States
I updated this to version 1.3 which includes support for homebrew using libtransistor. I also reverted back to using my own arch linux build instead of basing this off of devkitPro's official docker image since their image is based on debian and I prefer arch linux.
 

t34p075

Well-Known Member
Newcomer
Joined
Feb 4, 2017
Messages
54
Trophies
0
Age
38
XP
272
Country
United States
getting the following error when i try to compile this Homebrew. please help?

Code:
ocker run --rm -v $PWD:/developer yesimnathan/switchdev
video.c
aarch64-none-elf-gcc -MMD -MP -MF /developer/build/video.d -g -Wall -Ofast -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/developer/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/developer/build -D__SWITCH__ -c /developer/source/video.c -o video.o
/developer/source/video.c:1:10: fatal error: libavutil/imgutils.h: No such file or directory
 #include <libavutil/imgutils.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [/opt/devkitpro/devkitA64/base_rules:19: video.o] Error 1
make: *** [Makefile:151: build] Error 2
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    Cuz it's some kind of holiday related to the town I live in
  • Xdqwerty @ Xdqwerty:
    Am I [R WORD]?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, People who create revival services for the Wii end up in disaster, same goes for Pretendo lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, atleast wiimmfii went fine although people only use it for Mario kart Wii
  • SylverReZ @ SylverReZ:
    At least if they ban you for cheating, get another Wii. They're cheap as chips.
    +1
  • SylverReZ @ SylverReZ:
    Remember when RiiShop was a thing?
  • BakerMan @ BakerMan:
    not really
  • SylverReZ @ SylverReZ:
    It got shutdown because somebody "accidentally" leaked the database for the amount of people using the beta.
  • SylverReZ @ SylverReZ:
    RiiShop is the laziest way of downloading Wii games. Did somebody not think of this through?
  • BakerMan @ BakerMan:
    although i ended up accidentally changing my nand with no way of going back bc i didn't know you needed a gamecube controller to restore it (i have a wii minus/1.1, which doesn't have gamecube controller support)
  • SylverReZ @ SylverReZ:
    @BakerMan, I think you're talking about the recovery mode that the SaveMii used, and also was to restore softbricked systems.
  • SylverReZ @ SylverReZ:
    If your NAND was hardbricked, then just buy another Wii. Or go with the dirty NAND flasher method.
  • BakerMan @ BakerMan:
    and if i find the sd card i have my NAND backed up on, i can not only restore the NAND if i solder the right part in, but i can also put my NAND on dolphin, then i can play dolphin online, like PMEX Remix or MKWii Riibalanced
  • Xdqwerty @ Xdqwerty:
    Brb
  • SylverReZ @ SylverReZ:
    @BakerMan, Oh yeah, that was a thing too. Dolphin does support Wiimmfi.
  • BakerMan @ BakerMan:
    yeah you just need to put your NAND backup with wiimmfi on it
  • BakerMan @ BakerMan:
    ngl i feel like if a bunch of my friends have wiis and know how to get wiimmfi and back up their NAND, then we could do a PMEX Remix tournament
  • BakerMan @ BakerMan:
    maybe even add UMVC3/DBFZ and make it a biathlon/triathlon
  • Psionic Roshambo @ Psionic Roshambo:
    Too bad Excite Truck wasn't multi player :(
  • Psionic Roshambo @ Psionic Roshambo:
    Loved that game lol
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, sorry for the stupid suggestion I had in that thread
  • SylverReZ @ SylverReZ:
    Its fine
  • BakerMan @ BakerMan:
    what thread?
    BakerMan @ BakerMan: what thread?