Slackbot
04/17/2019, 11:53 AMMichael Bryant
04/17/2019, 4:14 PMfun <T> doSomething(list: List<T>): T
), this function is left out of a generated dynamic library entirely?Rohan Maity
04/18/2019, 3:10 AMJoakimForslund
04/18/2019, 7:27 AMSmallville7123
04/18/2019, 10:54 AMSmallville7123
04/18/2019, 2:14 PMensureCapacity
and setLength
do in StringBuilder
McRed
04/18/2019, 5:24 PMIvan
04/18/2019, 7:15 PMczuckie
04/18/2019, 7:26 PMCValue
concept and passing structs by reference to C functions?Smallville7123
04/18/2019, 8:12 PMUncaught Kotlin exception: kotlin.NotImplementedError: An operation is not implemented.
at kfun:kotlin.Error.<init>(kotlin.String?)kotlin.Error (0x25a0b6)
at kfun:kotlin.NotImplementedError.<init>(kotlin.String)kotlin.NotImplementedError (0x2f2c26)
at kfun:kotlin.NotImplementedError.<init>(kotlin.String;kotlin.Int;kotlin.native.internal.DefaultConstructorMarker)kotlin.NotImplementedError (0x2f2b9f)
at kfun:sample.Commands.cmd.<init>$lambda-0#internal (0x2f2af3)
at kfun:sample.Commands.cmd.$<init>$lambda-0$FUNCTION_REFERENCE$4.invoke#internal (0x2f2a1f)
at kfun:sample.Commands.cmd.$<init>$lambda-0$FUNCTION_REFERENCE$4.$<bridge-UNN>invoke()#internal (0x2f2997)
at kfun:sample.REPL.REPL() (0x261f29)
at kfun:sample.main(kotlin.Array<kotlin.String>) (0x2611e3)
at Konan_start (0x260e97)
at Konan_run_start (0x260e13)
at Konan_main (0x260d87)
at __libc_start_main (0x7f3d91734223)
at (0x257029)
at ((nil))
napperley
04/19/2019, 12:26 AMandrew
04/19/2019, 1:24 AMilya.matveev
04/19/2019, 12:52 PMSmallville7123
04/19/2019, 3:36 PMSlackbot
04/19/2019, 5:12 PMSmallville7123
04/20/2019, 6:58 AMfun hello(): String = "Hello, Kotlin/Native! $projectRoot"
gives me e: /home/macropreprocessor/IdeaProjects/kpp/src/Directory Packer/src/linuxMain/kotlin/sample/SampleLinux.kt: (3, 47): Unresolved reference: projectRoot
caffeine
04/20/2019, 1:38 PMimport platform.zlib.*
.....
internal val native = malloc(sizeOf<z_stream_s>().convert())!!.reinterpret<z_stream_s>()
.....
When I build it to linux64 target it build normally. But when build to linuxArm32 I have errors:
Unresolved reference: zlib
Unresolved reference: z_stream_s
I use multiplatform kotlin 1.3.30. Host: Windows 10
What the problem? Doesn't Kotlin-native for linuxArm32 have zlib? How fix it?Smallville7123
04/21/2019, 12:23 PMSmallville7123
04/21/2019, 12:24 PMLeon Linhart
04/22/2019, 11:10 AMgianluz
04/23/2019, 1:35 PMtapchicoma
04/24/2019, 8:49 PM1.3.30-eap-164
. For example:
compile - Dependencies for compilation 'main' (target (jvm)) (deprecated, use 'implementation ' instead).
\--- org.jetbrains.kotlin:kotlin-stdlib:1.3.30-eap-164 FAILED
compileClasspath - Compile classpath for compilation 'main' (target (jvm)).
\--- org.jetbrains.kotlin:kotlin-stdlib:1.3.30-eap-164 FAILED
tapchicoma
04/25/2019, 8:09 AM1.3.31
) with Gradle 5.4
- plugin fails to apply with following error:
Caused by: java.lang.NoSuchMethodError: org.gradle.language.nativeplatform.internal.DefaultNativeComponent.<init>(Lorg/gradle/api/internal/file/FileOperations;)V
at org.jetbrains.kotlin.gradle.plugin.experimental.internal.AbstractKotlinNativeComponent.<init>(AbstractKotlinNativeComponent.kt:58)
at org.jetbrains.kotlin.gradle.plugin.experimental.internal.KotlinNativeMainComponent.<init>(KotlinNativeMainComponent.kt:46)
at org.jetbrains.kotlin.gradle.plugin.experimental.internal.KotlinNativeMainComponent_Decorated.<init>(Unknown Source)
at org.gradle.internal.instantiation.AsmBackedClassGenerator.newInstance(AsmBackedClassGenerator.java:153)
at org.gradle.internal.instantiation.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:363)
at org.gradle.internal.instantiation.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:48)
... 161 more
JoakimForslund
04/25/2019, 11:01 AMval bugsnagInterop by cinterops.creating {
compilerOpts("-F/Users/XXX/Source/projectX/native/libs", "-framework Bugsnag")
linkerOpts("-F/Users/XXX/Source/projectX/native/libs", "-framework Bugsnag")
}
be the same as in the def file write:
compilerOpts = -F/Users/XXX/Source/projectX/native/libs -framework Bugsnag
linkerOpts = -F/Users/XXX/Source/projectX/native/libs -framework Bugsnag
Because currently by only using the above code snippet I run into linkage problemlukaville
04/25/2019, 6:22 PMTransferMode.UNSAFE
when we properly synchronise everything using posix mutexes and we don’t have references to the objects in the passing worker?Ivan
04/25/2019, 8:15 PMDominaezzz
04/25/2019, 8:54 PMdependsOn
doesn't work.Dominaezzz
04/25/2019, 9:05 PMA.h
and B.h
. B.h
has #include "A.h"
. I want to make A.klib
and B.klib
with cinterop tool but I want B.klib
to recycle the identifiers from A.klib
so that the libraries are compatible. I think cinterop does this for platform libraries. How do I do such myself?Michael Bryant
04/25/2019, 10:26 PMJurriaan Mous
04/26/2019, 6:48 AMJurriaan Mous
04/26/2019, 6:48 AMolonho
04/26/2019, 8:47 AMJurriaan Mous
04/27/2019, 9:25 AM