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

Missing Libraries when installing on Ubuntu 22.04.2 #182

Open
omarbassam88 opened this issue May 24, 2023 · 2 comments
Open

Missing Libraries when installing on Ubuntu 22.04.2 #182

omarbassam88 opened this issue May 24, 2023 · 2 comments

Comments

@omarbassam88
Copy link

The just build-release command failed two times for two reasons:
First time there was this error

 thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=\"1\" PKG_CONFIG_ALLOW_SYSTEM_LIBS=\"1\" \"pkg-config\" \"--libs\" \"--cflags\" \"xkbcommon\"` did not exit successfully: exit status: 1\nerror: could not find system library 'xkbcommon' required by the 'smithay-client-toolkit' crate\n\n--- stderr\nPackage xkbcommon was not found in the pkg-config search path.\nPerhaps you should add the directory containing `xkbcommon.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'xkbcommon' found\n"', /home/omar/.local/share/cargo/git/checkouts/client-toolkit-e56a3844de110279/3776d4a/build.rs:5:49

This was easily fixed by installing the librust-xkbcommon-dev bu running:

sudo apt install librust-xkbcommon-dev`

Then running the build again, received the Following error:

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

This was fixed by installing libegl-dev :

sudo apt install libegl-dev

I think these libraries should be added as a requirement in the read me for example or add an installation script to install them before build.

@mmstick
Copy link
Member

mmstick commented May 24, 2023

If you're on Ubuntu, you can use dpkg-buildpackage -b to build debian packages. The debian/control file in the repo lists the build dependencies for Debian/Ubuntu

@unennhexium
Copy link

mmstick, that command produce an error. I'm using master branch.

dpkg-buildpackage: info: source package pop-launcher
dpkg-buildpackage: info: source version 1.2.4
dpkg-buildpackage: info: source distribution jammy
dpkg-buildpackage: info: source changed by Michael Aaron Murphy <[email protected]>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-source: info: using options from launcher/debian/source/options: --tar-ignore=target --tar-ignore=vendor
dpkg-checkbuilddeps: error: Unmet build dependencies: cargo debhelper-compat (= 10) rustc (>= 1.65) libxkbcommon-dev libegl-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Distributor ID:	Ubuntu
Description:	Ubuntu 24.10
Release:	24.10
Codename:	oracular

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants