I am trying to use this project: https://github.com/matt-s-clark/godot-gdextension-opencv and exporting it to the web. Feel free to try it out yourself since it's a pretty good example of using external libraries (OpenCV) in Godot 4.3
My question is how can I export it to the web? I have:
- Enabled "Extensions Support" in the export settings
- I heard that I'm supposed to build my own export templates from here, so I have gotten the
web_dlink_debug.zipandweb_dlink_release.zipfiles and put them in the "Custom Template" section of the export settings. - Ensured that the project runs normally in testing (the play button)
I am getting No suitable library found for GDExtension: res://bin/opencv.gdextension. Possible feature flags for your platform: web, s3tc, etc2, nothreads, wasm32, template, debug, template_debug, single upon exporting the project in the Godot editor output.
I am also getting this in the browser console: USER ERROR: No GDExtension library found for current OS and architecture (web.wasm32) in configuration file: res://bin/opencv.gdextension
So this is probably because the Web could not find a compatible library. How do I fix this?
GDExtension project for OpenCV. Contribute to matt-s-clark/godot-gdextension-opencv development by creating an account on GitHub.
Requirements: To compile export templates for the Web, the following is required: Emscripten 3.1.39+., Python 3.6+., SCons 3.1.2+ build system.. Building export templates: Before starting, confirm ...