Hi, I am trying to use `ktor-client-curl` in a l...
# ktor
j
Hi, I am trying to use
ktor-client-curl
in a linux arm64 project, and I get loads of errors with linking, I checked out the source code and ran
ktor:ktor-client:ktor-client-curl [linuxArm64TestBinaries]
I receive the same error I do in my project. Here are the errors I receive when pointing to the libcurl from the repo: linker issues I tried building in a dockerised arm64 VM, to see if that would work, but then the kotlin native compiler is unavailable there, so am back to square one. 1. Any ideas if there are any flags I can pass to linkerOpts / compilerArgs to make it compile? 2. I have an arm64 HTTP / websocket client library using Civet, that maybe I could mangle in to an engine, is there any documentation for creating custom engines?
a
1. Any ideas if there are any flags I can pass to linkerOpts / compilerArgs to make it compile?
Can you try to link against another version of libcurl?
is there any documentation for creating custom engines?
Unfortunately, there is no official documentation describing the development of the custom engines. You can use the source of the
Curl
engine as an example.
j
I have tried against a version I got when I installed,
libcurl4-gnutls-dev
, but had the same issue there too
@Aleksei Tirman [JB] I have found a fix, I had to recompile libcurl with gcc-8 https://github.com/ktorio/ktor/pull/4424 I have tested and I can now use it successfully
👍 1