pkdawson/imgui-godot

Documented steps for getting running on MAC/OSX?

Closed this issue · 1 comments

Installing & enabling imgui-godot into my 4.2.2 GDScript Godot project works fine on Windows but the same project on my Mac machine throws an error when trying to load the addon or when trying to call any of the ImGui functions. I'm guessing this is because some binaries need to be built myself but I can't find anything in the documentation on what I need to do to move forward from here. (Do I need to build my own ImGui binaries? My own Godot binaries? Something else?)

  Can't open dynamic library: /Users/glenn/Projects/my-godot-project/addons/imgui-godot/bin/libimgui-godot-native.macos.debug.framework.
    Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libimgui-godot-native.macos.debug.framework, 0x0002): tried:
    '/Applications/Godot.app/Contents/MacOS/../Frameworks/libimgui-godot-native.macos.debug.framework' (no such file),
    '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libimgui-godot-native.macos.debug.framework' (no such file),
    '/Applications/Godot.app/Contents/MacOS/../Frameworks/libimgui-godot-native.macos.debug.framework' (no such file).
  core/extension/gdextension.cpp:719 - GDExtension dynamic library not found: /Users/glenn/Projects/my-godot-project/addons/imgui-godot/bin/libimgui-godot-native.macos.debug.framework
  Failed loading resource: res://addons/imgui-godot/imgui-godot-native.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
  res://test-ui-script.gd:19 - Parse Error: Identifier "ImGui" not declared in the current scope.

Have tried reloading the project in the Godot editor multiple times. Using Godot GDScript v4.2.2. Installed the addon using the built-in plugin manager. Works fine on Windows but not on Mac.

Nevermind, reinstalling the plugin from Godot's AssetLib fixed it. Must've been a fluke.