Hello, I am trying to compile a Windows build on Ubuntu 20.04 (on Windows 10 with WSL) from 'sm64pc_src.zip' (OpenGL) using the US ROM.
I am able to successfully compile and run a build for Ubuntu (18.04, Virtual Machine), but not for Windows.
From a fresh installation, I executed:
Code:
sudo apt update
sudo apt upgrade
I then installed the packages using the command from
@nastys, as well as the qemu-irix package:
Code:
sudo apt install build-essential pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libsdl2-dev x11proto-randr-dev libusb-dev libglfw3-dev libusb-1.0.0-dev
sudo dpkg -i qemu-irix-2.11.0-2169-g32ab296eef_amd64.deb
WSL could not find libusb-1.0.0-dev, so I changed it to libusb-1.0-0-dev (notice the hyphen between the two zeroes). VM18.04 automatically changed it to that.
I then executed
Code:
'make TARGET_N64=0 WINDOWS_BUILD=1 -j4'
wup.c:22 did not compile to due the libusb include, so I changed the include <libusb.h> to <libusb-1.0/libusb.h>
after cleaning and rebuilding, I encountered the following error message:
Code:
g++: error: unrecognized command line option ‘-mwindows’
make: *** [Makefile:702: build/us_pc/sm64.us.f3dex2e.exe] Error 1
Does anyone know what I am doing wrong?