Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The system library gdk-3.0 required by crate gdk-sys was not found #165

Open
Gerben-T opened this issue Nov 28, 2024 · 7 comments
Open
Labels
type: bug Something isn't working

Comments

@Gerben-T
Copy link

Gerben-T commented Nov 28, 2024

Edit: See #165 (comment) for the solution to all the errors

Describe the bug

After following all the steps in https://github.com/glzr-io/zebar/blob/main/CONTRIBUTING.md i got the following error after running pnpm dev

packages/desktop dev: error: failed to run custom build command for `gdk-sys v0.18.0`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/gdk-sys-91fbbfa933502fa6/build-script-build` (exit status: 1)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rerun-if-env-changed=GDK_3.0_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   --- stderr
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags gdk-3.0 gdk-3.0 >= 3.22
packages/desktop dev:   The system library `gdk-3.0` required by crate `gdk-sys` was not found.
packages/desktop dev:   The file `gdk-3.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `gdk-3.0.pc`.

and this one

packages/desktop dev: error: failed to run custom build command for `pango-sys v0.18.0`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/pango-sys-35b7839c93b74e1f/build-script-build` (exit status: 1)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rerun-if-env-changed=PANGO_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:warning=
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags pango pango >= 1.40
packages/desktop dev:   The system library `pango` required by crate `pango-sys` was not found.
packages/desktop dev:   The file `pango.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `pango.pc`.

Reproduction

follow the steps in https://github.com/glzr-io/zebar/blob/main/CONTRIBUTING.md

Stack trace or error logs (if applicable)

No response

Version number

8227e25

@Gerben-T Gerben-T added the type: bug Something isn't working label Nov 28, 2024
@github-project-automation github-project-automation bot moved this to 📬 Needs triage in zebar Nov 28, 2024
@Gerben-T
Copy link
Author

i resolved this by running:

sudo apt-get install build-essential libgtk-3-dev
pnpm dev

but this caused another error

packages/desktop dev: warning: [email protected]: Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the compilation process. See stderr section below for further information.
packages/desktop dev: error: failed to run custom build command for `openssl-sys v0.9.104`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/openssl-sys-3c95c8948d4d1e90/build-script-main` (exit status: 101)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rustc-check-cfg=cfg(osslconf, values("OPENSSL_NO_OCB", "OPENSSL_NO_SM4", "OPENSSL_NO_SEED", "OPENSSL_NO_CHACHA", "OPENSSL_NO_CAST", "OPENSSL_NO_IDEA", "OPENSSL_NO_CAMELLIA", "OPENSSL_NO_RC4", "OPENSSL_NO_BF", "OPENSSL_NO_PSK", "OPENSSL_NO_DEPRECATED_3_0", "OPENSSL_NO_SCRYPT", "OPENSSL_NO_SM3", "OPENSSL_NO_RMD160", "OPENSSL_NO_EC2M", "OPENSSL_NO_OCSP", "OPENSSL_NO_CMS", "OPENSSL_NO_COMP", "OPENSSL_NO_SOCK", "OPENSSL_NO_STDIO", "OPENSSL_NO_EC", "OPENSSL_NO_SSL3_METHOD", "OPENSSL_NO_KRB5", "OPENSSL_NO_TLSEXT", "OPENSSL_NO_SRP", "OPENSSL_NO_RFC3779", "OPENSSL_NO_SHA", "OPENSSL_NO_NEXTPROTONEG", "OPENSSL_NO_ENGINE", "OPENSSL_NO_BUF_FREELISTS"))
packages/desktop dev:   cargo:rustc-check-cfg=cfg(openssl)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(boringssl)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl250)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl251)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl252)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl261)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl270)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl271)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl273)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl280)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl281)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl291)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl310)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl321)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl332)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl340)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl350)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl360)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl361)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl370)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl380)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl381)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl382)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl390)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(libressl400)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl101)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl102)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl102f)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl102h)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl110)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl110f)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl110g)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl110h)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl111)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl111b)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl111c)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl111d)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl300)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl310)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl320)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl330)
packages/desktop dev:   cargo:rustc-check-cfg=cfg(ossl340)
packages/desktop dev:   cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
packages/desktop dev:   X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
packages/desktop dev:   OPENSSL_LIB_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
packages/desktop dev:   X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
packages/desktop dev:   OPENSSL_INCLUDE_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
packages/desktop dev:   X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_DIR
packages/desktop dev:   OPENSSL_DIR unset
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_STATIC
packages/desktop dev:   cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   Could not find openssl via pkg-config:
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags openssl
packages/desktop dev:   The system library `openssl` required by crate `openssl-sys` was not found.
packages/desktop dev:   The file `openssl.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `openssl.pc`.
packages/desktop dev:   cargo:warning=Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the compilation process. See stderr section below for further information.
packages/desktop dev:   --- stderr
packages/desktop dev:   Could not find directory of OpenSSL installation, and this `-sys` crate cannot
packages/desktop dev:   proceed without this knowledge. If OpenSSL is installed and this crate had
packages/desktop dev:   trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
packages/desktop dev:   compilation process.
packages/desktop dev:   Make sure you also have the development packages of openssl installed.
packages/desktop dev:   For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
packages/desktop dev:   If you're in a situation where you think the directory *should* be found
packages/desktop dev:   automatically, please open a bug at https://github.com/sfackler/rust-openssl
packages/desktop dev:   and include information about your system as well as this message.
packages/desktop dev:   $HOST = x86_64-unknown-linux-gnu
packages/desktop dev:   $TARGET = x86_64-unknown-linux-gnu
packages/desktop dev:   openssl-sys = 0.9.104

@Gerben-T
Copy link
Author

but this caused another error

resolved this with

sudo apt-get install pkg-config libssl-dev

