JoakimForslund
12/05/2018, 1:17 PMpackage = aes
headers = aes/aes.h
headerFilter = aes/aes.h
Why does my multiplatform solution upon build give me this exception:
Exception in thread "main" java.lang.Error: /var/folders/60/htq84d4s4q55l9j0j1mh6d5w0000gn/T/tmp8457509487070388280.c:1:10: fatal error: 'aes/aes.h' file not found
JoakimForslund
12/05/2018, 1:18 PMthe files we reference need to be relative to the folder where the definition file is, or be available on the system path (in our case it would be /usr/include/curl).
JoakimForslund
12/05/2018, 1:18 PMDico
12/05/2018, 1:30 PMincludeDirs
in your build.gradleDico
12/05/2018, 1:31 PMJoakimForslund
12/05/2018, 1:32 PMDico
12/05/2018, 1:34 PMDico
12/05/2018, 1:34 PMJoakimForslund
12/05/2018, 1:42 PMincludeDirs
for the multiplatform build.gradle
This is the part i'm using to setup the cinterop:
kotlin {
targets {
fromPreset(presets.androidNativeArm32, 'androidNative32')
fromPreset(presets.androidNativeArm64, 'androidNative64')
configure([androidNative32, androidNative64]) {
compilations.main.cinterops {
callback
libaes
}
compilations.main.outputKinds 'dynamic'
}
}
}
msink
12/05/2018, 1:49 PMcompilations.main.cinterops {
libaes {
includeDirs buildDir
}
}
JoakimForslund
12/05/2018, 1:54 PM