pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
219 stars 42 forks source link

Missing Libraries when installing on Ubuntu 22.04.2 #182

Open omarbassam88 opened 1 year ago

omarbassam88 commented 1 year ago

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 commented 1 year ago

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