Tutorial
Updated
Setup Compile Environment Windows 10 WSL
Hello, some weeks ago I made a clean WSL (Windows Subsystem for Linux) image to setup a devenv for the switch and I'm here to share it with you.
First, update your Windows 10 to the latest version or you may be not able to execute some necessary steps.
STEP 1: Activate WSL on your windows machine.
Follow this tutorial: https://winaero.com/blog/enable-wsl-windows-10-fall-creators-update/
STEP2: Download LxRunOffline from here
https://github.com/DDoSolitary/LxRunOffline/releases
STEP3: Download my ArchLinux image preinstalled with all needed things:
PM ME.
Move the switchdev.tar.gz to somewhere recognizable
STEP4: Extract LxRunOffline, open a console and do the following command:
Example:
.\LxRunOffline.exe i -n switchdev -d c:\switch -f .\switchdev.tar.gz -s
Usage:
.\LxRunOffline.exe i
Options:
-n arg Name of the distribution
-d arg The directory to install the distribution into.
-f arg The tar file containing the root filesystem of the
distribution to be installed.
-r arg The directory in the tar file to extract. This argument
is optional.
-c arg The config file to use. This argument is optional.
-v arg (=1) The version of filesystem to use, latest available one
if not specified.
-s Create a shortcut for this distribution on Desktop.
STEP5:
Run the image doing:
where switchdev is the name you put on the installation process.
STEP6:
run this two commands to have it fully working:
pacman -Sy switch-sdl2 switch-sdl2_gfx switch-sdl2_image switch-sdl2_mixer switch-sdl2_net switch-sdl2_ttf switch-bulletphysics switch-bzip2 switch-curl switch-ffmpeg switch-flac switch-freetype switch-glad switch-glm switch-jansson switch-libass switch-libconfig switch-libdrm_nouveau switch-libexpat switch-libfribidi switch-libjpeg-turbo switch-libjson-c switch-libmad switch-libmikmod switch-libmodplug switch-libogg switch-libopus switch-libpng switch-libsamplerate switch-libtheora switch-libvorbis switch-libvorbisidec switch-libxml2 switch-mesa switch-mpg123 switch-opusfile switch-pkg-config switch-zlib
echo "export DEVKITA64=/opt/devkitpro/devkitA64/" >> /root/.bashrc && source /root/.bashrc
That's all, whenever you run your image you will be root, devkitpro it's already installed in the /opt directory, you now can compile the switch examples
I made this some weeks ago as I said and I'm not testing the procedure again, but It's easy enough to read a little.
If you have questions ask me
First, update your Windows 10 to the latest version or you may be not able to execute some necessary steps.
STEP 1: Activate WSL on your windows machine.
Follow this tutorial: https://winaero.com/blog/enable-wsl-windows-10-fall-creators-update/
STEP2: Download LxRunOffline from here
https://github.com/DDoSolitary/LxRunOffline/releases
STEP3: Download my ArchLinux image preinstalled with all needed things:
PM ME.
Move the switchdev.tar.gz to somewhere recognizable
STEP4: Extract LxRunOffline, open a console and do the following command:
Example:
.\LxRunOffline.exe i -n switchdev -d c:\switch -f .\switchdev.tar.gz -s
Usage:
.\LxRunOffline.exe i
Options:
-n arg Name of the distribution
-d arg The directory to install the distribution into.
-f arg The tar file containing the root filesystem of the
distribution to be installed.
-r arg The directory in the tar file to extract. This argument
is optional.
-c arg The config file to use. This argument is optional.
-v arg (=1) The version of filesystem to use, latest available one
if not specified.
-s Create a shortcut for this distribution on Desktop.
STEP5:
Run the image doing:
LxRunOffline.exe r -n switchdev
where switchdev is the name you put on the installation process.
STEP6:
run this two commands to have it fully working:
pacman -Sy switch-sdl2 switch-sdl2_gfx switch-sdl2_image switch-sdl2_mixer switch-sdl2_net switch-sdl2_ttf switch-bulletphysics switch-bzip2 switch-curl switch-ffmpeg switch-flac switch-freetype switch-glad switch-glm switch-jansson switch-libass switch-libconfig switch-libdrm_nouveau switch-libexpat switch-libfribidi switch-libjpeg-turbo switch-libjson-c switch-libmad switch-libmikmod switch-libmodplug switch-libogg switch-libopus switch-libpng switch-libsamplerate switch-libtheora switch-libvorbis switch-libvorbisidec switch-libxml2 switch-mesa switch-mpg123 switch-opusfile switch-pkg-config switch-zlib
echo "export DEVKITA64=/opt/devkitpro/devkitA64/" >> /root/.bashrc && source /root/.bashrc
That's all, whenever you run your image you will be root, devkitpro it's already installed in the /opt directory, you now can compile the switch examples
I made this some weeks ago as I said and I'm not testing the procedure again, but It's easy enough to read a little.
If you have questions ask me
Last edited by Rusb,