Compiling (Android) - ManIsCat2/sm64coopdx GitHub Wiki
Android:
Set up Termux
Download the F-Droid .apk
from here and install it.
If you get this warning:
For your security, your phone is not allowed to install unknown apps from this source.
just press settings and enable Allow from this source
.
After installing F-Droid, open it and search for Termux Terminal
then install it.
Open Termux and type pkg upgrade -y
then press enter. When you see the text "The default action is to keep your current version" type I
and press enter.
After it finishes, type termux-setup-storage
and hit enter then press Allow
.
Then type:
pkg remove libglvnd
pkg install git wget make python getconf zip \
apksigner clang binutils libglvnd-dev aapt libandroid-execinfo which
Copy baserom for sound address extraction
While the ROM is no longer needed for extracting any copyrighted assets, it is still needed for the audio part of the compilation.
Get your vanilla US Super Mario 64 8 MB Z64 format ROM file and rename it to baserom.us.z64
before putting it in the root of your phone (Internal Storage).
If you have a ROM that matches the criteria above minus the file extension (if it's .v64
or .n64
) then you can use this online ROM byteswapper to convert it into the .z64
file format.
Compilation
Finally, it's time to compile. First clone the repo by running the following command:
git clone --recursive \
https://github.com/ManIsCat2/sm64coopdx.git
Next copy your rom to the repo by running these command:
cp /storage/emulated/0/baserom.us.z64 \
sm64coopdx/baserom.us.z64
cd sm64coopdx
Finally, compile the project by running these command:
make -j$(nproc)
cp build/us_pc/sm64coopdx.apk /storage/emulated/0
You can append build flags to your make invocation for any needed changes.
After that you should find your .apk
in your Internal Storage root, just install it and enjoy.