WSL/SLF GitLab Repository

Skip to content

Inishell for Web

For the record, here are the steps which gave me some results:

git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.14
./emsdk activate 3.1.14
  • Use Qt Maintenance tool to install WebAssembly toolchain
  • In QtCreator -> Preferences -> Devices -> WebAssembly point SDK path to emsdk root directory
  • The emscripten version must match the one Qt was built with, QtCreator will give a warning if this is not the case (and indeed installing "latest" did not work properly)
python3 -m http.server
firefox localhost:8000
--> navigate to inishell.html

Restrictions:

  • For a quick try I could not use the CMake build. An error was thrown and the first Internet solution did not work, so I switched to qmake and it succeeded.
  • I could not do it with command line tools, although I'm sure somebody else could. I was happy to let QtCreator pick all the right compiler flags for me.
  • All references to QProcess need to be removed, everything else is fine.
  • Unable to open local files (XMLs must be bundled I suppose), but building bundled XMLs works (as seen in the help browser). But how to open local inis?

main help