-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
Fails to compile / Dockerfile #44
Comments
I've done the similar and didn't have issues. The way I did it was slightly different, I used docker to create a stable environment and then I have separate commands that I run to create the build and copy the output back to my host environment.
I then build this instance as follows
As you can see it is pretty much exactly what you had, but split in to two phases. |
Hm. I tried to reproduce my problem. Can't, anymore. Oh well. |
I'm also facing compilation issues. I'm testing on Ubuntu 18.04 LTS 64-bit (running as a VM on Windows 10). The specific compile error I'm getting is the following: Stack: Error undefined:60 I get similar errors for all possible build targets (i.e., ffmpeg-webm.js, ffmpeg-worker-webm.js, ffmpeg-mp4.js, ffmpeg-worker-mp4.js). The errors occur both when building directly and when using Docker (i.e., the approach suggested in this thread). Does anyone have an idea what might be going wrong? |
@mwijnants since version 1.38 emscripten using WASM by default, and it seems pre and post script not compatible for WASM try using version 1.37
|
@swznd that seemed to do the trick, thank you so much for the advice! For the sake of completeness, installing and activating emscripten version 1.37.40 did not work "out of the box". I had to manually install and activate clang-e1.37.40-64bit. |
@mwijnants same issue, do you have a link to the clang file? |
You can use
to query the list of supported tools (including clang and node.js). In this list, there should be a matching clang version for each emscripten version. You can then install this version via the
syntax. See emsdk command line syntax and emsdk Tools and SDK Targets for more information. Hope this helps. |
Thank you @jcaesar @PaulKinlan. I've added docker-based build instruction to readme. |
Since you already suggested using docker in the readme, I translated those instructions into a dockerfile.
I hope this can be useful to someone.
The text was updated successfully, but these errors were encountered: