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

Not Working at the latest version of emsdk #1

Open
erikpro007 opened this issue Aug 6, 2019 · 1 comment
Open

Not Working at the latest version of emsdk #1

erikpro007 opened this issue Aug 6, 2019 · 1 comment

Comments

@erikpro007
Copy link

I try to compile it with the latest emsdk, compile code :

emcc renderer.cpp -Werror -std=c++11 -O3 -g0 -s USE_WEBGL2=1 -s USE_SDL=2 -s WASM=1 -s TOTAL_MEMORY=134217728 -s EXPORTED_FUNCTIONS="['_initializeOpenGL', '_render', '_loadJPEGImage']" -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" --post-js renderer_post.js -o renderer.js

If i open it in the browser now in my case Firefox (64-bit) it will show me the following errors :

Warning : wasm streaming compile failed: TypeError: Response has unsupported MIME type
Warning : falling back to ArrayBuffer instantiation
Warning : Error compiling shader

Error: TypeError: Argument 2 of WebGLRenderingContext.attachShader is not an object.

I used fo that Windows 10 1903 x64, Firefox x64, emsdk (1.38.40), Visual Studio Code 1.36.1

@R-V-TS
Copy link

R-V-TS commented Oct 19, 2019

I try to compile it with the latest emsdk, compile code :

emcc renderer.cpp -Werror -std=c++11 -O3 -g0 -s USE_WEBGL2=1 -s USE_SDL=2 -s WASM=1 -s TOTAL_MEMORY=134217728 -s EXPORTED_FUNCTIONS="['_initializeOpenGL', '_render', '_loadJPEGImage']" -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']" --post-js renderer_post.js -o renderer.js

If i open it in the browser now in my case Firefox (64-bit) it will show me the following errors :

Warning : wasm streaming compile failed: TypeError: Response has unsupported MIME type
Warning : falling back to ArrayBuffer instantiation
Warning : Error compiling shader

Error: TypeError: Argument 2 of WebGLRenderingContext.attachShader is not an object.

I used fo that Windows 10 1903 x64, Firefox x64, emsdk (1.38.40), Visual Studio Code 1.36.1

I have the same problem. If you have decided, please write a decision.

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

No branches or pull requests

2 participants