I'm trying to use Sqldelight in a native project. ...
# squarelibraries
m
I'm trying to use Sqldelight in a native project. To start with its a x86_64-linux. When I run the app I get the following error:
Copy code
.konan/dependencies/llvm-16.0.0-x86_64-linux-essentials-80/bin/ld.lld command returned non-zero exit code: 1.
output:
ld.lld: error: unable to find library -lsqlite3

FAILURE: Build failed with an exception.
Should something be configured? In iOS projects I add the linkerOpts.add("-lsqlite3"), but don't know how to do this in a linux native project. Thanks
k
Do you have the SQLite dev headers installed on your machine to link against?
m
Yes:
Copy code
sudo apt-get install libsqlite3-dev
👍 1
Any one has an open source sample of a sqldelight working on linux native?