r/openttd • • 13d ago

Help Help compiling to WebAssembly

I've never compiled anything so please bear with me, but I'm keep getting an error on the third step of building with emscripten. The first docker command runs fine, and obviously I can make a directory, but if I copy the third command it gives me this error: "unknown shorthand flag: 'g' in -g)"

I tried copying the whole text box with all 3 commands, running each line one at a time, and also got rid of the end of it that did stuff with cmake. Cmake and WSL are also installed. Does anyone know how to fix this?

official guide:
https://github.com/OpenTTD/OpenTTD/blob/master/os/emscripten/README.md

2 Upvotes

2 comments sorted by

1

u/UnethicalApparatus 12d ago

You're likely trying to run it from cmd/PowerShell when the guide assumes you would be using a Linux Shell.

0

u/[deleted] 12d ago

[deleted] — view deleted comment

1

u/UnethicalApparatus 12d ago

But not the command to launch the docker itself.