https://kotlinlang.org logo
#ktor
Title
# ktor
n

Nikky

11/30/2021, 12:21 PM
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

e5l

11/30/2021, 12:23 PM
@duuusha could you take a look?
👀 1
d

duuusha

11/30/2021, 12:34 PM
works fine for me, didn’t change any settings in a project
n

Nikky

11/30/2021, 1:08 PM
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

Aleksei Tirman [JB]

11/30/2021, 1:49 PM
This is because
ktor-client-core-mingwx64
dependency with version
2.0.0-eap-256
is missing in the Space repository.
e

e5l

12/03/2021, 2:33 PM
Hey, the issue is fixed! Could you check it again?
👀 1
n

Nikky

12/03/2021, 6:20 PM
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

Aleksei Tirman [JB]

12/06/2021, 7:49 AM
Could you please try to install the packages described here?
n

Nikky

12/06/2021, 11:30 AM
i have the packages installed already

https://nikky.catgirl.host/i/80x573uc.png

a

Aleksei Tirman [JB]

12/06/2021, 2:51 PM
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

Nikky

12/07/2021, 9:49 AM
that was a stupid typo because typing it by hand ofc its installed as
C:\msys64\
on my windows machine
3 Views