Emscripten Questions
Ad
Passing a C function pointer to emscripten callback
I'm using sdl2 with emscripten for a little game. i'm trying to pass a function pointer to free some memory if the browser tab is reloaded or
EM_JS: How to convert int argc, char **argv to a JS array of strings?
I'm trying to call js function from c/c++ with an array of strings as an argument. here's my example code:
Use ngspice library in WebAssembly
I would need some help with using ngspice as a library in a webassembly (wasm) project. i installed emsdk and newest version of emcc
How can I load a file from a HTML input into Emscripten's MEMFS file system?
I have an html input like this <input type="file" id="myfile" onchange="load_file()">. i want to load the file into
Webpack throws error with Emscripten: Can't resolve 'fs'
I'm encountering errors in importing a javascript file into a vue.js component: this is the content of /components sub-folder:
How can I import Emscripten generated .wasm/js files in files created with create-react-app
I have a library i can successfully build & run with the emscripten generated .html files. i'd like to use it with react now,
How do I detect when Emscripten's generated .js finishes loading the wasm so I can run my JS functions which call it?
I'm using emscripten to compile some c code to webassembly. this is the final emcc call in my makefile: emcc $(cflags) iva.a -o
Emscripten/NodeJS: Make the actual file-system available by default
I want to compile a cli application with emscripten and just utilize the native filesystem layer so that the application can execute it's own
Emscripten - Compile to WASM and keep original callable function names in the glue code
Using emscripten v 1.38.43, i'm compiling a c code. for optimization reasons, i've stripped down the generated js glue code and minimize the code
How to get a filename renamed by Webpack?
I'm using a webassembly file compiled by emscripten in my project. and since my project uses webpack, it renames all files, then the emscripten
Ad
How to use WebAssembly from node.js?
I am currently working on a personal node.js (>=8.0.0) project which requires me to call c subroutines (to improve execution time). i am trying to
How can I compile a library into WebAssembly that can be called from JavaScript code?
I am experimenting with wasm and i want to encode a pic as webp for a learning experience in wasm. i am attempting to compile
Emscripten: null terminate Uint8Array?
I'm parsing files read in using filereader.readasarraybuffer() as var reader = new
emmake and emconfigure command not found (osx)
I'm trying to use cmake with emscripten. i followed
Passing a pointer to WebAssembly from JavaScript which is not working correctly
Below given is my javascript code. a = "hello" a_ascii = []; for (var i = 0; i < a.length; i ++)
How to draw SDL 2D rectangles over a 3D OpenGL scene?
I'm trying to overlay small interactive info rectangles drawn with sdl 2d over a 3d scene drawn with opengl. each of itself works, but not
Why can't open a file via emscriptens fopen() saved in IndexedDB?
I'm trying out the emscriptens indexeddb, but can't get it running. the file can't be loaded, "cannot open file". with
Why does Intellisense with Emscripten does not find the include path of SDL2/SDL.h?
I'm developing on win10 a c++ programm for webassembly. #include <sdl2/sdl.h> #include <stdlib.h> #include
Error "Cannot set property 'widthNative'" while loading wasm
I try to stream the output of a wasm in my web canvas. but, while loading the main function of my wasm - the following exception is raised:
emscripten: How to delete memory of std::vector allocated in C++ code
I want to know how to properly delete the memory of std::vector allocated in c++ code and passed to js as function return. my c++ code is
Ad
Compiling GLUT using Emscripten
I am trying to compile the following code: http://pastebin.com/024ew4fk and i am
Ad
Blog Categories
Ad