Dominaezzz
09/14/2018, 11:31 PMerror: compilation failed: C:\Users\Dominic\KotlinNativeProjects\kotlin-sqlite\build\konan\libs\mingw_x64\ksqlite.klib: The process cannot access the file because it is being used by another process.
, when I build Kotlin/Native project in CLion. Can only fix it by restarting.spierce7
09/15/2018, 2:40 AMbulwinkel
09/15/2018, 7:41 AMDenis Shurygin
09/15/2018, 12:25 PMtunedal
09/15/2018, 3:46 PMDmitry Kandalov
09/16/2018, 11:48 AMmarcinmoskala
09/16/2018, 2:41 PMDominaezzz
09/16/2018, 8:22 PMProcess finished with exit code -1073741819 (0xC0000005)
I think it might be a linking issue but I'm not experienced enough to figure it out. https://github.com/Dominaezzz/kotlin-sqliteyusuf3000
09/17/2018, 6:19 AMtargeted OS version does not support use of thread local variables in _kfun:com.TestEnum.$OBJECT.$get-VALUES()kotlin.Array<com.TestEnum> for architecture x86_64
* What went wrong:
Execution failed for task ':platform-ios:compileDebugIos_x64KotlinNative'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Anyone know how to solve this?alec
09/17/2018, 7:04 PMkyonifer
09/17/2018, 8:21 PMlibrary('foo')
, but with the experimental DSL it seems to make components.main.name
read onlySangeet
09/18/2018, 6:55 AMKonstantin Petrukhnov
09/18/2018, 9:13 AMJaroslav
09/18/2018, 11:10 AM./gradlew dist crossDist
in root folder of the project, I get:
kotlin-native-master/runtime/src/main/cpp/Interop.cpp:22:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^~~~~~~
1 error generated.
MacOS 10.13.6, XCode 9Jaroslav
09/18/2018, 11:52 AMDominaezzz
09/18/2018, 5:54 PMprivate val glShaderSource: CPointer<CFunction<(GLuint, GLsizei, CPointer<CPointerVar<GLcharVar>>?, CPointer<GLintVar>?) -> Unit>> get() = glfwGetProcAddress("glShaderSource")!!.reinterpret()
With another function to call it properly of course.
Since, I'm not relying on c_interop to do any magic for me at the border between Kotlin and C. What types are actually allowed at the border? Everything in kotlinx.cinterop.*
?Jaroslav
09/19/2018, 11:38 AMimplementation
to dependencies, I get an error Could not find method implementation() for arguments [...] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
dmuratshin
09/19/2018, 6:55 PMDavid
09/20/2018, 11:39 AMJaroslav
09/20/2018, 12:15 PMr4zzz4k
09/20/2018, 1:18 PMoutput.pointed.value = input
, for structures I was going to copy bytes and needed size of generic CVariable
).
The stuff that breaks:
import kotlinx.cinterop.*
inline fun <reified T : CVariable> sizeOf(value: T) = sizeOf<T>()
fun process(value: Any) {
when (value) {
is Int -> 4
is CVariable -> sizeOf(value)
}
}
fun main() = Unit
The error:
error: compilation failed: native variable class deserialized class CVariable must have the companion object
* Source files: sample.kt
* Compiler version info: Konan: 0.9.1 / Kotlin: 1.3.0
* Output kind: PROGRAM
exception: java.lang.IllegalStateException: native variable class deserialized class CVariable must have the companion object
Ivan
09/21/2018, 5:14 AMCValuesRef<CPointerVar<ByteVar>>?
to pass to a native function?spierce7
09/22/2018, 3:54 AMmikehearn
09/22/2018, 4:21 PMfabianterhorst
09/22/2018, 6:29 PMmikehearn
09/22/2018, 7:27 PMhmole
09/23/2018, 10:38 AM@NativeName
maybe?hmole
09/23/2018, 11:10 AMOnly one Kotlin framework can be loaded currently
. version 1.3.0-rc57minamoto-jb
09/24/2018, 7:37 AMAman Alam
09/24/2018, 8:52 AMAman Alam
09/24/2018, 8:52 AMolonho
09/24/2018, 10:24 AM