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

Nikky

11/24/2021, 11:12 AM
i am trying to use ktor 2.0 eap and kotlin 1.6.0 to build a mingw64 binary from linux.. lld fails because it cannot find
-lcurl
.. which dependency do i need to install ? i assume some
mingw-curl
or is this something to be configured in the buildscript ? for now i am trying this in archlinux on WSL2, because i can easily try the binaries on the host
a

Aleksei Tirman [JB]

11/24/2021, 12:30 PM
Try to install mingw-w64-x86_64-curl, mingw-w64-x86_64-libpsl, and mingw-w64-x86_64-clang packages. For more information please read comments on a similar issue.
n

Nikky

11/24/2021, 1:46 PM
i hope that fixes building the mingw64 on windows.. but .. the issue is about how to crosscompile the windows target from linux with libcurl dependency (as ktor adds it)