Difference between revisions of "Compiling ScummVM/Switch"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Created page with "= Compiling ScummVM for Switch = This page describes how you build a Switch binary from the ScummVM source tree. = Building From Source = This port of ScummVM to the Switch...")
 
 
(3 intermediate revisions by one other user not shown)
Line 17: Line 17:
sudo dkp-pacman -Sy
sudo dkp-pacman -Sy
sudo dkp-pacman -S \
sudo dkp-pacman -S \
switch-sdl2 \
    switch-sdl2 \
switch-libmad \
    switch-libmad \
switch-libogg \
    switch-libogg \
switch-libvorbis \
    switch-libvorbis \
switch-flac \
    switch-flac \
switch-libtheora \
    switch-libtheora \
switch-libpng \
    switch-libpng \
switch-libjpeg-turbo \
    switch-libjpeg-turbo \
switch-zlib \
    switch-zlib \
switch-freetype \
    switch-freetype \
switch-sdl2_net \
    switch-sdl2_net \
switch-curl \
    switch-curl \
switch-libtimidity \
    switch-giflib \
switch-pkg-config
    switch-libfribidi \
    switch-pkg-config
</syntaxhighlight>
</syntaxhighlight>


* Create a subdirectory somewhere outside the source folder for your ScummVM build and cd into it
* Create a subdirectory somewhere outside the source folder for your ScummVM build and cd into it


* Execute the command (once a curl-config script exists for devkitA64, the --disable-libcurl could be omitted)
* Execute the command
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
../scummvm/configure --host=switch --disable-libcurl
../scummvm/configure --host=switch
</syntaxhighlight>
</syntaxhighlight>



Latest revision as of 13:42, 7 August 2022

Compiling ScummVM for Switch

This page describes how you build a Switch binary from the ScummVM source tree.

Building From Source

This port of ScummVM to the Switch is based on SDL2. It uses the open source SDK provided by devkitPro.

To build ScummVM for Switch:

  • Update package database and install libraries (see here for an updated list)
sudo dkp-pacman -Sy
sudo dkp-pacman -S \
    switch-sdl2 \
    switch-libmad \
    switch-libogg \
    switch-libvorbis \
    switch-flac \
    switch-libtheora \
    switch-libpng \
    switch-libjpeg-turbo \
    switch-zlib \
    switch-freetype \
    switch-sdl2_net \
    switch-curl \
    switch-giflib \
    switch-libfribidi \
    switch-pkg-config
  • Create a subdirectory somewhere outside the source folder for your ScummVM build and cd into it
  • Execute the command
../scummvm/configure --host=switch
  • Execute the command
make scummvm_switch.zip