adriankumpf / tesla_auth

Securely generate API tokens for third-party access to your Tesla.
MIT License
388 stars 28 forks source link

can't compile in ubuntu focal ? #60

Closed guldil closed 1 year ago

guldil commented 1 year ago

Hi,

I tried to compil but i have dependency error :

root@virtuabox:/usr/src/teslamate/tesla_auth# cargo install --path . --locked
  Installing tesla_auth v0.6.2 (/usr/src/teslamate/tesla_auth)
    Updating crates.io index
   Compiling pkg-config v0.3.26
   Compiling serde v1.0.152
   Compiling smallvec v1.10.0
   Compiling heck v0.4.1
   Compiling cfg-expr v0.11.0
   Compiling version-compare v0.1.1
   Compiling libc v0.2.139
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.51
   Compiling quote v1.0.23
   Compiling unicode-ident v1.0.6
   Compiling syn v1.0.107
   Compiling cfg-if v1.0.0
   Compiling version_check v0.9.4
   Compiling once_cell v1.17.1
   Compiling thiserror v1.0.38
   Compiling memchr v2.5.0
   Compiling pin-project-lite v0.2.9
   Compiling futures-core v0.3.26
   Compiling toml v0.5.11
   Compiling slab v0.4.8
   Compiling system-deps v6.0.3
   Compiling futures-task v0.3.26
   Compiling glib-sys v0.16.3
   Compiling gobject-sys v0.16.3
The following warnings were emitted during compilation:

warning: `"pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.70"` did not exit successfully: exit status: 1

error: failed to run custom build command for `glib-sys v0.16.3`

Caused by:
  process didn't exit successfully: `/usr/src/teslamate/tesla_auth/target/release/build/glib-sys-a17a72efef8e5f33/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=GLIB_2.0_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
  cargo:warning=`"pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.70"` did not exit successfully: exit status: 1
  error: could not find system library 'glib-2.0' required by the 'glib-sys' crate

  --- stderr
  Requested 'glib-2.0 >= 2.70' but version of GLib is 2.64.6

warning: build failed, waiting for other jobs to finish...
error: failed to compile `tesla_auth v0.6.2 (/usr/src/teslamate/tesla_auth)`, intermediate artifacts can be found at `/usr/src/teslamate/tesla_auth/target`

i dont found a way to install glib 2.70 + ...

Thanks

Guldil

guldil commented 1 year ago

Ok i just installed a virtual machine Ubuntu 22.10 and i can compile & use tesla auth. Took me 30min...