• Hey, guest user. Hope you're enjoying GameParadise! Have you considered registering for an account? Come join us and add your take to the daily discourse.
 

Building SM64 for Nintendo Switch from sm64ex-alo Repository

 
Hi, I hope the next steps help to somebody.

After the project «n64decomp» finished lots of forks emerged. One of them is the SM 64 PC Port which have as aim to be a port of n64decomp for modern devices.

Some of these ports was for the Switch console and become real on the fork fgsfdsfgs that fork seems to be staled, Now AloUltraExt have resumed the work and add some features and converged the latest code with latest refresh of the decomp project.

Switch Building Process

If you read the guide:

https://github.com/fgsfdsfgs/sm64pc/wiki/Compiling-for-Nintendo-Switch

The steps are loosely explained, but they don't work well for me, so I decided read a lot of documentation and the official SM64 thread completely.

I choose to use for this set of instructions the MSYS environment, which for me is easy to setup and as it is an enclosed environment which is not affected by other software on your computer, I mainly use Windows, but as MINGW is a Cygwin environment I think the steps could be easy extrapolated to Linux environments.

First you need:
Download the latest version from: https://github.com/msys2/msys2-installer/releases

Install the version corresponding to your Operating System (64 or 32 bits).

Accept the defaults in installation program of MSYS2 once you finish the installation you will have shortcuts for MSYS2, MinGW32 and MinGW64. MSYS2 is used to compiling POSIX binaries for Linux from Windows.

MinGW32 & MinGW64 compile Native Windows binaries using a linux toolchain (gcc, bash, etc.)

Launch MSYS2 (MinGW64): shell:
a.png

b.png



And on it execute the command:
pacman -Syuu
several times until you get the message:
"there is nothing to do"
. Sometimes you will need to restart the environment.

After you have the MSYS environment working you need to

Firts you need to edit the
pacman.conf
on
c:\msys64\etc\


And add the next lines at end of it:

Code:
[dkp-libs]
Server = https://pkg.devkitpro.org/packages

[dkp-windows]
Server = https://pkg.devkitpro.org/packages/windows/$arch/
Then Import the cypher keys of DevKitPro

Code:
pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com

In my case the command fail because the server didn't send the correct file:
Code:
gpg: keyserver receive failed: General error
==> ERROR: Remote key not fetched correctly from keyserver.
I did save the next content on a file called pubring.gpg: ()

-----BEGIN PGP PUBLIC KEY BLOCK-----

m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thPeWou62Oo4eQ+jJb
E4gv2J3/ZpzqA51U4Vn5BG5R8S90hyltGlP6oO7a0a1FJ6UyExbyHpnS1C1jMgAo
Kb5RfxsyVvyAzDzTky2H+er1qyOtOarisNU8KP5eq8tv63pVZ97uTI7YWw5bojZx
H1cUOpPoLInYp+X5xxdwW8LPw9HXP+4veSyhcjK79uFbY649rdWFi0EpMfwg92u1
Gza6NIwP/K7t5kWCn0fe3k+CLsCMGu17twEb8nrNhrzpV1iPFMGGVWh+Hw0hvAX2
gMNPLIXYoOlmRRK2jQy0uZw=

Then import it manually:

Code:
pacman-key --import "FULL_PATH_TO_FOLDER_CONTAINING_pubring_gpg"
By example:

Code:
pacman-key --import "C:\downloads\DevKitPro"
NOTE: the path to the file must be full and DO NOT end on the «\» character

If you don't get the error continue the process:

Next sign locally the key:

Code:
pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
Then verify the key is working well:

Code:
pacman-key -l BC26F752D25B92CE272E0F44F7FD5492264BB9D0
pacman-key -l F7FD5492264BB9D0
You should get a response just like:

Code:
pub  rsa4096 2018-02-28 [SC]
      BC26F752D25B92CE272E0F44F7FD5492264BB9D0
uid          [  full  ] Dave Murphy (WinterMute) <[email protected]>
sub  rsa4096 2018-02-28 [E]
Install DevKitPro Keyring

Code:
pacman -U https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz
Now verify and update packages database:

Code:
pacman -Syuu --noconfirm

DevKit-Env
The DevKitPro's package
devkit-env
install a shell which setup the different environment variables needed by homebrew to be build.
you can install the package with the command:

Code:
pacman -Syu --needed --noconfirm devkit-env
Once you install that package the environment must be intialized, you can close and reopen the MINGW window or you can run the command:
Code:
source /etc/profile.d/devkit-env.sh


Install prerequisites

In a MinGW64 shell (or MinGW32 if you have a Windows 32 bit edition, why will you do today?). Be sure the prompt shows MINGW64 or MINGW32 if not you started the wrong shell, close it and open the right one.
b.png



Please execute the next command, several times until you get the message "there is nothing to do", you can be asked to restarts the MINGW64 environment few times:
pacman -Syuu


Then execute the next commands:

pacman -Sy --noconfirm base-devel git make mercurial python3 subversion unzip autoconf automake libtool pkg-config autoconf-wrapper mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-glew mingw-w64-x86_64-SDL2 mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL

pacman -S --noconfirm switch-dev devkitA64 dkp-toolchain-vars libnx switch-tools switch-mesa switch-libdrm_nouveau switch-sdl2


Once the installation end, verify the MSYS2 database again:

pacman -Syuu


Clone the repository, using the
--recursive
option in order to clone all the trees.

git clone --recursive https://github.com/AloUltraExt/sm64ex-alo


The repository is cloned to a subfolder of the "Home" directory of MinGWXX Shell, on the prompt "~" means your home directory.

You need copy a legal copy of the original ROM in the cloned directory, it must be in "Big Endian" formatted and called:

./baserom.us.z64


copy the file to the path
c:\msys64\home\<USERNAME>\sm64ex-alo


If your ROM isn't on Big Endian format, use https://hack64.net/tools/swapper.php to convert it.

You must be sure the
$PATH
variable include the mingwXX binaries.


Execute the command
Code:
echo $PATH
And check the
/mingw64/bin
and/or
/mingw32/bin
are on the path, if they are not you can add using the commands:

For Windows 64 bits use the command:
export PATH=/mingw64/bin:/mingw32/bin:$PATH


And for Windows 32 bits use:
export PATH=/mingw32/bin:/mingw64/bin:$PATH



Code:
source $DEVKITPRO/switchvars.sh

Now the environment is ready to build Switch version using any combination of the options you like, by example:
Code:
cd ~/sm64ex-alo
make TARGET_SWITCH=1 BETTERCAMERA=1 NODRAWINGDISTANCE=1 TEXTURE_FIX=1 -j4
Will activate a better camera handling, enable the drawing of far objects on the game, Fixes some texture related bugs (by example smoke) and by last uses 4 cores to run the build process.

After the process ends the NRO is on the build subfolder.

BUILD OPTIONS
Build optionDefaultPossible valuesDescription
VERSIONusus, eu, jp, shWhich ROM to use. The selected ROM has to be in the repo folder with the name baserom.$VERSION.z64. sh is currently broken.
TARGET_BITS32, 64,TARGET_BITS=n appends some compiler flags for an n-bit build. If the value is empty, the option does nothing, assuming your native toolchain will set everything up by itself. Use this only if you're having trouble otherwise.
TARGET_RPI00, 1If 1, select optimal settings for Raspberry PI hardware. See the main article (https://github.com/sm64pc/sm64pc/wiki/Helper-compiling-script-for-Raspberry-Pi) on that.
TARGET_WEB00, 1If 1, build Emscripten version. See the main article (https://github.com/sm64pc/sm64pc/wiki/Compiling-for-the-web) on that.
WINDOWS_BUILD0, 1If 1, build for Windows. Usually set automatically if building on Windows.
OSX_BUILD00, 1If 1, build for OSX.
WINDOWS_CONSOLE00, 1If 1, append -mconsole to Windows CFLAGS, making a console window appear while the game is running. Can be useful for debugging purposes.
DEBUG00, 1If 1, build with debug symbols and default optimization level. Otherwise build with -O2.
RENDER_APIGLGL, GL_LEGACY, D3D11, D3D12Select rendering backend to use.
GL corresponds to OpenGL 2.1 (gfx_opengl.c),
GL_LEGACY corresponds to OpenGL 1.3 (gfx_opengl_legacy.c).
Direct3D backends will also force WINDOW_API to DXGI.
WINDOW_APISDL2SDL2, DXGISelect windowing backend. GL renderers force SDL2 and D3D renderers force DXGI for now, so you don't need to specify this.
AUDIO_APISDL2SDL2Select audio backend. There's only one right now.
CONTROLLER_APISDL2SDL2Specify list of controller backends to use. There's only one right now.
BETTERCAMERA00, 1If 1, build with analog camera support (uses Puppycam).
NODRAWINGDISTANCE00, 1If 1, build with disabled draw distance (every object is active at all times). May affect gameplay.
TEXTURE_FIX00, 1If 1, enable various texture-related bugfixes (e.g. fixes the smoke texture).
EXT_OPTIONS_MENU10, 1If 1, enable Options menu. Accessed from the Pause menu by pressing R.
EXTERNAL_DATA00, 1If 1, load textures and soundbanks from external files. Allows you to use texture packs. The default data is copied to a res folder next to the produced executable. (On the console the folder goes on the root of SD Card)
DISCORDRPC00, 1If 1, enable Discord Rich Presence support. Only works on x86_64.
TEXTSAVES00, 1If 1, use INI-based save format instead of binary EEPROM dumps. Experimental.


NEW BUILD OPTIONS ADDED BY sm64ex-alo REPO
Build optionDefaultPossible valuesDescription
QOL_FIXES00, 1QOL improvements
QOL_FEATURES00, 1QOF improvements
MOUSE_ACTIONS00, 1On desktop versions, enable mouse support, Only works on SDL modes, DirectX is WIP.
EXT_DEBUG_MENU00, 1Enable Simple Debug Menu
PORT_MOP_OBJS00, 1Kazel's More Object Patch enable



After the NRO file is created, you can use SAK Switch Army Knife to make a NSP forwarder installable on the HOS.

Or better, use nsp-forwarder.n8.io to create a customized Forwarder.


Troubleshooting
  • If you get the error gcc: command not found or make: gcc: No such file or directory you do not install all needed packages or run the wrong Shell, be sure of running «MINGW32» or «MINGW64» and what that is pointed on the prompt in purple.
  • If the ROM is missing or wrong format/version you get the error Failed to open baserom.us.z64! Verify the correct ROM at the c:\msys64\home\<username>\sm64ex.folder.
  • If you get the error make: *** No targets specified and no makefile found. Stop. You are on the wrong folder the last make command should be run from c:\msys64\home\<username>\sm64ex folder.
  • Be sure of get the responses Target: i686-w64-mingw32 or Target: x86_64-w64-mingw32 when you run the command gcc -v if else other is shown on screen you install the wrong gcc package or run MSYS shell, remember the process should be run on «MINGW32» or «MINGW64» shells.
About author
admin
Avid gamer.

Comments

There are no comments to display.

Nintendo Switch information

Author
Chad Waliser
Article read time
6 min read
Views
200
Last update

More in Nintendo Switch

More from Chad Waliser

Share this nintendo switch

 
Back
Top