onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
511 stars 27 forks source link

Failing to compile Onagre on Ubuntu 22.04.3 LTS #62

Closed Kosteron closed 5 months ago

Kosteron commented 11 months ago

Hello, I have some issue to compile onagre on my distro, can someone help me ? :)

Here more information :

Describe the bug

linking with `cc` failed: exit status: 1

Config N/A

To Reproduce

cargo build --release

Expected behavior Successful compilation of Onagre

Screenshots

$ cargo build --release
   Compiling onagre v1.0.0-alpha.0 (/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/tmp/rustcMGQjDZ/symbols.o" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/deps/onagre-8286bb5ccf0815e7.onagre.2800c43e-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/deps" "-L" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/build/freetype-sys-709990c1870da751/out/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/build/expat-sys-6e24b5a001c47da8/out/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/build/ring-f8bd69377515e3fc/out" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcMGQjDZ/libring-ffa7d9bdb6582aad.rlib" "/tmp/rustcMGQjDZ/libexpat_sys-4dd8b4ea71460258.rlib" "/tmp/rustcMGQjDZ/libfreetype_sys-03a04523d51a373c.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-efcfa0741c74bb0a.rlib" "-Wl,-Bdynamic" "-lEGL" "-lxkbcommon" "-ldl" "-lfreetype" "-lfontconfig" "-lfreetype" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/koriastra/Developpement/git/External_Repository/Nordzy-icon/onagre/target/release/deps/onagre-8286bb5ccf0815e7" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -lEGL: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `onagre` due to previous error

Window manager (please complete the following information):

Additional context The library lxkbcommon seems to be missing , but I already have this one installed :

$ sudo apt search xkbcommon
En train de trier... Fait
Recherche en texte intégral... Fait
librust-xkbcommon-dev/jammy 0.4.0-2 amd64
  Rust bindings and wrappers for libxkbcommon - Rust source code

librust-xkbcommon-sys-dev/jammy 0.7.5-1 amd64
  Bindings to libxkbcommon - Rust source code

libxkbcommon-dev/jammy,now 1.4.0-1 amd64  [installé]
  interface de bibliothèque pour le compilateur XKB - fichiers de développement

libxkbcommon-doc/jammy,jammy 1.4.0-1 all
  library interface to the XKB compiler - documentation

libxkbcommon-tools/jammy 1.4.0-1 amd64
  library interface to the XKB compiler - tools

libxkbcommon-x11-0/jammy,now 1.4.0-1 amd64  [installé]
  bibliothèque pour créer des dispositions de claviers avec le protocole X11 XKB

libxkbcommon-x11-dev/jammy,now 1.4.0-1 amd64  [installé]
  library to create keymaps with the XKB X11 protocol - development files

libxkbcommon0/jammy,now 1.4.0-1 amd64  [installé, automatique]
  interface de bibliothèque pour le compilateur XKB - bibliothèque partagée

libxkbregistry-dev/jammy 1.4.0-1 amd64
  library to query available RMLVO - development files

libxkbregistry0/jammy 1.4.0-1 amd64
  library to query available RMLVO

Any idea ?

oknozor commented 9 months ago

Hello @Kosteron, not sure it will fix your issue but I am using lib-xkbcommon 1.5.0. Seems it's locked to 1.4.0 on ubuntu (https://packages.ubuntu.com/jammy/libxkbcommon-dev)