Just in case anyone stuck with Gradle task `linkDe...
# kotlin-native
a
Just in case anyone stuck with Gradle task
linkDebugTestLinuxX64
failing with error message
e: Unable to compile C bridges
on Ubuntu: you have to install
libtinfo5
and perhaps
libtinfo-dev
packages. Wasted 1h on this problem 😞
👍 1
m
From README.md: "on recent Ubuntu apt install libncurses5 is needed"
a
Well I missed it. libncurses5 depends on libtinfo5. I installed only the last one and it works now. But thanks anyway.
s
I have been wasting one day on this , initially on MAC , even tried manual klib interop , but couldnt make it work , now dualbooted linux to confirm if issue is in my mac setup or not😶
arch users and other distros may also give a look on ncurses5-compat-libs, this worked on my linux setup
OHHH NOOOO!, I finally got it work on my linux setup , But now as trying to release my lib using JITPACK , I am encountering the same error as on my MAC,i.e,
Copy code
The /home/jitpack/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin/ld.lld command returned non-zero exit code: 1.
output:
ld.lld: error: unable to find library -lcurl
Any help is appreciated. @Arkadii Ivanov have you encountered such error?
a
I think Jitpack does not support multiplatform libraries yet, or maybe they have something partially working now, not sure. Anyway I raised the issue a while ago. Better to report this error there, looks like they are missing some essential libs.
But please consider publishing to Maven Central, it is not that hard. This article helps a lot.
👍 1