Skip to content

Compiling on FreeBSD

quentin452 edited this page May 1, 2024 · 1 revision

Building on FreeBSD

Tested on:

FreeBSD 13.1-RELEASE
FreeBSD 13.2-RC5
FreeBSD 13.2-RC6

Copying the baserom(s) for asset extraction.

For each version (Japanese[jp],American[us] or European[eu]) that you would like to build an executable for, copy an existing ROM to ./baserom..z64 (root of the folder). Installing the Build Dependencies

The build has several dependencies (for compilation) on FreeBSD:

python3 (>=3.6) (should be pre-installed on most desktops, but issue pkg install python3 if unsure)
sdl2 with development headers
glew with development headers
gnu make (gmake)

So to install, issue

pkg install gmake sdl2 glew to install the packages. Building the executable

Issue gmake to compile. To enable and disable certain features, either edit the Makefile or just append some build flags to your gmake invocation, like so:

gmake BETTERCAMERA=1 EXTERNAL_DATA=1 -j4

Clone this wiki locally