Open erikangelin-king opened 5 years ago
(After discussion with @britzl and @mathiaswking) The bundle_resources directory has some internal structure for the different platforms. For macos, dynamic libraries are typically under osx/Contents/MacOS, intended for the corresponding directory in the .app. Ideas:
+1 for this. I have the same issue for the FMOD and Discord Rich Presence extensions (using the res
dir from native extensions instead of bundle_resources
, but the principle should be the same). Currently I'm asking the library user to copy the libraries to a folder in their project manually:
https://github.com/dapetcu21/defold-fmod#running-in-the-editor
Then, I have to do this crazy thing to obtain the path to them in order to load them with dlopen()
:
https://github.com/dapetcu21/defold-fmod/blob/master/bridge/src/fmod_dynamic_loading.cpp#L182