does anyone have a working ktor-client-native sample ? this one: <https://github.com/ktorio/ktor-sam...
n
does anyone have a working ktor-client-native sample ? this one: https://github.com/ktorio/ktor-samples/tree/main/native-client is not finding some dependencies apparently, upgrading to a newer ABI version and upgrade to kotlin 1.6.0
e
@duuusha could you take a look?
👀 1
d
works fine for me, didn’t change any settings in a project
n
i get this when i try to compile:

https://nikky.catgirl.host/i/i9grt6su.pngâ–¾

Copy code
Execution failed for task ':compileKotlinNative'.
> Could not resolve all files for configuration ':nativeCompileKlibraries'.
   > Could not find io.ktor:ktor-client-curl-mingwx64:2.0.0-eap-256.
     Searched in the following locations:
       - <https://repo.maven.apache.org/maven2/io/ktor/ktor-client-curl-mingwx64/2.0.0-eap-256/ktor-client-curl-mingwx64-2.0.0-eap-256.pom>
       - <https://maven.pkg.jetbrains.space/public/p/ktor/eap/io/ktor/ktor-client-curl-mingwx64/2.0.0-eap-256/ktor-client-curl-mingwx64-2.0.0-eap-256.pom>
     Required by:
         project : > io.ktor:ktor-client-curl:2.0.0-eap-256
   > Could not find io.ktor:ktor-client-core-mingwx64:2.0.0-eap-256.
     Searched in the following locations:
       - <https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core-mingwx64/2.0.0-eap-256/ktor-client-core-mingwx64-2.0.0-eap-256.pom>
       - <https://maven.pkg.jetbrains.space/public/p/ktor/eap/io/ktor/ktor-client-core-mingwx64/2.0.0-eap-256/ktor-client-core-mingwx64-2.0.0-eap-256.pom>
     Required by:
         project : > io.ktor:ktor-client-core:2.0.0-eap-256

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
a
This is because
ktor-client-core-mingwx64
dependency with version
2.0.0-eap-256
is missing in the Space repository.
e
Hey, the issue is fixed! Could you check it again?
👀 1
n
well the dependency is there now.. still no luck in building a working binary.. the mingw/msys that kotlin-native uses just has no libcurl installed and it seems to not fall back to the one installed into C:\msys2\ it seems
a
Could you please try to install the packages described here?
n
i have the packages installed already

https://nikky.catgirl.host/i/80x573uc.pngâ–¾

a
You probably need to add a directory where
libcurl
is located to
PATH
I don't see in our build configuration a path that starts with
C:\msys2
:
Copy code
c:\msys64\mingw64\bin;c:\tools\msys64\mingw64\bin;C:\Tools\msys2\mingw64\bin
n
that was a stupid typo because typing it by hand ofc its installed as
C:\msys64\
on my windows machine