nlaha / godot-midi

MIDI file parsing and event playback in Godot 4.2+
MIT License
71 stars 7 forks source link

Compilation failed (MacOS) #29

Open iandoesallthethings opened 1 month ago

iandoesallthethings commented 1 month ago

I saw an issue from last year, but this seems different so I figured I'd drop it here. Seems like it's having trouble reading a type in the c++?

OS: MacOS Sonoma 14.6.1 (latest) Godot: 4.2.2 Stable

modules/gltf/register_types.cpp:63 - Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported.
--- Debug adapter server started ---
--- GDScript language server started on port 6008 ---
  core/io/http_client_tcp.cpp:152 - Condition "!_check_request_url(p_method, p_url)" is true. Returning: ERR_INVALID_PARAMETER
  editor/plugins/asset_library_editor_plugin.cpp:862 - Error getting image file from URL: https://bitbucket.org/arlez80/godot-midi-player-g4/downloads/icon.png
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "MidiResource" not found.
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "MidiResource" not found.
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "MidiResource" not found.
  modules/gdscript/gdscript_compiler.cpp:121 - GDScript bug: Native class "MidiResource" not found.
  res://addons/godot_midi/midi_import_plugin.gd:52 - Compile Error: Identifier not found: MidiResource
  res://addons/godot_midi/godot_midi.gd:-1 - Compile Error: 
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/godot_midi/godot_midi.gd" with error "Compilation failed". (User)
nlaha commented 1 month ago

Can you check to make sure the MacOS binary files are present in the addon directory?

You should see the following two files in the <your godot project root>/addons/godot_midi/bin folder: libgdgodotmidi.macos.template_debug.framework libgdgodotmidi.macos.template_release.framework

These won't show up in Godot, but you should see them when you browse in finder. If they aren't there, go back and reinstall the plugin using the instructions in the README. Make sure you downloaded the plugin from one of the published GitHub releases or followed the steps to compile it from source.