-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error while compiling opencv 3.4.15 #20209
Comments
If your goal is to run under wasmtime then you are better of using wasi-sdk. The problem you are running into is that you need to build and install the prerequisites. e.g. zlib, libpng, etc and make sure they are installed in the sysroot (or in the include/lib path somehow). |
You are correct, I thought that was not the case because I do have zlib installed but in fact my version is too old for this build (1.2.11) Since you mentioned, what do you mean by "using wasi-sdk"? I thought that I was already using wasi, there is any link or documentation on that subject? Btw, thanks for your help |
wasi-sdk is a completely separate toolchain to emscripten: https://github.com/WebAssembly/wasi-sdk. emscripten's support for WASI is extremely limited. |
Thank you, I will have a look on wasi-sdk |
Any luck? I'm trying to do the exact same thing as you |
There are official docs on the OpenCV project for how to build it, which might be useful: |
Thanks, but I've tried that and it doesn't work; OpenCV.js seems to be building javascript files that are to be used for people making webpages from scratch, or smth. See, I'm using Godot, and I simply need OpenCV's libraries not in a format that won't be rejected by |
I currently have a project in C++ that uses opencv 3.4.15, and I would like to compile this project to wasm and runit in wasmtime
I started by compiling opencv to wasm, my goal here was to generete some sort of .a file wich I could link to my code later on
I followed this tutorial for replacing cmake and make, but during the cmake process I got an error
Notes
I suceffuly compiled the same source code but for machine code instead of wasm
If there is a easier way of using opencv in wasm. Please let me know
Version of emscripten/emsdk:
Failing command line in full:
Output
Full link command and output with
-v
appended:The text was updated successfully, but these errors were encountered: