Building in WSL 2 (Windows Subsystem for Linux 2) is identical to the procedure in building.
Using Speculos with display features requires correctly exporting the X display.
Rough steps to do so below, detailed procedure available on this blogpost.
- Add the following to your
.bashrc within WSL2:
export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"
- Install an X server on your Windows host, like VcXSrv, and disable access control when prompted to do so.
- Simply launch the X server prior to launching an app through Speculos from WSL.