godot-steam-api icon indicating copy to clipboard operation
godot-steam-api copied to clipboard

Mac OS 10.13.6 runtime error

Open skuzmin opened this issue 2 years ago • 11 comments

Hi and thank you for your library :)

But I have an issue: library gives error on Mac OS 10.13.6 image image image

Unfortunately I can't update OS to the latest version, so could you make it backward compatible with 10.x.x ?

Thank you!

skuzmin avatar Sep 01 '22 09:09 skuzmin

image The error messge is cut off, can you post the full text? @skuzmin

samsface avatar Sep 01 '22 10:09 samsface

sorry, of course

E 0:00:00.363 open_dynamic_library: Can't open dynamic library: /Users/TrueJarod/Documents/Projects/k3/addons/steam_api/libsteamsdk-godot.dylib, error: dlopen(/Users/TrueJarod/Documents/Projects/k3/addons/steam_api/libsteamsdk-godot.dylib, 2): Symbol not found: ____chkstk_darwin Referenced from: /Users/TrueJarod/Documents/Projects/k3/addons/steam_api/libsteamsdk-godot.dylib (which was built for Mac OS X 11.6) Expected in: /usr/lib/libSystem.B.dylib in /Users/TrueJarod/Documents/Projects/k3/addons/steam_api/libsteamsdk-godot.dylib. <C++ Error> Condition "!p_library_handle" is true. Returned: ERR_CANT_OPEN <C++ Source> platform/osx/os_osx.mm:1956 @ open_dynamic_library()

skuzmin avatar Sep 01 '22 10:09 skuzmin

@samsface hi, any chance to have fix for that or it's just deadend ? :(

skuzmin avatar Sep 06 '22 20:09 skuzmin

I'll fix this eventually but no time atm. @skuzmin You can try fix this yourself and open a PR. I beleive the issue is we just need to point at the correct MacOS SDK: https://github.com/samsface/godot-steam-api/commit/1de01a88cf6b0c16d11fd2e158a046c523c2c413

samsface avatar Sep 07 '22 11:09 samsface

thx, I will try

skuzmin avatar Sep 07 '22 11:09 skuzmin

Leaving open as problem still exists.

samsface avatar Sep 07 '22 17:09 samsface

@samsface thanks for response!

If I understand correctly, 1de01a8 fixes this, but we have to rebuild the lib and submit the PR with the newly recompiled binary itself, correct?

P.S. Thanks for the awesome library, great job!

Update: any additional flags we need to pass to cmake? I've tried building with cmake . -DCMAKE_BUILD_TYPE=Release and the resulting library is 61 MB of size... Anything we're missing?

Update 2: forgot to strip the binary. Now it's 3 megs. :)

and3rson avatar Sep 07 '22 20:09 and3rson

@and3rson I believe so. However, have no High Sierra Mac to confirm this.

samsface avatar Sep 07 '22 21:09 samsface

Just necroing this to let you know that an update to support the older mac os versions would be highly appreciated!

paskausks avatar Nov 23 '23 08:11 paskausks

@and3rson do you have the built MacOS libraries lying around somewhere, by any chance?

paskausks avatar Jan 02 '24 08:01 paskausks

Hello, fantastic plugin for PC and Linux ! I am running into trouble on Mac, though. Got the same type of "open_dynamic_library: Can't open dynamic library" error as mentioned above. I am using Godot 3.5 on a M1 MacBook Air with Sonoma 14.5. Would be super grateful for any help ! - maybe even a detailed explanation about how to fix stuff yourself ?

BlooRabbit avatar Jun 14 '24 11:06 BlooRabbit