-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add Emscripten to Windows releases #7484
Comments
* update pg submodule * add emscripten to vs and msys2 packages - closes openframeworks#7484 * pg master
tried with the latest mingw64 msys2 nightly now that the emscripten libs are there In the mingw64 shell these steps worked:
Then when I try and make an example with: I get an error showing that the ie: it is showing like: instead of: Not sure if it is our make files that is passing the CXX like that or emmake. cc @oxillo |
hmm looking at this issue seems to imply that on mingw64 you need to call a different make command:
|
@ofTheo with
|
@ofTheo I got Emscripten running on Windows with the wsl Linux subsystem. |
@Jonathhhan did you use the mingw OF nightly to do it? We could then add it to the setup guide. Thanks so much! |
@ofTheo I used the linux64gcc6 nightly. This is what I did (partly copied from https://www.codeproject.com/Articles/5160967/Bring-Your-Cplusplus-Code-to-the-Web): Before we can install Ubuntu from Microsoft, we must first enable Developer's mode and WSL. To enable Developer mode, head to Settings > Update & Security > For Developers and select “Developer mode”. Next, WSL has to be enabled on Windows Features. In the Windows searchbar, type "Turn Windows Features On or Off" and select that option. Scroll all the way down and check the "Windows Subsystem For Linux" option. Next, launch Microsoft Store by clicking its button on the taskbar. Search for "Ubuntu" and click "Install" on the Ubuntu 22.04 in the search result. It takes about 5 minutes. Start wsl in the terminal and add a Ubuntu user. sudo apt update change to the newly cloned emsdk directory.cd emsdk Download and install the latest SDK tools../emsdk install latest Set up the compiler configuration to point to the "latest" SDK../emsdk activate latest Activate PATH and other environment variables in the current terminalsource ./emsdk_env.sh install makesudo apt install make install chromewget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb for make (optional)sudo apt-get install pkg-config |
Thanks @Jonathhhan I was hoping it would enable it via the windows OF downloads :) |
I found this https://github.com/nokotan/VSExtForEmscripten worth checking out. also note the official website says to install linux on your windows box to compile things |
@danzeeeman I can confirm that it works well with windows subsystem for windows. |
@ofTheo if we can configure the VS project for emscripten build it should work with that extension |
On MSYS2, I've managed to go to the linker step following the instructions :
|
Not sure if it works with Visual Studio compiler, but we should at least try it with msys2 / mingw64
relevant thread:
https://forum.openframeworks.cc/t/webview-of-integration-how-to-dispatch/40464/16
The text was updated successfully, but these errors were encountered: