Comments (3)
The requirement to explicitly add -lEGL -lGL -lhtml5
is because you are using -sSTRICT
, and this sets -sAUTO_JS_LIBRARIES=0
which means you have to explicitly add those libraries, they don't get included automatically.
See https://emscripten.org/docs/tools_reference/settings_reference.html?highlight=environment#strict
from emscripten.
Hmm.. it looks like SDL is using some JS library symbols that are not present by default.
We should fix that upstream in SDL.
In the mean time you can do -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=allocate,ALLOC_NORMAL,intArrayFromString
to include those symbols in your build.
from emscripten.
Tried that and got new errors. BTW, changing FILESYSTEM
also changes the error.
Note that in the minimal example above, it seems that, at least since v3.1.56, it's required to add -lEGL -lGL -lhtml5
although I'm not sure the docs mention -lhtml5
explicitly.
I've been unable to build with a similar setup since after v3.1.47 . Perhaps tests with strict and fine-tuned settings could be missing.
from emscripten.
Related Issues (20)
- Password input with no echo is not working HOT 9
- std::atomic<std::shared_ptr<T>> not compiling with emcc 3.1.42 / clang 17.0.0 HOT 5
- --emit-tsd crashes when used in standalone wasm mode
- Block size specification for audio worklet HOT 3
- Unexpected error of proxyAsync with emscripten_init_websocket_to_posix_socket_bridge HOT 3
- WebGPU new Surface API HOT 1
- Memory Profiler Incorrectly Reporting Data as Free HOT 1
- Using the closure compiler at link time corrupts references to variables in EM_JS blocks HOT 4
- `SUPPORT_BIG_ENDIAN=1` causes internal compiler error `ReferenceError: maybeExport is not defined` HOT 7
- Please set EMSCRIPTEN as an INTERNAL variable in the Emscripten.cmake toolchain file HOT 1
- emsdk 3.1.57: undefined symbol: saveSetjmp/testSetjmp HOT 4
- lto2.test_asyncify_indirect_lists_add is currently failing on the releases waterfall HOT 6
- Int64 return functions with dynamic linking crashes on exception
- `--emit-tsd` doesn't account for `-s WASM_ASYNC_COMPILATION=0` with `-s MODULARIZE=1`
- Should remove remove (reduce usage of) withStackSave? HOT 1
- register_vector and register_map with raw pointer HOT 1
- Support omitting optional arguments in js embind bindings HOT 1
- --emit-tsd crashes when wasmTable is exported
- When I use fflush(stdin), the output is wrong. Is it a bug? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emscripten.