Open MaxKablaam opened 1 month ago
Ok, think I solved it. For some reason make STATIC=true
still puts a libpd.dylib
in the libs folder, and scons must pick that up along with the libpd.a
, so it's looking for it when the editor starts. Deleting the libpd.dylib
file seems to fix the issue. Any way to prevent the `libpd.dylib' from being created? Or to suppress it in SConstruct?
Hi! You can try explicitly referencing the .a file in the scons
Unfortunately I dont have a mac to test. 🙏
But you can try adding this line before L22 to overwrite the lib name when using mac.
See if it works
env.Replace(LIBS="libpd.a")
Thanks for looking into this. I just tested this and SCons is still picking up the .dylib 🤷♀️ I even tried setting the initial LIBS name and specifically ignoring the .dylib by changing the line at 17 to this:
env.Append(LIBS="libpd.a", LIBPATH=["libpd/libs/"])
env.Ignore(env.Dir('libpd/libs/'), 'libpd.dylib')
... and it still gives me that error in Godot, unless I manually delete the .dylib.
I built the libpd and the gdextension following the instructions in the readme. Here is the error I'm getting in Godot Editor.
I'm surprised that it is looking for libpd.dylib, which I may be mistaken, but that sounds like it's a dynamic library, when I followed the instructions to build a static library.