Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
78 views

I'm following this C++ WebGPU tutorial (with associated Git repo here) in another language, and so must rewrite the build script accordingly. The tutorial calls wgpu::glfw::CreateSurfaceForWindow ...
William Ryman's user avatar
0 votes
0 answers
49 views

I'm attempting to build a wasm module with Emscripten once with -msimd128 -msse2 and have a fallback without. This uses the makeflags ifeq ($(P_SIMD),1) LINKFLAGS += -msimd128 -msse2 // later passed ...
Dr. Andrew Burnett-Thompson's user avatar
0 votes
1 answer
60 views

When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using: emconfigure ./configure \ --prefix=$(pwd)/installed ...
ali's user avatar
  • 19
0 votes
0 answers
74 views

Trying to learn some webassembly. I've got a minimum hello world: #include <emscripten.h> #include <stdlib.h> #include <stdio.h> int main() { printf("hello world"); } ...
roirodriguez's user avatar
  • 1,748
2 votes
1 answer
101 views

I am using WebAssembly to implement a sandboxed plugin system in a C application. Users can write plugins in any language that will compile to WASM, and we just say "you can import a, b, c ...
Logan R. Kearsley's user avatar
1 vote
0 answers
74 views

Background: I'm creating a JS library that has part of its functionality written in C++ source code, and thus compiles the C++ into WASM. The WASM is then imported by the library code and wrapped into ...
1valdis's user avatar
  • 1,144
0 votes
0 answers
61 views

I've been chasing this bug down to a minimal example, but even at this point I can't quite track down what must be the root cause. I'm calling a C function compiled into WASM using Emscripten. I can ...
M G's user avatar
  • 1
0 votes
1 answer
32 views

I have compiled a niche interpretter with WASM and the below works fine on the first function call. However any successive calls do absolutely nothing. My understanding is WASM js made with ...
jparanich's user avatar
  • 9,164
2 votes
1 answer
85 views

I have some Emscripten binding code (a self-contained, trivial example of which is shown below) that converts my C++ status_t return-value class into a boolean that JavaScript code can deal with ...
Jeremy Friesner's user avatar
3 votes
0 answers
171 views

Could someone please tell me why my WASM used heap size keeps growing every time I call genVector? Note, this binding is a very simplified reproduction of the problem. std::vector<uint8_t> ...
cpp_is_hard's user avatar
1 vote
0 answers
34 views

Emscripten allows users to provide their own libraries implemented from JS with the --js-library flag. Emscripten itself also provides custom implementations of several libraries, for example, OpenAL -...
heyitsbmo's user avatar
  • 1,785
0 votes
0 answers
73 views

I'm using emscripten 3.1.59. When I make webgpu calls, some of the calls made from C++ layer, results in a garbage string value in JS layer. As an example, a call to wgpuInstanceCreateSurface. When I ...
user1455545's user avatar
0 votes
0 answers
75 views

I am writing a rendering app. I need it to run in a secondary thread in order not to interfere with UI. My linker config is as follow: -sINITIAL_MEMORY=134217728 -sMAX_WEBGL_VERSION=2 -sWASM=1 -...
Michael IV's user avatar
  • 11.6k
1 vote
1 answer
143 views

Emscripten's embind mechanism seems to have pretty nice support for converting JavaScript's native strings to and from C++'s std::string automatically; however, the C++ library that I'm trying to ...
Jeremy Friesner's user avatar
0 votes
0 answers
164 views

While playing with Webassembly, during the tests I have noticed that the final WASM file has many functions that are most likely added by the Emscripten once the WASM is generated. However, all those ...
Tito's user avatar
  • 2,310
0 votes
0 answers
50 views

I think I need some human input here :) I have a simple CPP code: #include <stdexcept> #include <emscripten/bind.h> using namespace emscripten; double add(double a, double b) { if(...
macroland's user avatar
  • 1,053
4 votes
1 answer
800 views

I am developing a c++ WASM app. I often work with Chrome C/C++ DevTools(DWARF) extension to step into C++ source code during WASM debugging. A few days ago it was working fine. Now when loading WASM ...
Michael IV's user avatar
  • 11.6k
0 votes
0 answers
51 views

