-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
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
HTML5: this.rtenv.callMain is not a function when using latest-upstream backend #31297
Comments
Same with me, but I've tried it on macOS. |
I've found the problem. Due to Emscriptens changlog :
|
Correct, yes, as the error says we no longer export it by default. You can add the flag to export it. Sorry for this annoyance, but we sometimes need to make a breaking change like this in order to make progress. We do try to always document it in the changelog, and to make builds with assertions show a clear error, to minimize the annoyance. |
@akien-mga , think this issue could be closed |
@Mellondill I think there should be a PR in Godot to make the flag the default option. |
@LinuxUserGD ah, sorry forgot about PR |
… using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later
@LinuxUserGD created PR with needed changes |
@kripken Do you know which changes would be required for Godot to work without |
@Calinou in general you shouldn't need callMain - main will be called automatically by the emscripten runtime, when everything is ready. But if godot has special logic for when to start, then using callMain is reasonable (and the downside isn't big, it's just a few JS strings of "callMain" in the final JS file). |
@Calinou As I understand, initial resource package must be synced in internal filesystem before |
…st-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later (cherry picked from commit 3c17682)
… using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later
… using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later (cherry picked from commit 3c17682)
… using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later
Godot version:
master (3418f76)
OS/device including version:
Arch Linux
Issue description:
This error shows when loading the .pck with Chromium
console log:
Steps to reproduce:
Tested projects: Solus Sphere (https://github.com/HugeGameArtGD/Solus-Sphere) and material demo (both GLES2)
The text was updated successfully, but these errors were encountered: