Can't build Android webview

99 views
Skip to first unread message

Arseniy Maryin

unread,
Feb 8, 2022, 4:00:59 AM2/8/22
to Chromium-discuss
I want to build Android webview for arm64.

when I try to execute ./build/install-build-deps.sh, I got this output:

Running as non-root user.
You might have to enter your password one or more times for 'sudo'.

[sudo] password for irbis:
Hit:1 http://ru.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40,7 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66,2 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2 464 B]
Fetched 223 kB in 1s (372 kB/s)    
Reading package lists... Done
Building apt package list.
Skipping debugging symbols.
Skipping 32-bit libraries.
Skipping ARM cross toolchain.
Skipping NaCl, NaCl toolchain, NaCl ports dependencies.
Finding missing packages...
Packages required:  apache2-bin binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bison bzip2 cdbs curl dbus-x11 devscripts dpkg-dev elfutils fakeroot flex git-core gperf lib32gcc-s1 lib32stdc++6 libapache2-mod-php7.4 libasound2 libasound2-dev libatk1.0-0 libatspi2.0-0 libatspi2.0-dev libbluetooth-dev libbrlapi0.7 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-dev libc6-i386 libcairo2 libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm2 libdrm-dev libelf-dev libevdev2 libevdev-dev libexpat1 libffi7 libffi-dev libfontconfig1 libfreetype6 libgbm1 libgbm-dev libglib2.0-0 libglib2.0-dev libglu1-mesa-dev libgtk-3-0 libgtk-3-dev libinput10 libinput-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango-1.0-0 libpci3 libpci-dev libpcre3 libpixman-1-0 libpng16-16 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libuuid1 libva-dev libvulkan1 libvulkan-dev libwayland-egl1-mesa libwww-perl libx11-6 libx11-xcb1 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon-dev libxrandr2 libxrender1 libxshmfence-dev libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst-dev locales mesa-common-dev openbox p7zip patch perl php7.4-cgi pkg-config python2-dev python-crypto python-is-python2 python-numpy python-openssl python-psutil python-setuptools python-yaml rpm ruby snapcraft subversion uuid-dev wdiff x11-utils xcompmgr xz-utils zip zlib1g

E: Unable to correct problems, you have held broken packages.
The following command failed:  apt-get --just-print install apache2-bin binutils binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf binutils-mips64el-linux-gnuabi64 binutils-mipsel-linux-gnu bison bzip2 cdbs curl dbus-x11 devscripts dpkg-dev elfutils fakeroot flex git-core gperf lib32gcc-s1 lib32stdc++6 libapache2-mod-php7.4 libasound2 libasound2-dev libatk1.0-0 libatspi2.0-0 libatspi2.0-dev libbluetooth-dev libbrlapi0.7 libbrlapi-dev libbz2-1.0 libbz2-dev libc6 libc6-dev libc6-i386 libcairo2 libcairo2-dev libcap2 libcap-dev libcups2 libcups2-dev libcurl4-gnutls-dev libdrm2 libdrm-dev libelf-dev libevdev2 libevdev-dev libexpat1 libffi7 libffi-dev libfontconfig1 libfreetype6 libgbm1 libgbm-dev libglib2.0-0 libglib2.0-dev libglu1-mesa-dev libgtk-3-0 libgtk-3-dev libinput10 libinput-dev libjpeg-dev libkrb5-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libpam0g libpam0g-dev libpango-1.0-0 libpci3 libpci-dev libpcre3 libpixman-1-0 libpng16-16 libpulse0 libpulse-dev libsctp-dev libspeechd2 libspeechd-dev libsqlite3-0 libsqlite3-dev libssl-dev libstdc++6 libudev1 libudev-dev libuuid1 libva-dev libvulkan1 libvulkan-dev libwayland-egl1-mesa libwww-perl libx11-6 libx11-xcb1 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon-dev libxrandr2 libxrender1 libxshmfence-dev libxslt1-dev libxss-dev libxt-dev libxtst6 libxtst-dev locales mesa-common-dev openbox p7zip patch perl php7.4-cgi pkg-config python2-dev python-crypto python-is-python2 python-numpy python-openssl python-psutil python-setuptools python-yaml rpm ruby snapcraft subversion uuid-dev wdiff x11-utils xcompmgr xz-utils zip zlib1g

