Godot Version
4.3
I’ve tried to follow the gdextension example on MacOs 14.5 GDExtension C++ example — Godot Engine (stable) documentation in English
Building godot-cpp results in a file : bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug
I’ve copied an renamed it to bin/libgdexample.macos.template_debug.framework in order to match the gdexample.gdextension file which also resides under bin/
however when trying to open the demo in Godot I get following errors:
Editing project: /Users/myuser/code/godot-cpp-template/demo
WARNING: Failed to get modified time for: res://bin/libgdexample.macos.template_debug.framework
at: _get_modified_time (drivers/unix/file_access_unix.cpp:386)
ERROR: Condition "!FileAccess::exists(path)" is true. Returning: ERR_FILE_NOT_FOUND
at: open_dynamic_library (platform/macos/os_macos.mm:233)
ERROR: GDExtension dynamic library not found: /Users/myuser/code/godot-cpp-template/demo/bin/libgdexample.macos.template_debug.framework
at: open_library (core/extension/gdextension.cpp:792)
ERROR: Failed loading resource: res://bin/example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
at: _load (core/io/resource_loader.cpp:284)
ERROR: Error loading extension: res://bin/example.gdextension
at: load_extensions (core/extension/gdextension_manager.cpp:234)
Godot Engine v4.3.1.rc.custom_build.6699ae789 (2024-09-17 18:47:01 UTC) - https://godotengine.org
Vulkan 1.2.283 - Forward+ - Using Device #0: Apple - Apple M2 Max
myuser@MacBook-Pro-M2 bin %
WARNING: Failed to get modified time for: res://bin/libgdexample.macos.template_debug.framework
at: _get_modified_time (drivers/unix/file_access_unix.cpp:386)
ERROR: Condition "!FileAccess::exists(path)" is true. Returning: ERR_FILE_NOT_FOUND
at: open_dynamic_library (platform/macos/os_macos.mm:233)
ERROR: GDExtension dynamic library not found: /Users/myuser/code/godot-cpp-template/demo/bin/libgdexample.macos.template_debug.framework
at: open_library (core/extension/gdextension.cpp:792)
ERROR: Failed loading resource: res://bin/example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
at: _load (core/io/resource_loader.cpp:284)
What am I doing wrong ?