Questions tagged [emsdk]

18 questions
2
votes
0 answers

How to build pyodide?

During the build of pyodide using the using make method described in the documentation. I am coming across the following error during the emsdk step. Please direct me towards a solution for building the core packages in pyodide…
2
votes
0 answers

CMake on Ubuntu: Could NOT find Threads (missing: Threads_FOUND)

I'm trying to compile Onx and I am receiving a CMake error message. I am receiving this error on my ubuntu 20.04 lts: Could NOT find Threads (missing: Threads_FOUND) I'm waiting your comments. Thanks for help
efeozkesici
  • 455
  • 1
  • 7
  • 14
1
vote
0 answers

Unhandled Promise Rejection: Error: abort(Error: WebAssembly.Module doesn't parse at byte xxx

I got a .wasm file with emscripten. It works on websites on desktop, but it doesn't work at mobile browsers and I got this error. I'm using; -Emscripten 3.0.1 -OpenCV 4.5.3 How can I fix this problem?
efeozkesici
  • 455
  • 1
  • 7
  • 14
1
vote
1 answer

EXPORTED_FUNCTIONS ignored during emcc compilation

I'm trying to learn how to compile CPP into WASM and I can't seem get it to work properly. I have a simple CPP code that implements a squarer function which squares a given integer: #ifdef __EMSCRIPTEN__ #include #endif int…
user92563
  • 11
  • 2
1
vote
1 answer

Qt3DRenderer::QCamera WebAssembly supported alternative

VenomousByte 4 minutes ago Hi, absolute newbe to this forum so please forgive (and tell) me if I'm doing somthing terribly wrong. I'm looking to port a Qt-application to WebAssembly but am stuck. The application allows the user to "fly" through 3D…
1
vote
2 answers

issue with emsdk on mac

I am trying to setup emsdk on mac with the following command: ./emsdk install latest I cloned the repo from git. However, I get the following error upon running the command mentioned above: ** NOTICE **: The default SDK changed from `fastcomp` to…
ali haider
  • 19,175
  • 17
  • 80
  • 149
1
vote
0 answers

Fatal: initialStackPointer must be set , shared:ERROR

I want to build bananabread c++ project with emscripten. I added BINARYEN_ROOT intro ./emscripten . I also build BINARYEN. LLVM_ROOT = '/Volumes/POMOCNI/WWW-HTDOCS/emsdk-demos/emsdk/emsdk/fastcomp/bin' EMSCRIPTEN_ROOT =…
Nikola Lukic
  • 4,001
  • 6
  • 44
  • 75
0
votes
0 answers

How to use emsdk/emscripten to build c++ and reference/include gmp?

wasm-ld error: unknown file type: libgmp.a wasm-ld:error: undefined symbol: __gmpz_clear I want to build https://github.com/Iwctwbh/Factorial-BenchMark in wasm. Can you tell me the correct steps? wasm-ld error: unknown file type:…
0
votes
0 answers

QT Creator Webassembly: Error while parsing file Test.pro. Giving up

I'm trying to dip my toes into Qt WebAssembly in Windows 10, so I performed the necessary setup as per the Qt for WebAssembly instructions. With that I now have the following installed: Qt: 6.5.2 Qt Creator: 11.0 emsdk: 3.1.25 In Qt Creator…
cancech
  • 1
  • 2
0
votes
0 answers

Emsdk script fails to run on Windows 10

I'm trying to get started with Emscripten. I'm following the official guideline, but fail to succeed. The emsdk script just outputs Python to whatever I type in and seems to stay idle: D:\VSProjects\EmscriptenGuide\emsdk>emsdk install…
Kaiyakha
  • 1,463
  • 1
  • 6
  • 19
0
votes
1 answer

How can I invoke `exec` to chainload one WASM program from another?

How can I invoke exec in WASM? When I try the example below, it gives error 45 (Operation not supported). Is there some flag to enable exec? Is callee.wasm not the right file to exec? Terminal: > emcc callee.c -o callee.wasm > emcc caller.c…
jmpsabisb
  • 182
  • 1
  • 10
0
votes
0 answers

How to set program name?

How to set program name/argument 0 (argv[0]) with emcc? For example, emcc hello.c -o hello.html with --set-name main*. This is not the same as setting Module.arguments (which changes arguments 1 and up, I want argument 0). in auto-generated…
jmpsabisb
  • 182
  • 1
  • 10
0
votes
0 answers

How to bind libraries using em++/emcc?

I've written a c++ function to perform RSA cryptography using crypto++ libraries. I'm trying to convert it into functions that I can call in Javascript using emsdk. I've gone through the document and didn't see any straightforward way to do that. My…
0
votes
2 answers

Where to pass EMSDK_QUIET=1

I've installed emsdk, following the steps described in the following document: https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install Now, when I launch a Terminal under macOS, I have these lines inserted at the…
Benoît Lahoz
  • 1,270
  • 1
  • 18
  • 43
0
votes
1 answer

emsdk compilation. what flags do i needfor sucsess?

Here are my compiler logs I don't quite understand what to do $ emmake make CFLAGS="-fstack-protector-strong" LDFLAGS="-fstack-protector-strong" make: make CFLAGS=-fstack-protector-strong LDFLAGS=-fstack-protector-strong emcc…
Ryufuz
  • 11
  • 3
1
2