end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.06k stars 196 forks source link

[Issue] [./install.sh]: Command "meson setup build --reconfigure" has failed. #617

Closed andr3i1010 closed 2 weeks ago

andr3i1010 commented 2 weeks ago

The issue

A while after I execute the install script, AGS fails to compile with the error subprojects/gvc/meson.build:30:21: ERROR: Dependency 'glib-2.0' tool variable 'glib_mkenums' contains erroneous value: '/usr/bin/glib-mkenums'

I already have installed glib with sudo pacman -S glib2, but it still doesn't work

Logs ```plain [./install.sh]: Next command: sudo usermod -aG video,i2c,input andrei1010 [./install.sh]: Command "sudo usermod -aG video,i2c,input andrei1010" finished. #################################################### [./install.sh]: Next command: bash -c echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf i2c-dev [./install.sh]: Command "bash -c echo i2c-dev | sudo tee /etc/modules-load.d/i2c-dev.conf" finished. #################################################### [./install.sh]: Next command: systemctl --user enable ydotool --now [./install.sh]: Command "systemctl --user enable ydotool --now" finished. [./install.sh]: 2. Installing parts from source repo [./install.sh]: The definition of function "install-ags" is as follows: install-ags is a function install-ags () { x mkdir -p $base/cache/ags; x cd $base/cache/ags; try git init -b main; try git remote add origin https://github.com/Aylur/ags.git; x git pull origin main && git submodule update --init --recursive; x git checkout 05e0f23534fa30c1db2a142664ee8f71e38db260; x npm install; x meson setup build --reconfigure; x meson install -C build; x cd $base } #################################################### [./install.sh]: Next command: install-ags [./install.sh]: Command "mkdir -p /home/andrei1010/.cache/dots-hyprland/cache/ags" finished. [./install.sh]: Command "cd /home/andrei1010/.cache/dots-hyprland/cache/ags" finished. warning: re-init: ignored --initial-branch=main Reinitialized existing Git repository in /home/andrei1010/.cache/dots-hyprland/cache/ags/.git/ error: remote origin already exists. From https://github.com/Aylur/ags * branch main -> FETCH_HEAD Updating 05e0f23..1115022 Fast-forward src/widgets/slider.ts | 1 + 1 file changed, 1 insertion(+) [./install.sh]: Command "git pull origin main" finished. Previous HEAD position was 1115022 fix #415: missing vertical prop on slider HEAD is now at 05e0f23 specify GIRepository version #412 [./install.sh]: Command "git checkout 05e0f23534fa30c1db2a142664ee8f71e38db260" finished. up to date, audited 167 packages in 938ms 33 packages are looking for funding run `npm fund` for details 1 high severity vulnerability To address all issues, run: npm audit fix Run `npm audit` for details. [./install.sh]: Command "npm install" finished. The Meson build system Version: 1.4.1 Source dir: /home/andrei1010/.cache/dots-hyprland/cache/ags Build dir: /home/andrei1010/.cache/dots-hyprland/cache/ags/build Build type: native build WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 Project name: ags Project version: 1.8.2 C compiler for the host machine: cc (gcc 14.1.1 "cc (GCC) 14.1.1 20240522") C linker for the host machine: cc ld.bfd 2.42.0 Host machine cpu family: x86_64 Host machine cpu: x86_64 Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1 Run-time dependency glib-2.0 found: YES 2.80.3 Run-time dependency gobject-introspection-1.0 found: YES 1.80.1 Run-time dependency gio-2.0 found: YES 2.80.3 Run-time dependency gjs-1.0 found: YES 1.80.2 Run-time dependency gtk+-3.0 found: YES 3.24.42 Executing subproject gvc gvc| Project name: gvc gvc| Project version: undefined gvc| C compiler for the host machine: cc (gcc 14.1.1 "cc (GCC) 14.1.1 20240522") gvc| C linker for the host machine: cc ld.bfd 2.42.0 gvc| Dependency glib-2.0 found: YES 2.80.3 (cached) gvc| Program /usr/bin/glib-mkenums found: NO subprojects/gvc/meson.build:30:21: ERROR: Dependency 'glib-2.0' tool variable 'glib_mkenums' contains erroneous value: '/usr/bin/glib-mkenums' This is a distributor issue -- please report it to your glib-2.0 provider. A full log can be found at /home/andrei1010/.cache/dots-hyprland/cache/ags/build/meson-logs/meson-log.txt [./install.sh]: Command "meson setup build --reconfigure" has failed. You may need to resolve the problem manually BEFORE repeating this command. r = Repeat this command (DEFAULT) e = Exit now i = Ignore this error and continue (your setup might not work correctly) [R/e/i]: ```
clsty commented 2 weeks ago

Can't reproduce... Though I've synced the build command with ags wiki (i.e. remove the --reconfigure arg).

clsty commented 2 weeks ago

Ok, I think I've found the problem. Please install glib2-devel.

MNDIA commented 2 weeks ago

好吧,我想我已经找到问题了。 请安装 glib2-devel

I had the same problem. Installing `glib2-devel' solved it, and this is the correct solution

clsty commented 2 weeks ago

@end-4 I've added PKGBUILD for AGS. For sure it's only for Arch(based) distros.

To do version controlling for AGS, now you need to edit the value of source of /arch-packages/illogical-impulse-ags/PKGBUILD. And also for non-arch distros, still edit /scriptdata/installers for now.


In the future, for Arch(based) distro, the /scriptdata/installers should be deprecated totally in favor of local PKGBUILD. This is much cleaner and also solves #603 .

clsty commented 2 weeks ago

The issue should have been solved now. Closing.