[GH-ISSUE #76] Improve build/install instructions #2858

Closed
opened 2026-05-22 23:52:17 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @yara-blue on GitHub (Feb 11, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/76

Is your feature request related to a problem? Please describe.

Cargo install fails building atk-sys, gdk-sys and possibly more.

Describe the solution you'd like

In a utopia ironbar would not link to/need any system packages installed. It would help adoption if there where a list of ubuntu/debian packages needed to (cargo) install.

Describe alternatives you've considered

A list of the system libraries needed with their major versions.

Additional context

The following errors were emitted during compilation:

warning: `"pkg-config" "--libs" "--cflags" "atk" "atk >= 2.28"` did not exit successfully: exit status: 1

error: failed to run custom build command for `atk-sys v0.16.0`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installAm9TUy/release/build/atk-sys-b04eb869269e6d91/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=ATK_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" "atk" "atk >= 2.28"` did not exit successfully: exit status: 1
  error: could not find system library 'atk' required by the 'atk-sys' crate

  --- stderr
  Package atk was not found in the pkg-config search path.
  Perhaps you should add the directory containing `atk.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'atk' found
  Package atk was not found in the pkg-config search path.
  Perhaps you should add the directory containing `atk.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'atk' found

warning: build failed, waiting for other jobs to finish...
error: failed to compile `ironbar v0.10.0`, intermediate artifacts can be found at `/tmp/cargo-installAm9TUy`
Originally created by @yara-blue on GitHub (Feb 11, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/76 **Is your feature request related to a problem? Please describe.** > Cargo install fails building atk-sys, gdk-sys and possibly more. **Describe the solution you'd like** > In a utopia ironbar would not link to/need any system packages installed. It would help adoption if there where a list of ubuntu/debian packages needed to (cargo) install. **Describe alternatives you've considered** > A list of the system libraries needed with their major versions. **Additional context** > The following errors were emitted during compilation: ``` warning: `"pkg-config" "--libs" "--cflags" "atk" "atk >= 2.28"` did not exit successfully: exit status: 1 error: failed to run custom build command for `atk-sys v0.16.0` Caused by: process didn't exit successfully: `/tmp/cargo-installAm9TUy/release/build/atk-sys-b04eb869269e6d91/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-env-changed=ATK_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" "atk" "atk >= 2.28"` did not exit successfully: exit status: 1 error: could not find system library 'atk' required by the 'atk-sys' crate --- stderr Package atk was not found in the pkg-config search path. Perhaps you should add the directory containing `atk.pc' to the PKG_CONFIG_PATH environment variable No package 'atk' found Package atk was not found in the pkg-config search path. Perhaps you should add the directory containing `atk.pc' to the PKG_CONFIG_PATH environment variable No package 'atk' found warning: build failed, waiting for other jobs to finish... error: failed to compile `ironbar v0.10.0`, intermediate artifacts can be found at `/tmp/cargo-installAm9TUy` ```
Author
Owner

@JakeStanger commented on GitHub (Feb 11, 2023):

Hey, the only requirements should be gtk3 and gtk-layer-shell, and they should provide the rest.

I would imagine on Debian (& derivatives) you will need libgtk-3-dev and libgtk-layer-shell-dev.

gtk-layer-shell requires GTK >=3.22.0, which Debian Stretch ships, so any vaguely modern distro should have the packages. I'll get the info on the wiki soon, thanks for raising.

<!-- gh-comment-id:1426847865 --> @JakeStanger commented on GitHub (Feb 11, 2023): Hey, the only requirements should be `gtk3` and `gtk-layer-shell`, and they should provide the rest. I would imagine on Debian (& derivatives) you will need `libgtk-3-dev` and `libgtk-layer-shell-dev`. `gtk-layer-shell` requires GTK >=3.22.0, which Debian Stretch ships, so any vaguely modern distro should have the packages. I'll get the info on the wiki soon, thanks for raising.
Author
Owner

@yara-blue commented on GitHub (Feb 12, 2023):

Thanks for the help! it builds without any problem now 👍

<!-- gh-comment-id:1427078134 --> @yara-blue commented on GitHub (Feb 12, 2023): Thanks for the help! it builds without any problem now :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#2858
No description provided.