Hello. I try to build kotlin-native to two targets...
# kotlin-native
c
Hello. I try to build kotlin-native to two targets: linuxArm32 and linux64. I have the source:
Copy code
import 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:
Copy code
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?
d
Seems like a bug, might be worth making an issue on github.
c
Files zlib.h and zconf.h not found in Konan direction for target linuxArm32. And your workaround not working
o
Zlib is not included in platform libs of arm32 at the moment