It's not well documented at all, but you do need t...
# ktor
j
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
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
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
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.