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

jk2018

02/24/2020, 10:32 PM
It's not well documented at all, but you do need to have curl installed ( how depends on the platform.). Some instructions are here: https://github.com/JetBrains/kotlin-native/tree/master/samples/libcurl
e

Etienne

02/25/2020, 2:50 PM
right, on mac I do have curl installed, and it seems to include it in the build. The
ld
call breaks after I include the (correct afaik) dependency to the ktor client-engine
It could very well be something wrong with the version of curl on my system, I guess my next step will be to build my own
curl
and point to that.
I’m mostly perplexed at
ld
giving me nothing to work with, error message wise.
I’ll share what I find, thanks for the hints 🙂
j

jk2018

02/25/2020, 7:12 PM
sorry I couldn't be of more help... But I can agree that the error messages are not too helpful. They seem to assume that you know what you need to do 🙂
e

Etienne

02/27/2020, 3:09 PM
Little update, I got my
io.ktor:ktor-client-curl
mac executable to work. For folks who might run into the same issue, my fix was to add
linkerOpts("-liconv")
via
macosX64.binaries.executable.linkerOpts("-liconv")
.
The concerning bit is that somehow the
ld
error messages do show up when using an “older” setup (with kotlin 1.3.61 and ktor 1.3.1)
ld
was erroring out without any feedback on kotlin
1.3.70-eap-274
with ktor
1.3.0-rc3-1.3.70-eap-42
. If anyone can point me in the right direction, I’d be happy to file an issue.
3 Views