0 votes

i installed emsdk with latest (after trying 1.40.1 and 1.39.9)

when i run
scons platform=javascript tools=no target=release

i get an error that glGetBufferSubData is not declared.

[ 56%] Compiling ==> drivers/gles3/rasterizer_scene_gles3.cpp drivers/gles3/rasterizer_scene_gles3.cpp:1375:5: error: use of undeclared identifier 'glGetBufferSubData'; did you mean 'glBufferSubData'? glGetBufferSubData(GL_ARRAY_BUFFER, 0, particles->amount * sizeof(RasterizerGLES3Particle), particle_array); ^~~~~~~~~~~~~~~~~~ glBufferSubData /home/david/data/godot/godot-src/emsdk/upstream/emscripten/system/include/GLES3/gl3.h:541:29: note: 'glBufferSubData' declared here GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data); ^

when i compile godot 3.3.3 with the exact same setup, the build runs through.

is this problem coming from somewhere else than emsdk? what part of my system should be providing that glGetBufferSubData ?

Godot version git checkout of 3.4 branch, f737ed4da03af2afb6dd9725b43182ba22aef7d4
in Engine by (27 points)

1 Answer

0 votes

i did a complete reinstall of emscripten. i think i misunderstood how ./emsdk install latest works: it does not check with any online source but only uses the "latest at the time you downloaded emscripten".

however, i think this means the minimum version of emscripten specified at https://docs.godotengine.org/en/stable/development/compiling/compiling_for_web.html is wrong, 1.39.9 did not work.

if i read https://github.com/emscripten-core/emscripten/pull/13776 and the release timestamps correctly, i think we now need at least emscripten 2.0.17

by (27 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.