expressobits / steam-multiplayer-peer

Steam Sockets Multiplayer Peer for Godot 4 via GDExtension
MIT License
199 stars 13 forks source link

Extension fails to install on mac #3

Closed tbillington closed 1 year ago

tbillington commented 1 year ago

Hey! Was trying this out today but I got these errors trying to install through the godot editor asset library. I have godotsteam installed already.

Potentially some filepaths hardcoded or incorrect?

  Can't open dynamic library: /Users/choc/code/Aetherift/addons/steam-multiplayer-peer/osx/steam-multiplayer-peer.debug.framework. Error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/steam-multiplayer-peer.debug.framework, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/steam-multiplayer-peer.debug.framework' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/steam-multiplayer-peer.debug.framework' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/steam-multiplayer-peer.debug.framework' (no such file).

  core/extension/gdextension.cpp:455 - GDExtension dynamic library not found: /Users/choc/code/Aetherift/addons/steam-multiplayer-peer/osx/steam-multiplayer-peer.debug.framework

  Failed loading resource: res://addons/steam-multiplayer-peer/steam-multiplayer-peer.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
scriptsengineer commented 1 year ago

I believe the file is pointing to the libs with changed names, try changing the file https://github.com/expressobits/steam-multiplayer-peer/blob/main/steam-multiplayer-peer.gdextension For the lib that is in the project and update me, if necessary I will correct it here. image

tbillington commented 1 year ago

Ran these in the addon directory and it fixed it.

cp steam-multiplayer-peer.macos.template_debug.framework/libsteam-multiplayer-peer.macos.template_debug steam-multiplayer-peer.debug.framework
cp steam-multiplayer-peer.macos.template_release.framework/libsteam-multiplayer-peer.macos.template_release steam-multiplayer-peer.framework
scriptsengineer commented 1 year ago

Fixed