emscripten Questions

1

I'm a relative newbie to WebAssembly, but I've been working with it and Emscripten for about a month now, and have a decent familiarity with the minimal build kits. When it comes to debugging, I a...

4

Solved

In this tutorial it shows the following example for exporting C functions ./emcc tests/hello_function.cpp -o function.html -s EXPORTED_FUNCTIONS='["_int_sqrt"]' -s EXPORTED_RUNTIME_METHOD...
Faena asked 25/6, 2020 at 12:48

3

Looking for the proper way to resize an SDL2 window/canvas that is coming from Emscripten. Currently I'm adding an event listener on the JS 'resize' event and sending the Canvas parent's client wid...
Wilbourn asked 21/9, 2020 at 6:40

5

I am recently working on a project which includes the use of Emscripten. I am able to install and run some examples on terminal, but I want to integrate it with Clion so that I can directly include...
Pushcart asked 16/8, 2018 at 2:30

2

Solved

I am trying to import a module generated with emscripten as a es6 module. I am trying with the basic example from emscripten doc. This is the command I am using to generate the js module from the ...
Paper asked 14/11, 2018 at 21:37

5

Solved

I'm having issue with building this demo. https://github.com/kakukogou/opencvjs_demo_segmentation When i cd into this folder and run make command i get this error message: /bin/sh: 1: emcc: not f...
Hanni asked 11/6, 2015 at 9:18

3

I followed this guide and installed emscripten using emsdk and activated it.Then I configured my $PATH as instructed by the emsdk itself and also sourced emsdk-master/emsdk_env.sh.Now I can access ...
Gaming asked 30/8, 2020 at 6:2

4

I am learning emscripten, and I can't even get the most basic string manipulation working, when passing strings between C++ and JS. For example, I would like to write a string length function. In ...
Waste asked 16/2, 2014 at 21:33

3

I am trying to generate javascript from python using cython and emscripten. hello.py: print 'Hello world.' Then I compile this to c using cython >>> cython --embed hello.py -v This...
Holofernes asked 12/6, 2013 at 11:15

3

I would like to create a function, which calculates something. And after it's finished, it calls the callback function. void calculate(int param1, ..., std::function<void(void)> callback) { ...
Hopefully asked 2/4, 2016 at 8:49

5

Solved

I have read that it is possible to convert Python 2.7 code to Web Assembly, but I cannot find a definitive guide on how to to so. So far I have compiled a C program to Web Assembly using Emscripte...
Chiliarch asked 26/6, 2017 at 14:13

2

Solved

In emscripten C++, I have class MyClass { public: MyClass() {} std::shared_ptr<std::vector<uint8_t>> buffer; int getPtr() { return (int)(buffer->data()); } int getLength() { ...
Leboff asked 3/12, 2018 at 22:31

1

When building a C++/web-assembly project with CMake and emscripten, the install command for the target only install the .js file and not the .wasm file. install(TARGETS MyTarget RUNTIME DESTINATIO...
Vinegar asked 18/5, 2020 at 8:33

2

I'm trying to compile a C++ project using CMake to webassembly. I'm using emscripten and I want to use the emscripten ports for SDL2 and Freetype. Normally, when compiling with emcc, you would use ...
Trichloride asked 4/5, 2020 at 10:51

3

Is there any way of accessing canvas 2D context under C++ when using emscripten? I'd like to be able to draw simple shapes/paths using canvas' api functions like lineTo, fillRect1d done, etc. (so b...
Interdict asked 16/6, 2013 at 9:26

1

Solved

I am trying to make use of some ES 3.1 features, and it's unclear if this is supported: I notice that there is an OpenGL ES 3.1 header in the emscripten repository which defines some of the functio...
Beechnut asked 25/12, 2021 at 22:32

1

Solved

I'm new to WebAssembly and Emscripten and am trying to pass an array of strings in JavaScript to a C function for further processing with Module.cwrap(...). Ideally I'd also like to return an array...
Croup asked 15/10, 2017 at 1:8

3

Solved

Alright, this has been driving me insane. I've been trying this for at least a month, and no where on the internet is helping. I followed the steps of this. Not even the example works when I do th...
Tinsel asked 10/12, 2016 at 22:6

1

Ball.h:7:10: fatal error: 'glm/glm.hpp' file not found #include <glm/glm.hpp> ^ 1 warning and 1 error generated. ERROR:root:compiler frontend failed to generate LLVM bitcode, halting I ha...
Deka asked 9/2, 2016 at 18:51

2

I am currently using Emscripten to compile our C++ Code into Wasm. By doing so I output two files *.js and *.wasm. Later I use our implementation to write more Javascript code on top of that which ...
Picofarad asked 3/6, 2019 at 21:16

4

Solved

I have recently come across the Pyodide project. I have built a little demo using Pyodide, but although I've spent a lot of time looking at the source, it is not obvious (yet) to me how to redirec...
Underarm asked 13/6, 2019 at 15:18

1

Solved

For argument's sake, let's say that a browser allows 4GB of memory in WebAssembly applications. Ignoring compression and other data-storage considerations, if a user had a 3GB local csv file, we co...
Olag asked 20/9, 2021 at 22:57

1

Solved

Have been programming in Go from quite some time, and started looking into WebAssembly lately. While most of the things are straightforward, have a question around translating some of the Go specif...
Incoordination asked 17/5, 2021 at 18:27

2

I'm new to emscripten and find it very hard... I have obligation to work on windows because i have to test .exe versions of my apps. I'm on windows 7. I can compile wasm but javascript cannot read...
Elsey asked 3/10, 2018 at 9:20

2

I am not able to call a C function in another JavaScript file, it is giving the error 'called before runtime initialization' please refer to this link I compiled the C code in emscripten as describ...
Lipson asked 18/8, 2020 at 11:34

© 2022 - 2024 — McMap. All rights reserved.