Closed merajmasuk closed 1 year ago
I think that line in the justfile can probably be removed, along with the meson function below. Could you try that?
there are a couple of references to meson here and there, but cosmic-epoch builds without meson.
I don't think it's related to mason, but I'm receiving this error at the moment
= note: /usr/bin/ld: cannot find -lgbm: No such file or directory
collect2: error: ld returned 1 exit status
Edit: I found out that I needed to install libgbm-dev before building.
This error occurred:
error: failed to run custom build command for `clang-sys v1.6.1`
Caused by:
process didn't exit successfully: `/home/meraj/cosmic-epoch/xdg-desktop-portal-cosmic/target/release/build/clang-sys-4f3333257b3b6593/build-script-build` (exit status: 101)
--- stdout
cargo:warning=could not execute `llvm-config` one or more times, if the LLVM_CONFIG_PATH environment variable is set to a full path to valid `llvm-config` executable it will be used to try to find an instance of `libclang` on your system: "couldn't execute `llvm-config --prefix` (path=llvm-config) (error: No such file or directory (os error 2))"
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /home/meraj/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.6.1/build/dynamic.rs:206:45
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I already have libclang on my system
$ dpkg -l | grep clang
ii clang 1:14.0-55~exp2 amd64 C, C++ and Objective-C compiler (LLVM based), clang binary
ii clang-14 1:14.0.0-1ubuntu1 amd64 C, C++ and Objective-C compiler
ii libclang-common-14-dev 1:14.0.0-1ubuntu1 amd64 Clang library - Common development package
ii libclang-cpp11 1:11.1.0-6 amd64 C++ interface to the Clang library
ii libclang-cpp14 1:14.0.0-1ubuntu1 amd64 C++ interface to the Clang library
ii libclang1:amd64 1:14.0-55~exp2 amd64 C, C++ and Objective-C compiler (LLVM based)
ii libclang1-14 1:14.0.0-1ubuntu1 amd64 C interface to the Clang library
Do I need to install the libclang-dev
package?
Yeah the dev packages are required
Had to install meson additionally because my system didn't have it. Otherwise the following error appears: