ashtonmeuser / godot-wasm

Interact with WebAssembly modules from Godot
https://github.com/ashtonmeuser/godot-wasm/wiki
MIT License
193 stars 11 forks source link

Example not running #60

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

Just trying things out...

v4.1.2.stable.official [399c9dc39]

as per :https://github.com/ashtonmeuser/godot-wasm/wiki/Examples#wasm-visualizations

I installed the go-dot wasm and then opened the wasm-visualizations from https://github.com/ashtonmeuser/godot-wasm/tree/master/examples/wasm-visualizations

Screenshot 2023-10-17 at 17 41 20

`

Godot Engine v4.1.2.stable.official.399c9dc39 - https://godotengine.org
Vulkan API 1.2.231 - Forward+ - Using Vulkan Device #0: Apple - Apple M2 Pro

  Can't open dynamic library: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file).
  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib
  Failed loading resource: res://addons/godot-wasm/godot-wasm.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  Can't open dynamic library: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file).
  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib
  Failed loading resource: res://addons/godot-wasm/godot-wasm.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  Can't open dynamic library: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file).
  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib
  Failed loading resource: res://addons/godot-wasm/godot-wasm.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  Attempting to parent and popup a dialog that already has a parent.
--- Debugging process stopped ---
  Can't open dynamic library: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file).
  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib
  Failed loading resource: res://addons/godot-wasm/godot-wasm.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  Can't open dynamic library: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgodot-wasm.dylib' (no such file).
  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/apple/workspace/go/src/junk/godot-wasm/examples/wasm-visualizations/addons/godot-wasm/bin/macos/libgodot-wasm.dylib
  Failed loading resource: res://addons/godot-wasm/godot-wasm.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  editor/editor_node.cpp:1225 - Condition "!res.is_valid()" is true. Returning: ERR_CANT_OPEN
gedw99 commented 1 year ago

Fixed

Have to open the example and THEN install the admin.

Screenshot 2023-10-17 at 17 52 55
ashtonmeuser commented 1 year ago

Have to open the example and THEN install the admin addon (correction mine).

Thanks for documenting the fix, @gedw99. I'll add some more context for anyone stumbling on similar issues. Once you've downloaded the repo which includes examples, you'll have to either 1) compile the addon (see Build Godot Wasm) or 2) install the addon e.g. downloading it from the Godot asset library (see Installation). This must be done because the addon binaries are not committed to the repo.

gedw99 commented 1 year ago

thanks @ashtonmeuser

Yeah I did not realise that the add on is local to the project in the Godot IDE. So the pattern is load project and then load add on. I originally thought add-on are global, but they are not in Godot.

If you need help with docs or a beta tester hit me up :)