I can't install Waydroid

Install Waydroid on Manjaro KDE Plasma

I have briefly documented my attempts to Install Waydroid; purely out of curiosity. This is intended to assist in general discussion about how to build and install Waydroid on Manjaro KDE. Naturally, the reader is expected to employ common sense, and perform additional research as needed.

Important – My attempts to build Waydroid using this procedure have consistently failed when building the python-gbinder dependency.

The author encourages any knowledgeable input from the community to enhance or correct the content below as needed; preferably with substantiated evidence; so that others may have better success.

Waydroid is “a container-based approach to boot a full Android system on a regular GNU/Linux system”.

Requirements

Installing on a Manjaro KDE Plasma desktop environment is assumed.
Intel CPU’s on x86_64 (amd64) platforms seem to be highly recommended; Nvidia GPU’s are not. However, please verify your own CPU and GPU support and do your own research.

Install Wayland

The Wayland compositor is a prerequisite for installing and running Waydroid.
Install Wayland (reboot required) with this command:

sudo pacman -S plasma-wayland-session

Note: Wayland can be selected at the Login Screen (SDDM). Use the switch located at the bottom left corner of the screen, before logging in. If you previously elected to login automatically, you will need to logout immediately to reach the login screen, and then switch to Wayland, before logging in again.

Package Managers, Manjaro, and the AUR

Familiarity with the Linux command-line and use of pacman and pamac package managers is desired; as is the ability to setup and use the ArchLinux User Repository (AUR). Waydroid (for Manjaro) is only available from the AUR.

Use the AUR at your own risk as no official support will be provided if things go awry. Please also read Need-To-Know: About Manjaro and AUR for extended information and possible ramifications of using software from the AUR.

Installing Pamac GUI will also install the command-line (pamac-cli) version; which we will be using to build and install Waydroid. Additional information is available at the AUR ArchWiki Wiki page. Install Pamac (for KDE) with this command:

sudo pacman -Syu pamac pamac-tray-icon-plasma

Install Cython for Python

Waydroid has dependencies, and the build process itself has dependencies, that must be satisfied: Cython is not a built-in Python module, so it can be installed using pip or, pip3. More information. Note that building failed after installing Cython to the system using Pacman, but after using pip3 it succeeded.

pip install cython
pip3 install cython # for pip3

Note: Using just using cython would possibly install cython3 as required for the respective build.

Install Waydroid

Waydroid has the following dependencies: lxc, libglibutil, libgbinder and python-gbinder). The working theory was to build and install Waydroid (and dependencies) like this:

pamac install waydroid
  • Note:- sudo is not required using Pamac; if elevated privileges are needed Pamac will prompt for a password.

Build Failure :roll_eyes:

The process choked on building the python-gbinder dependency:

$ pamac install waydroid
...
To build (2):
  python-gbinder  1.1.2-1    AUR
  waydroid        1.4.1-1    AUR
...
Building python-gbinder...
==> Making package: python-gbinder 1.1.2-1 (Mon 02 Oct 2023 21:44:12)
...
  -> Creating working copy of python-gbinder git repo...
Cloning into 'python-gbinder'...
done.
Switched to a new branch 'makepkg'
...
==> Starting build()...
Compiling gbinder.pyx because it changed.
[1/1] Cythonizing gbinder.pyx
error: command 'gcc-11' failed: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

The failed package GitHub repository is erfanoabdi / gbinder-python and the AUR repository is python-gbinder, for anyone interested.

The AUR shows the last update to the package was 2023-10-01 :neutral_face: – yesterday, for me – after an apparent sojourn of two years.

No solution here; at least, not yet.

Comments?

1 Like