antonio-antuan / rust-tdlib

Rust client for TDlib
MIT License
57 stars 11 forks source link

cannot find -ltdjson: No such file or directory #39

Closed rsb-tbg closed 3 months ago

rsb-tbg commented 8 months ago

Hello, when I build TDLib v1.8.0 and attempt to run examples/main.rs, I get an error that states "/usr/bin/ld: cannot find -ltdjson: No such file or directory." Any idea what might cause this? Thanks.

vkomenda commented 7 months ago

I get the same error even though the tdjson lib is in the ld search path.

  = note: /usr/bin/ld: cannot find -ltdjson: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `rust-tdlib` (example "main") due to 1 previous error

$ sudo ldconfig -p | grep tdjson
    libtdjson.so.1.8.27 (libc6,x86-64) => /home/vk/src/td/tdlib/lib/libtdjson.so.1.8.27
    libtdjson.so (libc6,x86-64) => /home/vk/src/td/tdlib/lib/libtdjson.so

Any recommendations about this?