I'm trying to add an interopt for libui, I'm stock...
# kotlin-native
f
I'm trying to add an interopt for libui, I'm stock with dyld error
Copy code
dyld: Library not loaded: @rpath/libui.A.dylib
  Referenced from: /private/var/workspace/test/kui/./uiDemo.kexe
  Reason: image not found
any hint to help me find the problem?
m
My experiments with libui here: https://github.com/msink/kotlin-ui But I experimented on windows, not mac
f
I'll the static link. Still curious though why it doesn't work. Thanks
o
in your case
Copy code
DYLD_LIBRARY_PATH=`pwd`/../libui/build/out
may help
it has nothing to do with the K/N although, just generic dynamic linkage problem: you link with .dylib, but it's not in your search path when running an executable
f
Thanks, the
DYLD_LIBRARY_PATH
was the solution for the shared lib.