alexcouch
01/02/2020, 11:12 PMld.lld: error: undefined symbol: SnowboyDetectConstructor
>>> referenced by Types.kt:162 (/mnt/agent/work/4d622a065c544371/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Types.kt:162)
>>> /tmp/konan_temp7723188199372240336/result.o:(snowboy_SnowboyDetectConstructor_wrapper0)
I'm not exactly sure what to do now. I've looked everywhere. I've dumped the cstubs for the library I'm trying to link and everything seems to be in order. I really don't understand why it says that Types.kt:162 is the one throwing the fit. I looked at that line and its CPointer<T>#getPointer. Not sure if its not able to find information on the types being pointed to in C code or what but I'm kinda at my wits end right now.alexcouch
01/02/2020, 11:17 PMDominaezzz
01/03/2020, 12:08 AMDominaezzz
01/03/2020, 12:09 AMalexcouch
01/03/2020, 12:17 AMheaders = /mnt/d/snowboy/examples/c/snowboy-detect-c-wrapper.h
staticLibraries = snowboy-detect-c-wrapper.a libsnowboy-detect.a
libraryPaths = /mnt/d/snowboy/examples/c/ /mnt/d/snowboy/lib/ubuntu64
compilerOpts = -I/mnt/d/snowboy/include
linkerOpts = -L/mnt/d/snowboy/examples/c/snowboy-detect-c-wrapper.a
That is for snowboy
headers = /mnt/d/snowboy/examples/c/portaudio/include/portaudio.h \ /mnt/d/snowboy/examples/c/portaudio/src/common/pa_util.h \ /mnt/d/snowboy/examples/c/portaudio/src/common/pa_ringbuffer.h \ /mnt/d/snowboy/examples/c/portaudio/src/common/pa_stream.h
compilerOpts.linux = -I/mnt/d/snowboy/examples/c/portaudio/include/ -I/mnt/d/snowboy/examples/c/portaudio/src/common
That is for port audioalexcouch
01/03/2020, 12:17 AMDominaezzz
01/03/2020, 12:42 AMDominaezzz
01/03/2020, 12:42 AMalexcouch
01/03/2020, 12:51 AMDominaezzz
01/03/2020, 12:56 AM.a
or .so
file.Dominaezzz
01/03/2020, 12:57 AMalexcouch
01/03/2020, 1:04 AMDominaezzz
01/03/2020, 1:11 AM.a
built with Clang or Gcc? (To be fair, C++ doesn't like C++ either).alexcouch
01/03/2020, 1:17 AM.a
is built for ubuntu64 which also kinda concerns me but honestly it shouldn't be a problem for any linux distro since anything built for ubuntu is also built for X where X is some linux based os, but I could be wrong. Right now, I think it's best I come back to this later. I just need to get something working.jimn
01/05/2020, 7:51 AM