Trying to install waydroid but was looking for glib.h

Hi,

I am new here and thanks for your help.
I am trying to run android apps on system (Manjaro KDE Plasma - wayland) .
But when i try to install the waydroid it shows error during build and i am not sure what is it.

   ~  yay -S waydroid                                                                                ✔ 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  waydroid-1.4.0-2
[Aur Make:3]  libglibutil-1.0.68-1  libgbinder-1.1.32-1  python-gbinder-1.1.1-2

:: Remove make dependencies after install? [y/N] n
  4 libglibutil                              (Build Files Exist)
  3 libgbinder                               (Build Files Exist)
  2 python-gbinder                           (Build Files Exist)
  1 waydroid                                 (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: PKGBUILD up to date, Skipping (4/0): libglibutil, libgbinder, python-gbinder, waydroid
  4 libglibutil                              (Build Files Exist)
  3 libgbinder                               (Build Files Exist)
  2 python-gbinder                           (Build Files Exist)
  1 waydroid                                 (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/4) Parsing SRCINFO: libglibutil
:: (2/4) Parsing SRCINFO: libgbinder
:: (3/4) Parsing SRCINFO: python-gbinder
:: (4/4) Parsing SRCINFO: waydroid
==> Making package: waydroid 1.4.0-2 (Huw 16 Mar 2023 04:15:28 N.H.)
==> Retrieving sources...
  -> Cloning waydroid git repo...
Cloning into bare repository '/home/molim/.cache/yay/waydroid/waydroid'...
==> Making package: libglibutil 1.0.68-1 (Huw 16 Mar 2023 04:15:29 N.H.)
==> Retrieving sources...
  -> Cloning libglibutil git repo...
Cloning into bare repository '/home/molim/.cache/yay/libglibutil/libglibutil'...
==> Making package: python-gbinder 1.1.1-2 (Huw 16 Mar 2023 04:15:29 N.H.)
==> Retrieving sources...
==> Making package: libgbinder 1.1.32-1 (Huw 16 Mar 2023 04:15:29 N.H.)
==> Retrieving sources...
  -> Cloning python-gbinder git repo...
Cloning into bare repository '/home/molim/.cache/yay/python-gbinder/python-gbinder'...
  -> Cloning libgbinder git repo...
Cloning into bare repository '/home/molim/.cache/yay/libgbinder/libgbinder'...
remote: Enumerating objects: 2549, done.
remote: Counting objects: 100% (2549/2549), done.
remote: Compressing objects: 100% (816/816), done.
remote: Total 2549 (delta 1708), reused 2481 (delta 1679), pack-reused 0
Receiving objects: 100% (2549/2549), 851.72 KiB | 4.11 MiB/s, done.
Resolving deltas: 100% (1708/1708), done.
  -> Found gbinder.conf
==> Validating source files with sha256sums...
    waydroid ... Skipped
    gbinder.conf ... Passed
remote: Enumerating objects: 1520, done.
remote: Counting objects: 100% (132/132), done.
remote: Compressing objects: 100% (86/86), done.
remote: Enumerating objects: 86, done.
remote: Counting objects: 100% (51/51), done.
remote: Enumerating objects: 3268, done.
remote: Counting objects: 100% (902/902), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 86 (delta 31), reused 32 (delta 24), pack-reused 35
Receiving objects: 100% (86/86), 44.00 KiB | 1.22 MiB/s, done.
Resolving deltas: 100% (36/36), done./291)
remote: Compressing objects: 100% (291/291), done.
==> Validating source files with sha512sums...
Skippedng objects:  95% (1444/1520)jects:  88% (1338/1520)
remote: Total 1520 (delta 64), reused 88 (delta 36), pack-reused 1388
Receiving objects: 100% (1520/1520), 279.38 KiB | 2.82 MiB/s, done.
Resolving deltas: 100% (958/958), done.
==> Validating source files with sha512sums...
    libglibutil ... Skipped
remote: Total 3268 (delta 649), reused 795 (delta 594), pack-reused 2366
Receiving objects: 100% (3268/3268), 1.12 MiB | 6.51 MiB/s, done.
Resolving deltas: 100% (2100/2100), done.
==> Validating source files with sha512sums...
    libgbinder ... Skipped
==> Making package: libglibutil 1.0.68-1 (Huw 16 Mar 2023 04:15:38 N.H.)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating libglibutil git repo...
==> Validating source files with sha512sums...
    libglibutil ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of libglibutil git repo...
Cloning into 'libglibutil'...
done.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Sources are ready.
==> Making package: libglibutil 1.0.68-1 (Huw 16 Mar 2023 04:15:48 N.H.)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
mkdir -p build/release
sed -e 's|@version@|1.0.68|g' -e 's|@libdir@|/usr/lib|g' libglibutil.pc.in > build/libglibutil.pc
make: pkg-config: No such file or directory
cc -c -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -Wall -Iinclude -MMD -MP  -g -O2 -MT"build/release/gutil_history.o" -MF"build/release/gutil_history.d" src/gutil_history.c -o build/release/gutil_history.o
make: pkg-config: No such file or directory
cc -c -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection  -Wall -Iinclude -MMD -MP  -g -O2 -MT"build/release/gutil_idlepool.o" -MF"build/release/gutil_idlepool.d" src/gutil_idlepool.c -o build/release/gutil_idlepool.o
make: pkg-config: No such file or directory
In file included from include/gutil_idlepool.h:36,
                 from src/gutil_idlepool.c:33:
include/gutil_types.h:36:10: fatal error: glib.h: No such file or directory
   36 | #include <glib.h>
      |          ^~~~~~~~
In file included from include/gutil_history.h:36,
                 from src/gutil_history.c:33:
include/gutil_types.h:36:10: fatal error: glib.h: No such file or directory
   36 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
compilation terminated.
make: *** [Makefile:184: build/release/gutil_history.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:184: build/release/gutil_idlepool.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: libglibutil

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

pamac build waydroid

thanks alot bro varikonniemi I already installed it and got this instead.

    ~  waydroid session start                ✔ 
[18:02:08] WAYLAND_DISPLAY is not set, defaulting to "wayland-0"
[18:02:08] Wayland socket '/run/user/1000/wayland-0' doesn't exist; are you running a Wayland compositor?

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

that is entirely different problem, so make another thread

Welcome to the forum! :wave:

Reading the log you posted tells you what happened:

It’s not a problem with waydroid, one of it’s dependencies failed to build.

Why do you think pamac would succeed when yay failed? Remember, any AUR helper is just a pamcan wrapper. They both use makepkg to build and would fail for the same reason.

By doing what? Without telling us how you actually figured it out, this thread is completely useless. When people search and find this thread, it will be a waste of their time to read it.

I’ve unmarked the solution and hidden this post for now.

As @varikonniemi mentioned, if you still need help after reading Waydroid - ArchWiki, please create another thread for help with actually using Waydroid.

because AFAIK pamac tries to manage all dependencies automatically, while yay does apparently not manage to do it here. From what i understood only glib2 was missing here causing the error.

Maybe yay only handles dependencies listed in the package info, while pamac hadles also secondary build dependency issues?

glib2 was not missing as libglibutil depends on it.

then the issue was

make: pkg-config: No such file or directory

and fixed by pamac installing pkgconf

You were / are missing the prerequisites for using the AUR.

Please see:

1 Like