Closed luca992 closed 5 years ago
Can you send config? The downstream library config always needs '-lsqlite3' for linker options. For example (from DroidconKotlin):
main {
component {
baseName.set("SessionizeArch")
target 'ios_arm64', 'ios_x64'
outputKinds = [FRAMEWORK]
extraOpts("-linkerOpts", "-lsqlite3")
extraOpts '--disable', 'devirtualization'
}
}
That's telling the native compile to look for sqlite3 to link to locally.
@kpgalligan ahh... my project structure is basically:
:library-native (outputs dynamic lib)
^depending on :data-native
^ expected by :data-common
I had extraOpts("-linkerOpts", "-lsqlite3")
added as an option to :data-native but it had no effect there. Had to specify it further downstream in :library-native
It is building now 👍 Sorry for all the questions haha
Trying to use knarch with kotlin native on desktop (macOs at the moment) . Doesn't look like 0.7.2-kn0.9-a2's cpp portion is compiled for x86_64: