Skip to content

Getting an error when trying to include this lib in my project #33

@mxaddict

Description

@mxaddict
Γ¥» cargo build
   Compiling native-tls v0.2.11
   Compiling sqlx-mysql v0.7.2
   Compiling crypto-hash v0.3.4
   Compiling tdlib v0.10.0
   Compiling chromiumoxide v0.5.4
error: failed to run custom build command for `tdlib v0.10.0`

Caused by:
  process didn't exit successfully: `/home/mxaddict/projects/deep/rusty-data/target/debug/build/tdlib-70396f3ece8ac5da/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=TDJSON_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PkgConfig(`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "tdjson" "tdjson >= 1.8.19"` did not exit successfully: exit status: 1
  error: could not find system library 'tdjson' required by the 'tdlib' crate

  --- stderr
  Package tdjson was not found in the pkg-config search path.
  Perhaps you should add the directory containing `tdjson.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'tdjson' found
  Package tdjson was not found in the pkg-config search path.
  Perhaps you should add the directory containing `tdjson.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'tdjson' found
  )', /home/mxaddict/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tdlib-0.10.0/build.rs:39:40
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Is there a package that I need to install to be able to compile the tdlib dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions