Replies: 1 comment 11 replies
-
It's likely you are missing pkg-config for this |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
using WSL Ubuntu 20.04.6 LTS
for a while now I have been trying to cross compile my project with a specific GLIBC version on my target system.
I think
zigbuild
is exactly what I am looking for and I tried to follow the instructions and compile my program.From the root directory of my project I run
cargo zigbuild --bin defect_map --release --target i686-unknown-linux-gnu
(omitting the specific GLIBC version for the minimal example) and the compilation fails at the very last step, requiring the SQLITE development library:= note: ld.lld: error: unable to find library -lsqlite3
.I have checked my installation of the package
dpkg -L libsqlite3-dev:i386
and everything is where it is supposed to be.The library for the target system is under
/usr/lib/i386-linux-gnu
which is also configured in/etc/ld.so.conf.d/i386-linux-gnu.conf
. Similarly the library exists for my host system, but I do not know if this is relevant for the cross compilation step.So how can I tell
zigbuild
where to look for the library?Best regards
Beta Was this translation helpful? Give feedback.
All reactions