Marcin Wisniowski
10/13/2019, 12:15 AM.def
file, seems to work, I have autocompletion of library functions, project compiles, but fails when linking. I have a compiled .so
file for the library, but cannot find how to make my project use it.Marcin Wisniowski
10/13/2019, 12:34 AM.def
file I needed to add linkerOpts = -Lsrc/nativeInterop/cinterop -l wiringPi
, having libwiringPi.so
in that path. The filename of the .so
file is related to the -l
option, but lib
is cut from the name. Also I had it as libwiringPi.so.2.46
, the version number at the end of the filename was a problem.Marcin Wisniowski
10/13/2019, 12:53 AM-R .
to linkerOpts
actually made it find the .so
file when the executable is run, when the .so
file is distributed along the executable in the same directory.napperley
10/13/2019, 1:11 AMlinkerOpts
will work in development via Gradle, but will not work when the program is run in production via the terminal.Marcin Wisniowski
10/13/2019, 1:24 AMArtyom Degtyarev [JB]
10/14/2019, 11:30 AM.so
file a product of some Kotlin/Native code compilation or not?Marcin Wisniowski
10/14/2019, 3:58 PM.so
file. I am dynamically linking to it from my Kotlin/Native project, which I am cross-compiling from a Linux host to the Raspberry Pi. It was easy to setup with making a .def
file to get the Idea to recognize it and it was compiling, but failed linking, which I had a hard time understanding how to fix. It's all working now though, as I said above.v79
11/01/2020, 4:56 PMlibcurl
). IntelliJ understands the headers, I think compiling works, but linking fails, Ultimately I want to be doing something similar to you, linking to `wiringPi`or a similar library. How did you solve your linking problems?Marcin Wisniowski
11/01/2020, 7:55 PMMarcin Wisniowski
11/01/2020, 8:05 PMv79
11/01/2020, 9:06 PMMarcin Wisniowski
11/01/2020, 11:13 PM