Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Compile and run webassembly #2

Open
Guerout-Arnaud opened this issue May 12, 2022 · 2 comments
Open

[Question] Compile and run webassembly #2

Guerout-Arnaud opened this issue May 12, 2022 · 2 comments

Comments

@Guerout-Arnaud
Copy link
Contributor

Hi, sorry to bother you.
Could you please explain me how to build and run the webassembly project.

I've tried the same process as described in smk-starter (copy-pasting run_webassembly script and index.html) but this doesn't seem to work.

Thanks by advance

@ArthurSonzogni
Copy link
Owner

ArthurSonzogni commented May 12, 2022

ftxui-starter currently do not show how to support WebAssembly. I should add support. Happy to merge any PR going into this direction.

In the meantime, you can probably read this thread:
ArthurSonzogni/FTXUI#369
and grab the corresponding parts in their starter repository:
https://github.com/kajmaj87/ftxui_minimal
?

Note that they explained you should use:

$ cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/yours/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DPLATFORM=Web -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 

but you can directly use:

emcmake cmake ..

@Guerout-Arnaud
Copy link
Contributor Author

Thanks, i'll have a look at it and go back to you asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants