GithubHelp home page GithubHelp logo

Comments (4)

jn0 avatar jn0 commented on August 27, 2024

It's on http://syntensity.com/static/python.html

from emscripten.

kzigadlo avatar kzigadlo commented on August 27, 2024

I've noticed that this error no longer appears in the python demo, but I was messing around with the OPENjpeg demo (http://syntensity.com/static/openjpeg.html), and I got a similar issue when I tried to add some options to the command line string. Here is the modification:

try {
callMain(['-i', 'image.j2k', '-o', 'image.raw', '-l','3']);
} catch(e) {
alert(e.name + ": " + e.message);
}

instead of callMain(['-i', 'image.j2k', '-o', 'image.raw']); in j2k_to_image() (line 17). The error message is nearly identical:

 Reference Error: ___01__isoc99sscanf_ is not defined

Seems like a library import issue, but OPENjpeg imports the correct library, <stdio.h>. I tracked the function down in openjpeg.cc.js, and it is only used when either the '-l' or '-r' options are specified, which is why the code works in all other cases.

from emscripten.

max99x avatar max99x commented on August 27, 2024

These are basically parts of the standard C library that are not yet implemented or not linked correctly to their implementations. dlopen() was recently implemented. ___01__isoc99sscanf_ should probably be linked to sscanf.

from emscripten.

kripken avatar kripken commented on August 27, 2024

This should no longer be an issue since we moved to bundled headers (which avoid weirdness like ___01__isoc99sscanf_), but would require a rebuild of course so the online python demo might still not work. If you rebuild and it still fails please comment.

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.