It produced the following output:
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists...
Building dependency tree...
Reading state information...
bzip2 is already the newest version (1.0.8-2).
bzip2 set to manually installed.
dpkg-dev is already the newest version (1.19.7ubuntu3).
dpkg-dev set to manually installed.
fakeroot is already the newest version (1.24-1).
fakeroot set to manually installed.
libatk1.0-0 is already the newest version (2.35.1-1ubuntu2).
libatk1.0-0 set to manually installed.
libatspi2.0-0 is already the newest version (2.36.0-2).
libatspi2.0-0 set to manually installed.
libbz2-1.0 is already the newest version (1.0.8-2).
libbz2-1.0 set to manually installed.
libcairo2 is already the newest version (1.16.0-4ubuntu1).
libcairo2 set to manually installed.
libcap2 is already the newest version (1:2.32-1).
libcap2 set to manually installed.
libexpat1 is already the newest version (2.2.9-1build1).
libexpat1 set to manually installed.
libffi7 is already the newest version (3.3-4).
libffi7 set to manually installed.
libfontconfig1 is already the newest version (2.13.1-2ubuntu3).
libfontconfig1 set to manually installed.
libnspr4 is already the newest version (2:4.25-1).
libnspr4 set to manually installed.
libpango-1.0-0 is already the newest version (1.44.7-2ubuntu4).
libpango-1.0-0 set to manually installed.
libpcre3 is already the newest version (2:8.39-12build1).
libpcre3 set to manually installed.
libpixman-1-0 is already the newest version (0.38.4-0ubuntu1).
libpixman-1-0 set to manually installed.
libpng16-16 is already the newest version (1.6.37-2).
libpng16-16 set to manually installed.
libvulkan1 is already the newest version (1.2.131.2-1).
libvulkan1 set to manually installed.
libwww-perl is already the newest version (6.43-1).
libwww-perl set to manually installed.
libxau6 is already the newest version (1:1.0.9-0ubuntu1).
libxau6 set to manually installed.
libxcb1 is already the newest version (1.14-2).
libxcb1 set to manually installed.
libxcomposite1 is already the newest version (1:0.4.5-1).
libxcomposite1 set to manually installed.
libxcursor1 is already the newest version (1:1.2.0-2).
libxcursor1 set to manually installed.
libxdamage1 is already the newest version (1:1.1.5-2).
libxdamage1 set to manually installed.
libxdmcp6 is already the newest version (1:1.1.3-0ubuntu1).
libxdmcp6 set to manually installed.
libxext6 is already the newest version (2:1.3.4-0ubuntu1).
libxext6 set to manually installed.
libxfixes3 is already the newest version (1:5.0.3-2).
libxfixes3 set to manually installed.
libxi6 is already the newest version (2:1.7.10-0ubuntu1).
libxi6 set to manually installed.
libxinerama1 is already the newest version (2:1.1.4-2).
libxinerama1 set to manually installed.
libxrandr2 is already the newest version (2:1.5.2-0ubuntu1).
libxrandr2 set to manually installed.
libxrender1 is already the newest version (1:0.9.10-1).
libxrender1 set to manually installed.
libxtst6 is already the newest version (2:1.2.3-1).
libxtst6 set to manually installed.
patch is already the newest version (2.7.6-6).
patch set to manually installed.
pkg-config is already the newest version (0.29.1-0ubuntu4).
pkg-config set to manually installed.
x11-utils is already the newest version (7.7+5).
x11-utils set to manually installed.
zip is already the newest version (3.0-11build1).
zip set to manually installed.
p7zip is already the newest version (16.02+dfsg-7build1).
p7zip set to manually installed.
binutils is already the newest version (2.34-6ubuntu1.3).
binutils set to manually installed.
dbus-x11 is already the newest version (1.12.16-2ubuntu2.1).
dbus-x11 set to manually installed.
git is already the newest version (1:2.25.1-1ubuntu3.2).
libcups2 is already the newest version (2.3.1-9ubuntu1.1).
libcups2 set to manually installed.
libfreetype6 is already the newest version (2.10.1-2ubuntu0.1).
libfreetype6 set to manually installed.
libnss3 is already the newest version (2:3.49.1-1ubuntu1.6).
libnss3 set to manually installed.
libsqlite3-0 is already the newest version (3.31.1-4ubuntu0.2).
libsqlite3-0 set to manually installed.
libstdc++6 is already the newest version (10.3.0-1ubuntu1~20.04).
libstdc++6 set to manually installed.
libudev1 is already the newest version (245.4-4ubuntu3.15).
libudev1 set to manually installed.
libx11-6 is already the newest version (2:1.6.9-2ubuntu1.2).
libx11-6 set to manually installed.
libx11-xcb1 is already the newest version (2:1.6.9-2ubuntu1.2).
libx11-xcb1 set to manually installed.
perl is already the newest version (5.30.0-9ubuntu0.2).
perl set to manually installed.
libasound2 is already the newest version (1.2.2-2.1ubuntu2.4).
libasound2 set to manually installed.
libc6 is already the newest version (2.31-0ubuntu9.2).
libc6 set to manually installed.
libc6-dev is already the newest version (2.31-0ubuntu9.2).
libc6-dev set to manually installed.
libdrm2 is already the newest version (2.4.105-3~20.04.2).
libdrm2 set to manually installed.
libevdev2 is already the newest version (1.9.0+dfsg-1ubuntu0.1).
libevdev2 set to manually installed.
libgbm1 is already the newest version (21.0.3-0ubuntu0.3~20.04.5).
libgbm1 set to manually installed.
libglib2.0-0 is already the newest version (2.64.6-1~ubuntu20.04.4).
libglib2.0-0 set to manually installed.
libgtk-3-0 is already the newest version (3.24.20-0ubuntu1).
libgtk-3-0 set to manually installed.
libinput10 is already the newest version (1.15.5-1ubuntu0.2).
libinput10 set to manually installed.
libpam0g is already the newest version (1.3.1-5ubuntu4.2).
libpam0g set to manually installed.
libpci3 is already the newest version (1:3.6.4-1ubuntu0.20.04.1).
libpci3 set to manually installed.
libpulse0 is already the newest version (1:13.99.1-1ubuntu3.11).
libpulse0 set to manually installed.
libuuid1 is already the newest version (2.34-0.1ubuntu9.1).
libuuid1 set to manually installed.
locales is already the newest version (2.31-0ubuntu9.2).
locales set to manually installed.
xz-utils is already the newest version (5.2.4-1ubuntu1).
xz-utils set to manually installed.
zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu1.2).
zlib1g set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libasound2-dev : Depends: libasound2 (= 1.2.2-2.1)
 libc6-i386 : Depends: libc6 (= 2.31-0ubuntu9) but 2.31-0ubuntu9.2 is to be installed
 libcairo2-dev : Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
                 Depends: libfreetype6-dev (>= 2.1.10) but it is not going to be installed
                 Depends: libpng-dev but it is not going to be installed
 libcups2-dev : Depends: libcupsimage2-dev (= 2.3.1-9ubuntu1.1) but it is not going to be installed
 libdrm-dev : Depends: libdrm2 (= 2.4.101-2) but 2.4.105-3~20.04.2 is to be installed
              Depends: libdrm-intel1 (= 2.4.101-2) but 2.4.105-3~20.04.2 is to be installed
              Depends: libdrm-radeon1 (= 2.4.101-2) but 2.4.105-3~20.04.2 is to be installed
              Depends: libdrm-nouveau2 (= 2.4.101-2) but 2.4.105-3~20.04.2 is to be installed
              Depends: libdrm-amdgpu1 (= 2.4.101-2) but 2.4.105-3~20.04.2 is to be installed
 libelf-dev : Depends: zlib1g-dev but it is not going to be installed
 libevdev-dev : Depends: libevdev2 (= 1.9.0+dfsg-1) but 1.9.0+dfsg-1ubuntu0.1 is to be installed
 libgbm-dev : Depends: libgbm1 (= 20.0.4-2ubuntu1) but 21.0.3-0ubuntu0.3~20.04.5 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.64.6-1~ubuntu20.04.3) but 2.64.6-1~ubuntu20.04.4 is to be installed
                  Depends: libglib2.0-bin (= 2.64.6-1~ubuntu20.04.3)
                  Depends: libmount-dev (>= 2.28) but it is not going to be installed
                  Depends: zlib1g-dev but it is not going to be installed
 libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev but it is not going to be installed
 libgtk-3-dev : Depends: gir1.2-gtk-3.0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed
                Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libegl1-mesa-dev but it is not going to be installed
                Depends: libepoxy-dev (>= 1.0) but it is not going to be installed
                Depends: libfontconfig1-dev but it is not going to be installed
                Depends: libgdk-pixbuf2.0-dev (>= 2.40.0) but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.41) but it is not going to be installed
                Depends: libgtk-3-0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed
 libinput-dev : Depends: libinput10 (= 1.15.5-1) but 1.15.5-1ubuntu0.2 is to be installed
                Depends: libwacom-dev (>= 0.20) but it is not going to be installed
 libpam0g-dev : Depends: libpam0g (= 1.3.1-5ubuntu4) but 1.3.1-5ubuntu4.2 is to be installed
 libpci-dev : Depends: libpci3 (= 1:3.6.4-1) but 1:3.6.4-1ubuntu0.20.04.1 is to be installed
              Depends: zlib1g-dev but it is not going to be installed
 libpulse-dev : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.8) but 1:13.99.1-1ubuntu3.11 is to be installed
                Depends: libpulse-mainloop-glib0 (= 1:13.99.1-1ubuntu3.8) but 1:13.99.1-1ubuntu3.11 is to be installed
 mesa-common-dev : Depends: libgl-dev but it is not going to be installed
                   Depends: libglx-dev but it is not going to be installed
 uuid-dev : Depends: libuuid1 (= 2.34-0.1ubuntu9) but 2.34-0.1ubuntu9.1 is to be installed

You will have to install the above packages yourself.


and

autoninja -C out/Default trichrome_webview_apk

will fail with this error:

[4125/88989] ACTION //third_party/blink/renderer/platform:color_data(//build/toolchain/android:android_clang_arm64)
FAILED: gen/third_party/blink/renderer/platform/color_data.cc
python3 ../../third_party/blink/renderer/build/scripts/run_with_pythonpath.py -I ../../third_party/blink/renderer/build/scripts -I ../../third_party -I ../../tools ../../third_party/blink/renderer/build/scripts/gperf.py gperf --key-positions=\* -D -s 2 ../../third_party/blink/renderer/platform/color_data.gperf --output-file=gen/third_party/blink/renderer/platform/color_data.cc
Traceback (most recent call last):
  File "../../third_party/blink/renderer/build/scripts/gperf.py", line 26, in generate_gperf
    gperf = subprocess.Popen(
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gperf'

OS: Kubuntu 20.04

As I can understand, some build dependencies is still missing after executing ./build/install-build-deps.sh. But what I have to do now?
Reply all
Reply to author
Forward
0 new messages