I'm getting `ld.lld: error: unable to find library...
# kotlin-native
b
I'm getting
ld.lld: error: unable to find library -lglib-2.0
when linking for linux.
-lglib-2.0
is one of the linkerOpts. Any suggestions on what's wrong?
d
Do you know where it is on your computer? My guess would be to add
-L/usr/lib
to
linkerOpts
.
b
I do know, however I'm trying to avoid
-L
flags as i'm currently getting all libs via
pkg-config
. Also,
glib-2.0
is not found by
dpkg -L
m
Kotlin works in sysroot, so
-L
is required. With
pkg-config
it must be enabled by
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
envvar, see https://github.com/JetBrains/kotlin-native/issues/3484
168 Views