Coder Social home page Coder Social logo

Comments (3)

sbc100 avatar sbc100 commented on June 9, 2024 1

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.

sbc100 avatar sbc100 commented on June 9, 2024

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.

oboukli avatar oboukli commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.