and got yet another error

packages/desktop dev: warning: [email protected]:
packages/desktop dev: error: failed to run custom build command for `javascriptcore-rs-sys v1.1.1`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/javascriptcore-rs-sys-2cf259cc52ac6887/build-script-build` (exit status: 1)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rerun-if-env-changed=JAVASCRIPTCOREGTK_4.1_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:warning=
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags javascriptcoregtk-4.1 javascriptcoregtk-4.1 >= 2.38
packages/desktop dev:   The system library `javascriptcoregtk-4.1` required by crate `javascriptcore-rs-sys` was not found.
packages/desktop dev:   The file `javascriptcoregtk-4.1.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `javascriptcoregtk-4.1.pc`.

@Gerben-T
Copy link
Author

and got yet another error

resolved with

sudo apt install pkg-config libglib2.0-dev libjavascriptcoregtk-4.1-dev

and another error (i'm just gonna keep posting this in seperate messages, after the last one i'll summarize all the commands that were needed to run)

packages/desktop dev: warning: [email protected]:
packages/desktop dev: error: failed to run custom build command for `soup3-sys v0.5.0`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/soup3-sys-978c39968d6acc4d/build-script-build` (exit status: 1)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rerun-if-env-changed=LIBSOUP_3.0_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:warning=
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libsoup-3.0 libsoup-3.0 >= 3.0
packages/desktop dev:   The system library `libsoup-3.0` required by crate `soup3-sys` was not found.
packages/desktop dev:   The file `libsoup-3.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libsoup-3.0.pc`.

@Gerben-T
Copy link
Author

and another error

resolved with

sudo apt-get install libsoup-3.0-dev

another error

packages/desktop dev: warning: [email protected]:
packages/desktop dev: error: failed to run custom build command for `webkit2gtk-sys v2.0.1`
packages/desktop dev: Caused by:
packages/desktop dev:   process didn't exit successfully: `/home/gerben/projects/zebar/target/debug/build/webkit2gtk-sys-630acd9e65f1dbe0/build-script-build` (exit status: 1)
packages/desktop dev:   --- stdout
packages/desktop dev:   cargo:rerun-if-env-changed=WEBKIT2GTK_4.1_NO_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_PATH
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
packages/desktop dev:   cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
packages/desktop dev:   cargo:warning=
packages/desktop dev:   pkg-config exited with status code 1
packages/desktop dev:   > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags webkit2gtk-4.1 webkit2gtk-4.1 >= 2.40
packages/desktop dev:   The system library `webkit2gtk-4.1` required by crate `webkit2gtk-sys` was not found.
packages/desktop dev:   The file `webkit2gtk-4.1.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
packages/desktop dev:   The PKG_CONFIG_PATH environment variable is not set.
packages/desktop dev:   HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `webkit2gtk-4.1.pc`.

@Gerben-T
Copy link
Author

another error

Resolved with

sudo apt-get install webkit2gtk-4.1

Another error

packages/desktop dev: 2024-11-28T09:04:19.420250Z  INFO zebar::widget_factory: Creating window for widget #1 from /home/gerben/projects/zebar/examples/starter/vanilla.zebar.json
packages/desktop dev: libEGL warning: failed to open /dev/dri/renderD128: Permission denied
packages/desktop dev: 2024-11-28T09:04:23.111235Z  INFO zebar::widget_factory: Positioning widget to PhysicalSize { width: 2560, height: 40 } PhysicalPosition { x: 0, y: 0 }
packages/desktop dev: 2024-11-28T09:04:23.111475Z  INFO zebar::widget_factory: Creating window for widget #2 from /home/gerben/projects/zebar/examples/starter/vanilla.zebar.json
packages/desktop dev: 2024-11-28T09:04:23.114084Z  INFO zebar::widget_factory: Positioning widget to PhysicalSize { width: 2560, height: 40 } PhysicalPosition { x: 2560, y: 0 }
packages/desktop dev: thread 'main' panicked at /home/gerben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libappindicator-sys-0.9.0/src/lib.rs:41:5:
packages/desktop dev: Failed to load ayatana-appindicator3 or appindicator3 dynamic library
packages/desktop dev: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory
packages/desktop dev: libappindicator3.so.1: cannot open shared object file: No such file or directory
packages/desktop dev: libayatana-appindicator3.so: cannot open shared object file: No such file or directory
packages/desktop dev: libappindicator3.so: cannot open shared object file: No such file or directory
packages/desktop dev: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
packages/desktop dev: npm error Lifecycle script `tauri` failed with error:
packages/desktop dev: npm error code 101
packages/desktop dev: npm error path /home/gerben/projects/zebar/packages/desktop
packages/desktop dev: npm error workspace @zebar/[email protected]
packages/desktop dev: npm error location /home/gerben/projects/zebar/packages/desktop
packages/desktop dev: npm error command failed
packages/desktop dev: npm error command sh -c tauri dev -- -- startup --config-dir=../../examples
packages/desktop dev: Failed

@Gerben-T
Copy link
Author

Gerben-T commented Nov 28, 2024

Another error

resolved with

sudo apt install libayatana-appindicator3-dev

after this i got a dev build

So i guess these dependencies should be added to https://github.com/glzr-io/zebar/blob/main/CONTRIBUTING.md

sudo apt install build-essential pkg-config libgtk-3-dev libssl-dev libjavascriptcoregtk-4.1-dev libglib2.0-dev webkit2gtk-4.1 libsoup-3.0-dev libayatana-appindicator3-dev

@Gerben-T
Copy link
Author

Was running this on WSL, moving away to Windows (cmd) resolves all these issues (needed to be on windows anyway for creating a windows compatible build)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: 📬 Needs triage
Development

No branches or pull requests

1 participant