pop-os / launcher

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

Build issue #184

Closed Akergez closed 1 year ago

Akergez commented 1 year ago
just build-release
cargo build -p pop-launcher-bin --release 
   Compiling serde v1.0.147
   Compiling futures-executor v0.3.25
   Compiling tokio-util v0.7.4
   Compiling pin-project v1.0.12
   Compiling smithay-client-toolkit v0.16.0 (https://github.com/Smithay/client-toolkit?rev=3776d4a#3776d4ae)
   Compiling regex v1.6.0
   Compiling digest v0.10.5
   Compiling async-io v1.10.0
   Compiling gettext-sys v0.21.3
   Compiling wayland-cursor v0.30.0
   Compiling parking_lot v0.12.1
error: failed to run custom build command for `smithay-client-toolkit v0.16.0 (https://github.com/Smithay/client-toolkit?rev=3776d4a#3776d4ae)`

Caused by:
  process didn't exit successfully: `/var/home/akergez/Downloads/launcher/target/release/build/smithay-client-toolkit-e6304839b8171e3c/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=XKBCOMMON_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=XKBCOMMON_STATIC
  cargo:rerun-if-env-changed=XKBCOMMON_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  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

  --- stderr
  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\nPackage 'xkbcommon', required by 'virtual:world', not found\n"', /var/home/akergez/.cargo/git/checkouts/client-toolkit-e56a3844de110279/3776d4a/build.rs:5:49
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: Recipe `build-debug` failed on line 32 with exit code 101
mmstick commented 1 year ago
could not find system library 'xkbcommon'

You need to install the development dependencies.

Akergez commented 1 year ago

it worked, but i have new issue

just build-release
cargo build -p pop-launcher-bin --release 
   Compiling pop-launcher-bin v1.2.1 (/var/home/akergez/Downloads/launcher/bin)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/var/home/akergez/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/var/home/akergez/.cargo/bin:/var/home/akergez/Applications/codelldb_adapter/adapter/:/var/home/akergez/Applications/node-v19.6.1-linux-x64/bin:/var/home/akergez/Applications/ffmpeg:/var/home/akergez/.local/bin:/var/home/akergez/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/home/akergez/.local/share/JetBrains/Toolbox/scripts" VSLANG="1033" "cc" "-m64" "/tmp/rustca8xmaS/symbols.o" "/var/home/akergez/Downloads/launcher/target/release/deps/pop_launcher_bin-94262194b170bb5b.pop_launcher_bin.e2cfff17-cgu.6.rcgu.o" "-Wl,--as-needed" "-L" "/var/home/akergez/Downloads/launcher/target/release/deps" "-L" "/var/home/akergez/Downloads/launcher/target/release/build/libmimalloc-sys-5960f41b3a8557c3/out" "-L" "/usr/lib64" "-L" "/var/home/akergez/Downloads/launcher/target/release/build/ring-dabc9637e897da4c/out" "-L" "/var/home/akergez/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustca8xmaS/liblibmimalloc_sys-ea55fee77775989b.rlib" "/tmp/rustca8xmaS/libring-020e2db07cafded4.rlib" "/var/home/akergez/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-919e055b306699ae.rlib" "-Wl,-Bdynamic" "-lEGL" "-ldl" "-lxkbcommon" "-lxkbcommon" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/var/home/akergez/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/var/home/akergez/Downloads/launcher/target/release/deps/pop_launcher_bin-94262194b170bb5b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -lEGL: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `pop-launcher-bin` (bin "pop-launcher-bin") due to previous error
error: Recipe `build-debug` failed on line 32 with exit code 101
Akergez commented 1 year ago

fixed by installing mesa-libGL-devel