Skip to content

Compiling and Running Frogatto with WSL

DDR edited this page Feb 1, 2020 · 1 revision

To compile Frogatto on Ubuntu and run it using WSL, you will need to install Ubuntu on WSL, download and compile the Frogatto source code, and install VcXsrv. After this is done, we can compile and run Frogatto on Linux but use it like a native Windows application.

WSL

To install WSL and Ubuntu, open the Microsoft Store, search for wsl, click "get the apps", and install the Ubuntu app.

Launching the app, and follow the instructions to get Ubuntu running. You should have a linux terminal available to you now.

Optional: Grab Windows Terminal (preview) from the Microsoft Store for a nicer, unified terminal experience.

Compiling Frogatto

In the Ubuntu terminal, install git if needed (sudo apt install git). Clone Anura (eg., git clone git@github.com:anura-engine/anura.git) and then clone Frogatto to Anura's modules folder (cd Anura/modules; git clone https://github.com/frogatto/frogatto.git). I cloned both to my (Windows) Documents folder.

Now install the dependancies required to build Anura. The Compiling Frogatto on Debian page should have the complete list of things to apt install. (If not, add any missing deps to the list.)

Now, in the Anura folder, run make -j$(nproc). Now, while Anura is compiling, we'll move on to the next step.

VcXsrv

We need to provide something for our Ubuntu installation to display graphics in. Back in Windows, we will grab VcXsrv to provide an X windowing server. Install VcXsrv, and run xlaunch.

In the first screen that pops up, leave the default of Multiple windows but tell VcXsrv to use display 0.

Press Next twice, skipping over the start clients screen. (Ours is probably still compiling, after all.)

On the Extra settings screen, uncheck "Native OpenGL". Anura will not be able to get an OpenGL context if this is enabled, failing with the error Could not create GL context: GLXBadFBConfig. Running export LIBGL_ALWAYS_INDIRECT=1 as noted on this screen will also prevent Anura from starting with this error message.

Press Next and finish setup. If Windows Defender prompts, tell it to never allow any network access - we do not need it.

Running Frogatto

After Anura is finished compiling, run export DISPLAY=:0. (This will be set automatically for future terminals launched while VcXsrv is running.)

Run Frogatto with ./anura.

Clone this wiki locally