# Building RetroArch-Web
Instructions have only been confirmed working for Ubuntu.
- For simplicity, you can execute this script. (opens new window)
# Dependencies
- Build Essential (opens new window)
- PkgConf (opens new window)
- BinUtils (opens new window)
- Python (opens new window)
- Git (opens new window)
sudo apt install -y \
binutils-mips-linux-gnu \
build-essential \
pkgconf \
python3 \
git
# LibRetro
Clone the repository.
git clone https://github.com/libretro/libretro-fceumm.git
The next steps depend on whether or not you have a
Makefile.libretro
file.
- Navigate to the folder with the makefile. If it is not in the base directory, look for a folder named libretro.
# With
Build with:
emmake make -f Makefile.libretro platform=emscripten
# Without
Build with:
emmake make platform=emscripten
- Copy the
.bc
file to the RetroArch/dist-cores/
directory and continue to build the wasm files.
# WASM
Clone the repository.
git clone https://github.com/EmulatorJS/RetroArch.git
- Navigate to
/dist-scripts/
Build with:
emmake ./dist-cores.sh emscripten