Skip to main content

All Questions

Tagged with
1 vote
0 answers
29 views

Issues with building Speed Dreams using Emscripten

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 votes
0 answers
33 views

Osgearth emscripten

I use open scene graph and osgearth libraries to run simple.earth file in linux with this command: osgearth_viewer simple.earth this works fine, however, I want to display simple.earth file in web ...
Osman Sarı's user avatar
0 votes
0 answers
12 views

How to handle graphics output with Container2WASM

I wanted to see if container2WASM could compile a docker container containing a game like Speed Dreams (open source racing game) to WASM. I am unsure however how to output the graphics from the ...
Priscilla Lagunas's user avatar
1 vote
1 answer
49 views

Compile C++ Shared Object library to Web assembly

I have C++ data.so shared object library that was compiled for linux_x86 architecture. I would like to write my application in C++, link to the shared object library but build both of them together ...
Bazbaz's user avatar
  • 61
0 votes
0 answers
34 views

emscripten_request_pointerlock() returns EMSCRIPTEN_RESULT_UNKNOWN_TARGET

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,028
0 votes
0 answers
23 views

How can I return a vector of structs in C++ using Emscripten and WebAssembly

I want to return to the javascript a type created in c++, called PlayerAction. PlayerAction have two elements, Player, type int and Action, type int_64 I tried to do it the way below but it doesn't ...
Lucas celestino's user avatar
0 votes
0 answers
41 views

OpenCV GaussianBlur produces garbled output WASM

I compiled OpenCV for WebAssembly to apply image smoothing and other transforms to images but GaussianBlur produces a garbled image. C++ code I'm using to blur the image // input image RGBA Mat image(...
Fr3ddyDev's user avatar
  • 474
0 votes
0 answers
72 views

How to "manually" map from WASM to source code with DWARF file

I am using Emscripten to compile C++ source code into WASM modules. I am compiling with several debug settings and am able to get the module to print out the line number in the WASM where the error ...
Josh Majors's user avatar
0 votes
1 answer
172 views

I figured out how to use WASM with nextjs via emscripten, but my solution is really stupid

I wanted to call a C++ function from my next.js component. Using emscripten and the -sENVIRONMENT='web' -sMODULARIZE=1 flags, I compiled the C++ into main.js and main.wasm. I tried running it from a ...
Benjamin Gilbert's user avatar
0 votes
0 answers
61 views

Why WebAssembly that use AES-256-GCM in C++ using openssl slow significantly, compared to native JavaScript?

Background: I used the pbkdf2Sync algorithm for encryption, implementing it in C++ with OpenSSL and then converting it to WebAssembly. However, I found that the WebAssembly implementation runs slower ...
Hyou's user avatar
  • 67
-4 votes
1 answer
141 views

Webassembly runs much slowly than pure JavaScript function

im newly in webassembly. i just try it by writing a fuction to filter the array of objects base on some criterias and return an array of id. i run this function in and measure execution time. ...
Bingo213's user avatar
1 vote
1 answer
79 views

C++ WebAssembly module libsodium integration

I'm new to the world of WebAssembly. I'm just starting to experiment with it. I'm trying to write my own C++ module that uses some third-party libraries. For example, I'm trying to implement a C++ ...
Safari's user avatar
  • 11.7k
0 votes
1 answer
97 views

WebAssembly C++ using JS value - Import #0 module="env": module is not an object or function

I'm new to WebAssembly and I'm doing some experiments. I managed to create very simple examples. Now I would like to try using JS objects within my C++ code. Specifically, I would like to try printing ...
Safari's user avatar
  • 11.7k
1 vote
1 answer
139 views

Configuring WebAssembly/Emscripten locally build issues

I'm new to the world of WebAssembly/Emscripten. I found this example and I would like to try it locally (mac OS). These are my files: #include <string> #include <emscripten.h> #include <...
Safari's user avatar
  • 11.7k
0 votes
0 answers
98 views

I want to compile/install assimp with phtreads enabled over vcpkg on Windows. But i dont know how?

So i am trying to write a simulation of clothing-behaviour in an web environment for my master-thesis with QtCreator. Therefore i am developing a c++ cmake project and want to compile it with ...
Marcel Zissler's user avatar

15 30 50 per page
1
2 3 4 5
21