I've spent some days trying to run a HTTP request on a background thread (with -pthread / USE_PTHREADS), and im completely stuck I have tried using Xhr, JS fetch, and finally emscripten_fetch, and ...
James's user avatar
  • 39
-1 votes
2 answers
94 views

i am changing an existing makefile without much knowledge about makefiles. after reading into it i am supposed to be able to change the build order by abc: x y z y : z here in the makefile i want to ...
pcace's user avatar
  • 756
-1 votes
1 answer
915 views

I'm setting up a C++ program using Visual Studio 2022 and Emscripten. I read that I should check if emcc is setup from my command line: c:\Users\emcc -v emcc (Emscripten gcc/clang-like replacement + ...
Steven Buechele's user avatar
0 votes
1 answer
209 views

I have some code written with simd instructions to convert RGBA color data to grayscale data compiled to WASM thanks to Emscripten. It works fine and i hadn't any issues doing this. But i would make a ...
kalwalt's user avatar
  • 490
2 votes
1 answer
108 views

Prior to Clang 19, it was possible to write: struct alignas(8) my_struct { void* a_pointer; int a_variable; int _padding; }; However, in Clang 19, you must write: struct my_struct { ...
user18490's user avatar
  • 3,904
0 votes
1 answer
98 views

I've compile a c library to WASM via Emscripten. I'm working on Windows, however, the conversion was done on WSL running Ubuntu. What I'm finding is I can access methods in the library directly as ...
Richard's user avatar
  • 569
0 votes
0 answers
43 views

I had a web Project that used Emscripten to build c++ Code and use "Module.ccall.." to call my c++ function, the main feature is to render by using OpenGL ES, now I want to add MediaPipe's ...
David Shiu's user avatar
1 vote
1 answer
79 views

when I was trying to add "ccache" to my cmake program, no new files were added to my ccache directory. cmake -B build_wasm -S . -DCMAKE_TOOLCHAIN_FILE=/emsdk/upstream/emscripten/cmake/...
DOOOBETTER zhang's user avatar
0 votes
0 answers
27 views

I am using emscripten to build a wasm project. I want to print some debug information, but do not want it print in release mode. So I write like this: #ifdef __DEBUG #define DBGprint(...) printf(...
Kevin's user avatar
  • 1
1 vote
0 answers
95 views

I have a c++ project that I am compiling to WebAssembly via Emscripten. I would like to use Catch2 for running tests, but I notice that when a test fails, rather than the test suite finishing with a ...
lawsumisu's user avatar
1 vote
0 answers
217 views

I'm new to WebAssembly. Can you please help for the below issue? I was trying to get solutions from GitHub copilot but no luck. I'm trying to create a minimal example of using WebAssembly with ...
lumiere's user avatar
  • 43
1 vote
1 answer
121 views

When trying to build OpenCV's core and imgproc modules ONLY using a custom emcmake command, the build will fail due to deprecated wasm related keywords upon using emmake ninja install System: Windows ...
Nathan Potter's user avatar
0 votes
1 answer
205 views

I need help figuring out a problem I am rewriting part of the javascript library to wasm. I compile the c++ code to wasm using this command: emcc idw.cpp -Oz -s WASM=1 -s --no-entry -o idw.wasm (...
Ami Jey's user avatar
  • 51
1 vote
1 answer
195 views

I wrote this simple piece of C code: #include <string.h> #include <emscripten.h> EMSCRIPTEN_KEEPALIVE const char * helloWorldStatic( ) { return "Hello World from C"; } ...
Mecki's user avatar
  • 135k
0 votes
0 answers
90 views

I have compiled a variety of LLVM Object files. However, when linking them together, I get this error: error: Linking globals named '_ZTV4CRpg': symbol multiply defined! I debugged and found there ...
Missing User's user avatar
1 vote
0 answers
229 views

I am having issues loading an Emscripten-generated WASM module with an interface called Lib for a Cloudflare Worker (using Hono and Wrangler). The export definition is within, sparks.d.ts, and it is ...
zachaz35's user avatar
0 votes
0 answers
62 views

$ grep -q sse4_2 /proc/cpuinfo && echo "SSE 4.2 suported"|| echo "SSE 4.2 not supported" "SSE 4.2 suported" But if I add flag -msse4.2 I get the following error: ...
Rita's user avatar
  • 11
0 votes
0 answers
154 views

I am trying to use Emscripten to fetch and process a set of images. The approach below works well with a single image file, but it fails when fetching multiple images simultaneously, resulting in ...
Medical physicist's user avatar
1 vote
1 answer
98 views

My code compiled when using emsdk:3.1.64, but not when using emsdk:3.1.26 emcc C:\test\hello_world.cpp -O3 -r -o C:\test\libar.bc && emcc C:\test\libar.bc -O3 -o C:\testtest_wasm.js C:\...
Rita's user avatar
  • 11
0 votes
1 answer
128 views

I have a binary file Tetris.ch8 which is 494 bytes. I am trying to open that file from my emscripten project. I used --preload-file to load the file. When I am trying to open the file and read the ...
Master Yoda's user avatar
1 vote
1 answer
313 views

On a native build, the following code prints -1. Compiled to WASM and run in node.js, it prints 4294967295. Why are the results different? #include <iostream> int main() { unsigned F = 20; ...
Sir Nate's user avatar
  • 413
0 votes
0 answers
187 views

I am trying to build project on Ubuntu with this command: emcmake cmake .. -DCMAKE_PREFIX_PATH=/home/oleksiy/Qt/5.15.2/wasm_32/ and get this error CMake Error at CMakeLists.txt:16 (find_package): ...
Smeh's user avatar
  • 1
0 votes
1 answer
143 views

I am trying to use libsodium.js, a C-library that has been transpiled to WASM with Emscripten. I have found two (1, 2) related posts that are now out of date and/or incomplete: This old issue ...
Jacob Jewett's user avatar
-1 votes
1 answer
984 views

I'm encountering a persistent issue when trying to build my project using Emscripten. Despite trying various common solutions, I haven't been able to resolve the error. The problem occurs during the ...
carlit's user avatar
  • 25
1 vote
1 answer
374 views

I'm trying to integrate a C++ WebAssembly module into my React project using Vite. However, I'm encountering issues with the module not being recognized correctly. Here are the details of my setup: ...
Michael Brunner's user avatar
0 votes
0 answers
40 views

We want to load contents of a tar file in WASM using the emscripten VFS packaging format. Right now we convert the tar file on the server into a data and metadata files according to the above VFS ...
Jeroen Ooms's user avatar
  • 33.3k
2 votes
1 answer
117 views

static inline void ed25519_randombytes(unsigned char *x,unsigned long long xlen) { int i; if (ed25519_random_fd == -1) { for (;;) { ed25519_random_fd = open("/dev/urandom",...
Milos Mirkovic's user avatar
0 votes
2 answers
76 views

I am trying to expose a UI (built using qt) on the browser, using Emscripten. Compiled dependencies, and could able to link those to the UI, it got compiled successfully without any errors, but while ...
Mallakbasheer's user avatar
1 vote
1 answer
680 views

I've successfully compiled my game to WASM with the flags: EMCC_CFLAGS="-sUSE_GLFW=3 -sGL_ENABLE_GET_PROC_ADDRESS -sASYNCIFY -sASSERTIONS --preload-file src/resources" cargo build --release -...
coolguy123's user avatar
1 vote
0 answers
83 views

I'm a bit confused on how to build Speed Dreams, an open source racing game, with Emscripten (to port it to the web). When building with 'emcmake cmake' (emscripten's cmake toolchain), the building ...
Priscilla Lagunas's user avatar
1 vote
0 answers
357 views

I have a complex windows application that uses MFC and some OpenGL. I'd like to use Webassembly https://github.com/emscripten-core/emscripten to use emscripten to convert the c++ application to web. ...
orochi's user avatar
  • 1,258
0 votes
0 answers
89 views

I have made an example that calls emscripten_request_pointerlock("screen", false); by mouse click: void mousePressEvent(QMouseEvent *event) override { EMSCRIPTEN_RESULT result = ...
8Observer8's user avatar
  • 1,212
0 votes
1 answer
277 views

When compiling to WebAssembly using Emscripten, Emscripten gives you .wasm file, a .html file and a .js file. The html file, it seems, is set up to give a basic demonstration of the workings of ...
Zebrafish's user avatar
  • 16.3k

1
2 3 4 5
27