spierce7
08/30/2021, 6:22 AM/usr/local/lib/
1. How do I tell get the dynamic library to load a file in a relative path to the .kexe
executable?
2. If #1 isn’t possible, is it possible to embed a dynamic library into the .kexe
?atsushieno
08/30/2021, 10:29 AMspierce7
08/30/2021, 2:01 PMatsushieno
08/30/2021, 3:15 PMdlopen()
function.atsushieno
08/30/2021, 3:16 PMspierce7
08/30/2021, 3:16 PMspierce7
08/30/2021, 3:17 PMlinkerOpts(project.file("libs/<dynamic lib>.dylib").absolutePath)
It no longer buildsspierce7
08/30/2021, 3:18 PMUndefined symbols for architecture x86_64:
atsushieno
08/30/2021, 3:23 PMdlopen()
, then you are supposed to get a pointer to a symbol (function or variable) using dlsym()
and optionally cast to your favorite type.atsushieno
08/30/2021, 3:24 PMspierce7
08/30/2021, 9:31 PMspierce7
08/30/2021, 11:09 PM