In [1]:
! sudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev \
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev \
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc libsdl-sge-dev python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libboost-all-dev is already the newest version (1.65.1.0ubuntu1).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
git is already the newest version (1:2.17.1-1ubuntu0.5).
libgl1-mesa-dev is already the newest version (19.0.8-0ubuntu0~18.04.3).
libgl1-mesa-dev set to manually installed.
The following package was automatically installed and is no longer required:
libnvidia-common-430
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
gir1.2-ibus-1.0 lib++dfb-1.7-7 liba52-0.7.4 libcaca-dev libcapnp-0.6.1
libdbus-1-dev libdirectfb-1.7-7 libibus-1.0-5 libibus-1.0-dev
libmirclient-dev libmirclient9 libmircommon-dev libmircommon7
libmircookie-dev libmircookie2 libmircore-dev libmircore1 libmirprotobuf3
libmpeg3-2 libmpeg3-dev libprotobuf-dev libprotobuf-lite10 libpulse-dev
libpulse-mainloop-glib0 libsdl-image1.2 libsdl-sge libsdl1.2-dev
libsdl1.2debian libsdl2-gfx-1.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0
libslang2-dev libsndio-dev libst1 libudev-dev libvncclient1 libvncserver1
libxcursor-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxv-dev
python-pip-whl python3-asn1crypto python3-cffi-backend python3-crypto
python3-cryptography python3-idna python3-keyring python3-keyrings.alt
python3-pkg-resources python3-secretstorage python3-setuptools python3-six
python3-wheel python3-xdg x11proto-randr-dev x11proto-xinerama-dev
x11vnc-data
Suggested packages:
libdirectfb-extra ttf-dejavu-core libsdl2-gfx-doc python-crypto-doc
python-cryptography-doc python3-cryptography-vectors gnome-keyring
libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-secretstorage-doc
python-setuptools-doc
The following NEW packages will be installed:
gir1.2-ibus-1.0 lib++dfb-1.7-7 liba52-0.7.4 libcaca-dev libcapnp-0.6.1
libdbus-1-dev libdirectfb-1.7-7 libdirectfb-dev libibus-1.0-5
libibus-1.0-dev libmirclient-dev libmirclient9 libmircommon-dev
libmircommon7 libmircookie-dev libmircookie2 libmircore-dev libmircore1
libmirprotobuf3 libmpeg3-2 libmpeg3-dev libprotobuf-dev libprotobuf-lite10
libpulse-dev libpulse-mainloop-glib0 libsdl-image1.2 libsdl-sge
libsdl-sge-dev libsdl1.2-dev libsdl1.2debian libsdl2-dev libsdl2-gfx-1.0-0
libsdl2-gfx-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-ttf-2.0-0
libsdl2-ttf-dev libslang2-dev libsndio-dev libst-dev libst1 libudev-dev
libvncclient1 libvncserver1 libxcursor-dev libxinerama-dev libxkbcommon-dev
libxrandr-dev libxv-dev mesa-utils python-pip-whl python3-asn1crypto
python3-cffi-backend python3-crypto python3-cryptography python3-idna
python3-keyring python3-keyrings.alt python3-pip python3-pkg-resources
python3-secretstorage python3-setuptools python3-six python3-wheel
python3-xdg x11proto-randr-dev x11proto-xinerama-dev x11vnc x11vnc-data xvfb
0 upgraded, 70 newly installed, 0 to remove and 7 not upgraded.
Need to get 12.9 MB of archives.
After this operation, 56.3 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libibus-1.0-5 amd64 1.5.17-3ubuntu5.2 [134 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gir1.2-ibus-1.0 amd64 1.5.17-3ubuntu5.2 [66.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libdirectfb-1.7-7 amd64 1.7.7-8 [953 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/universe amd64 lib++dfb-1.7-7 amd64 1.7.7-8 [29.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 liba52-0.7.4 amd64 0.7.4-19 [35.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libslang2-dev amd64 2.3.1a-3ubuntu1 [393 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcaca-dev amd64 0.99.beta19-2ubuntu0.18.04.1 [747 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcapnp-0.6.1 amd64 0.6.1-1ubuntu1 [658 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdbus-1-dev amd64 1.12.2-1ubuntu1.1 [165 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libmpeg3-2 amd64 1.8.dfsg-2.1 [87.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libmpeg3-dev amd64 1.8.dfsg-2.1 [112 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libdirectfb-dev amd64 1.7.7-8 [199 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libibus-1.0-dev amd64 1.5.17-3ubuntu5.2 [145 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircore1 amd64 0.31.1-0ubuntu1 [26.5 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircommon7 amd64 0.31.1-0ubuntu1 [73.9 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libprotobuf-lite10 amd64 3.0.0-9.1ubuntu1 [97.7 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmirprotobuf3 amd64 0.31.1-0ubuntu1 [127 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmirclient9 amd64 0.31.1-0ubuntu1 [199 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircore-dev amd64 0.31.1-0ubuntu1 [21.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 libprotobuf-dev amd64 3.0.0-9.1ubuntu1 [959 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxkbcommon-dev amd64 0.8.2-1~ubuntu18.04.1 [150 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircommon-dev amd64 0.31.1-0ubuntu1 [13.9 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircookie2 amd64 0.31.1-0ubuntu1 [19.7 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmircookie-dev amd64 0.31.1-0ubuntu1 [4,392 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmirclient-dev amd64 0.31.1-0ubuntu1 [47.8 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-mainloop-glib0 amd64 1:11.1-1ubuntu7.4 [22.1 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpulse-dev amd64 1:11.1-1ubuntu7.4 [81.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsdl1.2debian amd64 1.2.15+dfsg2-0.1ubuntu0.1 [175 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl-image1.2 amd64 1.2.12-8 [29.5 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl-sge amd64 030809dfsg-7 [70.0 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsdl1.2-dev amd64 1.2.15+dfsg2-0.1ubuntu0.1 [706 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl-sge-dev amd64 030809dfsg-7 [135 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsndio-dev amd64 1.1.0-3 [13.3 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libudev-dev amd64 237-3ubuntu10.33 [19.1 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxcursor-dev amd64 1:1.1.15-1 [26.5 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-xinerama-dev all 2018.4-4 [2,628 B]
Get:37 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxinerama-dev amd64 2:1.1.3-1 [8,404 B]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main amd64 x11proto-randr-dev all 2018.4-4 [2,620 B]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxrandr-dev amd64 2:1.5.1-1 [24.0 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxv-dev amd64 2:1.0.11-1 [32.5 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 libsdl2-dev amd64 2.0.8+dfsg1-1ubuntu1.18.04.4 [683 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-gfx-1.0-0 amd64 1.0.4+dfsg-1 [29.9 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-gfx-dev amd64 1.0.4+dfsg-1 [29.8 kB]
Get:44 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-image-2.0-0 amd64 2.0.3+dfsg1-1 [63.0 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-image-dev amd64 2.0.3+dfsg1-1 [68.6 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-ttf-2.0-0 amd64 2.0.14+dfsg1-2 [14.8 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libsdl2-ttf-dev amd64 2.0.14+dfsg1-2 [19.7 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libst1 amd64 1.9-3.1ubuntu1 [20.9 kB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libst-dev amd64 1.9-3.1ubuntu1 [63.4 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libvncclient1 amd64 0.9.11+dfsg-1ubuntu1.1 [54.8 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libvncserver1 amd64 0.9.11+dfsg-1ubuntu1.1 [122 kB]
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu1.18.04.1 [1,653 kB]
Get:53 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-asn1crypto all 0.24.0-1 [72.8 kB]
Get:54 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-cffi-backend amd64 1.11.5-1 [64.6 kB]
Get:55 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-crypto amd64 2.6.1-8ubuntu2 [244 kB]
Get:56 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-idna all 2.6-1 [32.5 kB]
Get:57 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-six all 1.11.0-2 [11.4 kB]
Get:58 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-cryptography amd64 2.1.4-1ubuntu1.3 [221 kB]
Get:59 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-secretstorage all 2.3.1-2 [12.1 kB]
Get:60 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-keyring all 10.6.0-1 [26.7 kB]
Get:61 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-keyrings.alt all 3.0-1 [16.6 kB]
Get:62 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3-pip all 9.0.1-2.3~ubuntu1.18.04.1 [114 kB]
Get:63 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pkg-resources all 39.0.1-2 [98.8 kB]
Get:64 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-setuptools all 39.0.1-2 [248 kB]
Get:65 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python3-wheel all 0.30.0-0.2 [36.5 kB]
Get:66 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-xdg all 0.25-4ubuntu1 [31.4 kB]
Get:67 http://archive.ubuntu.com/ubuntu bionic/universe amd64 x11vnc-data all 0.9.13-3 [214 kB]
Get:68 http://archive.ubuntu.com/ubuntu bionic/universe amd64 x11vnc amd64 0.9.13-3 [967 kB]
Get:69 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 xvfb amd64 2:1.19.6-1ubuntu4.3 [783 kB]
Get:70 http://archive.ubuntu.com/ubuntu bionic/universe amd64 mesa-utils amd64 8.4.0-1 [34.3 kB]
Fetched 12.9 MB in 4s (2,874 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 70.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Selecting previously unselected package libibus-1.0-5:amd64.
(Reading database ... 135004 files and directories currently installed.)
Preparing to unpack .../00-libibus-1.0-5_1.5.17-3ubuntu5.2_amd64.deb ...
Unpacking libibus-1.0-5:amd64 (1.5.17-3ubuntu5.2) ...
Selecting previously unselected package gir1.2-ibus-1.0:amd64.
Preparing to unpack .../01-gir1.2-ibus-1.0_1.5.17-3ubuntu5.2_amd64.deb ...
Unpacking gir1.2-ibus-1.0:amd64 (1.5.17-3ubuntu5.2) ...
Selecting previously unselected package libdirectfb-1.7-7:amd64.
Preparing to unpack .../02-libdirectfb-1.7-7_1.7.7-8_amd64.deb ...
Unpacking libdirectfb-1.7-7:amd64 (1.7.7-8) ...
Selecting previously unselected package lib++dfb-1.7-7:amd64.
Preparing to unpack .../03-lib++dfb-1.7-7_1.7.7-8_amd64.deb ...
Unpacking lib++dfb-1.7-7:amd64 (1.7.7-8) ...
Selecting previously unselected package liba52-0.7.4:amd64.
Preparing to unpack .../04-liba52-0.7.4_0.7.4-19_amd64.deb ...
Unpacking liba52-0.7.4:amd64 (0.7.4-19) ...
Selecting previously unselected package libslang2-dev:amd64.
Preparing to unpack .../05-libslang2-dev_2.3.1a-3ubuntu1_amd64.deb ...
Unpacking libslang2-dev:amd64 (2.3.1a-3ubuntu1) ...
Selecting previously unselected package libcaca-dev.
Preparing to unpack .../06-libcaca-dev_0.99.beta19-2ubuntu0.18.04.1_amd64.deb ...
Unpacking libcaca-dev (0.99.beta19-2ubuntu0.18.04.1) ...
Selecting previously unselected package libcapnp-0.6.1:amd64.
Preparing to unpack .../07-libcapnp-0.6.1_0.6.1-1ubuntu1_amd64.deb ...
Unpacking libcapnp-0.6.1:amd64 (0.6.1-1ubuntu1) ...
Selecting previously unselected package libdbus-1-dev:amd64.
Preparing to unpack .../08-libdbus-1-dev_1.12.2-1ubuntu1.1_amd64.deb ...
Unpacking libdbus-1-dev:amd64 (1.12.2-1ubuntu1.1) ...
Selecting previously unselected package libmpeg3-2.
Preparing to unpack .../09-libmpeg3-2_1.8.dfsg-2.1_amd64.deb ...
Unpacking libmpeg3-2 (1.8.dfsg-2.1) ...
Selecting previously unselected package libmpeg3-dev.
Preparing to unpack .../10-libmpeg3-dev_1.8.dfsg-2.1_amd64.deb ...
Unpacking libmpeg3-dev (1.8.dfsg-2.1) ...
Selecting previously unselected package libdirectfb-dev:amd64.
Preparing to unpack .../11-libdirectfb-dev_1.7.7-8_amd64.deb ...
Unpacking libdirectfb-dev:amd64 (1.7.7-8) ...
Selecting previously unselected package libibus-1.0-dev:amd64.
Preparing to unpack .../12-libibus-1.0-dev_1.5.17-3ubuntu5.2_amd64.deb ...
Unpacking libibus-1.0-dev:amd64 (1.5.17-3ubuntu5.2) ...
Selecting previously unselected package libmircore1:amd64.
Preparing to unpack .../13-libmircore1_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircore1:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmircommon7:amd64.
Preparing to unpack .../14-libmircommon7_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircommon7:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libprotobuf-lite10:amd64.
Preparing to unpack .../15-libprotobuf-lite10_3.0.0-9.1ubuntu1_amd64.deb ...
Unpacking libprotobuf-lite10:amd64 (3.0.0-9.1ubuntu1) ...
Selecting previously unselected package libmirprotobuf3:amd64.
Preparing to unpack .../16-libmirprotobuf3_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmirprotobuf3:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmirclient9:amd64.
Preparing to unpack .../17-libmirclient9_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmirclient9:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmircore-dev:amd64.
Preparing to unpack .../18-libmircore-dev_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircore-dev:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libprotobuf-dev:amd64.
Preparing to unpack .../19-libprotobuf-dev_3.0.0-9.1ubuntu1_amd64.deb ...
Unpacking libprotobuf-dev:amd64 (3.0.0-9.1ubuntu1) ...
Selecting previously unselected package libxkbcommon-dev:amd64.
Preparing to unpack .../20-libxkbcommon-dev_0.8.2-1~ubuntu18.04.1_amd64.deb ...
Unpacking libxkbcommon-dev:amd64 (0.8.2-1~ubuntu18.04.1) ...
Selecting previously unselected package libmircommon-dev:amd64.
Preparing to unpack .../21-libmircommon-dev_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircommon-dev:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmircookie2:amd64.
Preparing to unpack .../22-libmircookie2_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircookie2:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmircookie-dev:amd64.
Preparing to unpack .../23-libmircookie-dev_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmircookie-dev:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libmirclient-dev:amd64.
Preparing to unpack .../24-libmirclient-dev_0.31.1-0ubuntu1_amd64.deb ...
Unpacking libmirclient-dev:amd64 (0.31.1-0ubuntu1) ...
Selecting previously unselected package libpulse-mainloop-glib0:amd64.
Preparing to unpack .../25-libpulse-mainloop-glib0_1%3a11.1-1ubuntu7.4_amd64.deb ...
Unpacking libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.4) ...
Selecting previously unselected package libpulse-dev:amd64.
Preparing to unpack .../26-libpulse-dev_1%3a11.1-1ubuntu7.4_amd64.deb ...
Unpacking libpulse-dev:amd64 (1:11.1-1ubuntu7.4) ...
Selecting previously unselected package libsdl1.2debian:amd64.
Preparing to unpack .../27-libsdl1.2debian_1.2.15+dfsg2-0.1ubuntu0.1_amd64.deb ...
Unpacking libsdl1.2debian:amd64 (1.2.15+dfsg2-0.1ubuntu0.1) ...
Selecting previously unselected package libsdl-image1.2:amd64.
Preparing to unpack .../28-libsdl-image1.2_1.2.12-8_amd64.deb ...
Unpacking libsdl-image1.2:amd64 (1.2.12-8) ...
Selecting previously unselected package libsdl-sge:amd64.
Preparing to unpack .../29-libsdl-sge_030809dfsg-7_amd64.deb ...
Unpacking libsdl-sge:amd64 (030809dfsg-7) ...
Selecting previously unselected package libsdl1.2-dev.
Preparing to unpack .../30-libsdl1.2-dev_1.2.15+dfsg2-0.1ubuntu0.1_amd64.deb ...
Unpacking libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) ...
Selecting previously unselected package libsdl-sge-dev:amd64.
Preparing to unpack .../31-libsdl-sge-dev_030809dfsg-7_amd64.deb ...
Unpacking libsdl-sge-dev:amd64 (030809dfsg-7) ...
Selecting previously unselected package libsndio-dev:amd64.
Preparing to unpack .../32-libsndio-dev_1.1.0-3_amd64.deb ...
Unpacking libsndio-dev:amd64 (1.1.0-3) ...
Selecting previously unselected package libudev-dev:amd64.
Preparing to unpack .../33-libudev-dev_237-3ubuntu10.33_amd64.deb ...
Unpacking libudev-dev:amd64 (237-3ubuntu10.33) ...
Selecting previously unselected package libxcursor-dev:amd64.
Preparing to unpack .../34-libxcursor-dev_1%3a1.1.15-1_amd64.deb ...
Unpacking libxcursor-dev:amd64 (1:1.1.15-1) ...
Selecting previously unselected package x11proto-xinerama-dev.
Preparing to unpack .../35-x11proto-xinerama-dev_2018.4-4_all.deb ...
Unpacking x11proto-xinerama-dev (2018.4-4) ...
Selecting previously unselected package libxinerama-dev:amd64.
Preparing to unpack .../36-libxinerama-dev_2%3a1.1.3-1_amd64.deb ...
Unpacking libxinerama-dev:amd64 (2:1.1.3-1) ...
Selecting previously unselected package x11proto-randr-dev.
Preparing to unpack .../37-x11proto-randr-dev_2018.4-4_all.deb ...
Unpacking x11proto-randr-dev (2018.4-4) ...
Selecting previously unselected package libxrandr-dev:amd64.
Preparing to unpack .../38-libxrandr-dev_2%3a1.5.1-1_amd64.deb ...
Unpacking libxrandr-dev:amd64 (2:1.5.1-1) ...
Selecting previously unselected package libxv-dev:amd64.
Preparing to unpack .../39-libxv-dev_2%3a1.0.11-1_amd64.deb ...
Unpacking libxv-dev:amd64 (2:1.0.11-1) ...
Selecting previously unselected package libsdl2-dev:amd64.
Preparing to unpack .../40-libsdl2-dev_2.0.8+dfsg1-1ubuntu1.18.04.4_amd64.deb ...
Unpacking libsdl2-dev:amd64 (2.0.8+dfsg1-1ubuntu1.18.04.4) ...
Selecting previously unselected package libsdl2-gfx-1.0-0:amd64.
Preparing to unpack .../41-libsdl2-gfx-1.0-0_1.0.4+dfsg-1_amd64.deb ...
Unpacking libsdl2-gfx-1.0-0:amd64 (1.0.4+dfsg-1) ...
Selecting previously unselected package libsdl2-gfx-dev:amd64.
Preparing to unpack .../42-libsdl2-gfx-dev_1.0.4+dfsg-1_amd64.deb ...
Unpacking libsdl2-gfx-dev:amd64 (1.0.4+dfsg-1) ...
Selecting previously unselected package libsdl2-image-2.0-0:amd64.
Preparing to unpack .../43-libsdl2-image-2.0-0_2.0.3+dfsg1-1_amd64.deb ...
Unpacking libsdl2-image-2.0-0:amd64 (2.0.3+dfsg1-1) ...
Selecting previously unselected package libsdl2-image-dev:amd64.
Preparing to unpack .../44-libsdl2-image-dev_2.0.3+dfsg1-1_amd64.deb ...
Unpacking libsdl2-image-dev:amd64 (2.0.3+dfsg1-1) ...
Selecting previously unselected package libsdl2-ttf-2.0-0:amd64.
Preparing to unpack .../45-libsdl2-ttf-2.0-0_2.0.14+dfsg1-2_amd64.deb ...
Unpacking libsdl2-ttf-2.0-0:amd64 (2.0.14+dfsg1-2) ...
Selecting previously unselected package libsdl2-ttf-dev:amd64.
Preparing to unpack .../46-libsdl2-ttf-dev_2.0.14+dfsg1-2_amd64.deb ...
Unpacking libsdl2-ttf-dev:amd64 (2.0.14+dfsg1-2) ...
Selecting previously unselected package libst1.
Preparing to unpack .../47-libst1_1.9-3.1ubuntu1_amd64.deb ...
Unpacking libst1 (1.9-3.1ubuntu1) ...
Selecting previously unselected package libst-dev.
Preparing to unpack .../48-libst-dev_1.9-3.1ubuntu1_amd64.deb ...
Unpacking libst-dev (1.9-3.1ubuntu1) ...
Selecting previously unselected package libvncclient1:amd64.
Preparing to unpack .../49-libvncclient1_0.9.11+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libvncclient1:amd64 (0.9.11+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libvncserver1:amd64.
Preparing to unpack .../50-libvncserver1_0.9.11+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libvncserver1:amd64 (0.9.11+dfsg-1ubuntu1.1) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../51-python-pip-whl_9.0.1-2.3~ubuntu1.18.04.1_all.deb ...
Unpacking python-pip-whl (9.0.1-2.3~ubuntu1.18.04.1) ...
Selecting previously unselected package python3-asn1crypto.
Preparing to unpack .../52-python3-asn1crypto_0.24.0-1_all.deb ...
Unpacking python3-asn1crypto (0.24.0-1) ...
Selecting previously unselected package python3-cffi-backend.
Preparing to unpack .../53-python3-cffi-backend_1.11.5-1_amd64.deb ...
Unpacking python3-cffi-backend (1.11.5-1) ...
Selecting previously unselected package python3-crypto.
Preparing to unpack .../54-python3-crypto_2.6.1-8ubuntu2_amd64.deb ...
Unpacking python3-crypto (2.6.1-8ubuntu2) ...
Selecting previously unselected package python3-idna.
Preparing to unpack .../55-python3-idna_2.6-1_all.deb ...
Unpacking python3-idna (2.6-1) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../56-python3-six_1.11.0-2_all.deb ...
Unpacking python3-six (1.11.0-2) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../57-python3-cryptography_2.1.4-1ubuntu1.3_amd64.deb ...
Unpacking python3-cryptography (2.1.4-1ubuntu1.3) ...
Selecting previously unselected package python3-secretstorage.
Preparing to unpack .../58-python3-secretstorage_2.3.1-2_all.deb ...
Unpacking python3-secretstorage (2.3.1-2) ...
Selecting previously unselected package python3-keyring.
Preparing to unpack .../59-python3-keyring_10.6.0-1_all.deb ...
Unpacking python3-keyring (10.6.0-1) ...
Selecting previously unselected package python3-keyrings.alt.
Preparing to unpack .../60-python3-keyrings.alt_3.0-1_all.deb ...
Unpacking python3-keyrings.alt (3.0-1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../61-python3-pip_9.0.1-2.3~ubuntu1.18.04.1_all.deb ...
Unpacking python3-pip (9.0.1-2.3~ubuntu1.18.04.1) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../62-python3-pkg-resources_39.0.1-2_all.deb ...
Unpacking python3-pkg-resources (39.0.1-2) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../63-python3-setuptools_39.0.1-2_all.deb ...
Unpacking python3-setuptools (39.0.1-2) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../64-python3-wheel_0.30.0-0.2_all.deb ...
Unpacking python3-wheel (0.30.0-0.2) ...
Selecting previously unselected package python3-xdg.
Preparing to unpack .../65-python3-xdg_0.25-4ubuntu1_all.deb ...
Unpacking python3-xdg (0.25-4ubuntu1) ...
Selecting previously unselected package x11vnc-data.
Preparing to unpack .../66-x11vnc-data_0.9.13-3_all.deb ...
Unpacking x11vnc-data (0.9.13-3) ...
Selecting previously unselected package x11vnc.
Preparing to unpack .../67-x11vnc_0.9.13-3_amd64.deb ...
Unpacking x11vnc (0.9.13-3) ...
Selecting previously unselected package xvfb.
Preparing to unpack .../68-xvfb_2%3a1.19.6-1ubuntu4.3_amd64.deb ...
Unpacking xvfb (2:1.19.6-1ubuntu4.3) ...
Selecting previously unselected package mesa-utils.
Preparing to unpack .../69-mesa-utils_8.4.0-1_amd64.deb ...
Unpacking mesa-utils (8.4.0-1) ...
Setting up x11vnc-data (0.9.13-3) ...
Setting up python-pip-whl (9.0.1-2.3~ubuntu1.18.04.1) ...
Setting up libdbus-1-dev:amd64 (1.12.2-1ubuntu1.1) ...
Setting up libxcursor-dev:amd64 (1:1.1.15-1) ...
Setting up libxkbcommon-dev:amd64 (0.8.2-1~ubuntu18.04.1) ...
Setting up libsdl2-gfx-1.0-0:amd64 (1.0.4+dfsg-1) ...
Setting up libpulse-mainloop-glib0:amd64 (1:11.1-1ubuntu7.4) ...
Setting up libpulse-dev:amd64 (1:11.1-1ubuntu7.4) ...
Setting up libvncserver1:amd64 (0.9.11+dfsg-1ubuntu1.1) ...
Setting up libmircore-dev:amd64 (0.31.1-0ubuntu1) ...
Setting up python3-cffi-backend (1.11.5-1) ...
Setting up python3-crypto (2.6.1-8ubuntu2) ...
Setting up xvfb (2:1.19.6-1ubuntu4.3) ...
Setting up libsndio-dev:amd64 (1.1.0-3) ...
Setting up python3-idna (2.6-1) ...
Setting up python3-xdg (0.25-4ubuntu1) ...
Setting up python3-six (1.11.0-2) ...
Setting up libvncclient1:amd64 (0.9.11+dfsg-1ubuntu1.1) ...
Setting up libsdl1.2debian:amd64 (1.2.15+dfsg2-0.1ubuntu0.1) ...
Setting up python3-wheel (0.30.0-0.2) ...
Setting up python3-pkg-resources (39.0.1-2) ...
Setting up python3-asn1crypto (0.24.0-1) ...
Setting up liba52-0.7.4:amd64 (0.7.4-19) ...
Setting up libmircookie2:amd64 (0.31.1-0ubuntu1) ...
Setting up libst1 (1.9-3.1ubuntu1) ...
Setting up libmpeg3-2 (1.8.dfsg-2.1) ...
Setting up x11proto-xinerama-dev (2018.4-4) ...
Setting up x11proto-randr-dev (2018.4-4) ...
Setting up libxinerama-dev:amd64 (2:1.1.3-1) ...
Setting up libxv-dev:amd64 (2:1.0.11-1) ...
Setting up libdirectfb-1.7-7:amd64 (1.7.7-8) ...
Setting up python3-pip (9.0.1-2.3~ubuntu1.18.04.1) ...
Setting up libcapnp-0.6.1:amd64 (0.6.1-1ubuntu1) ...
Setting up libsdl2-image-2.0-0:amd64 (2.0.3+dfsg1-1) ...
Setting up libibus-1.0-5:amd64 (1.5.17-3ubuntu5.2) ...
Setting up libsdl-image1.2:amd64 (1.2.12-8) ...
Setting up libsdl2-ttf-2.0-0:amd64 (2.0.14+dfsg1-2) ...
Setting up libmpeg3-dev (1.8.dfsg-2.1) ...
Setting up python3-setuptools (39.0.1-2) ...
Setting up libmircore1:amd64 (0.31.1-0ubuntu1) ...
Setting up libprotobuf-lite10:amd64 (3.0.0-9.1ubuntu1) ...
Setting up libslang2-dev:amd64 (2.3.1a-3ubuntu1) ...
Setting up libudev-dev:amd64 (237-3ubuntu10.33) ...
Setting up mesa-utils (8.4.0-1) ...
Setting up python3-cryptography (2.1.4-1ubuntu1.3) ...
Setting up gir1.2-ibus-1.0:amd64 (1.5.17-3ubuntu5.2) ...
Setting up libxrandr-dev:amd64 (2:1.5.1-1) ...
Setting up x11vnc (0.9.13-3) ...
Setting up libmirprotobuf3:amd64 (0.31.1-0ubuntu1) ...
Setting up libprotobuf-dev:amd64 (3.0.0-9.1ubuntu1) ...
Setting up python3-keyrings.alt (3.0-1) ...
Setting up lib++dfb-1.7-7:amd64 (1.7.7-8) ...
Setting up libmircookie-dev:amd64 (0.31.1-0ubuntu1) ...
Setting up libst-dev (1.9-3.1ubuntu1) ...
Setting up libcaca-dev (0.99.beta19-2ubuntu0.18.04.1) ...
Setting up libibus-1.0-dev:amd64 (1.5.17-3ubuntu5.2) ...
Setting up libsdl-sge:amd64 (030809dfsg-7) ...
Setting up libsdl1.2-dev (1.2.15+dfsg2-0.1ubuntu0.1) ...
Setting up libmircommon7:amd64 (0.31.1-0ubuntu1) ...
Setting up python3-secretstorage (2.3.1-2) ...
Setting up python3-keyring (10.6.0-1) ...
Setting up libdirectfb-dev:amd64 (1.7.7-8) ...
Setting up libmirclient9:amd64 (0.31.1-0ubuntu1) ...
Setting up libsdl-sge-dev:amd64 (030809dfsg-7) ...
Setting up libmircommon-dev:amd64 (0.31.1-0ubuntu1) ...
Setting up libmirclient-dev:amd64 (0.31.1-0ubuntu1) ...
Setting up libsdl2-dev:amd64 (2.0.8+dfsg1-1ubuntu1.18.04.4) ...
Setting up libsdl2-ttf-dev:amd64 (2.0.14+dfsg1-2) ...
Setting up libsdl2-image-dev:amd64 (2.0.3+dfsg1-1) ...
Setting up libsdl2-gfx-dev:amd64 (1.0.4+dfsg-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
In [3]:
## Make sure to set the correct BRANCH (-b XXX)
! git clone -b v2.1 https://github.com/google-research/football.git
! cd football && pip3 install .
Cloning into 'football'...
remote: Enumerating objects: 2105, done.
remote: Total 2105 (delta 0), reused 0 (delta 0), pack-reused 2105
Receiving objects: 100% (2105/2105), 26.74 MiB | 23.03 MiB/s, done.
Resolving deltas: 100% (1094/1094), done.
Processing /content/football
Collecting pygame==1.9.6
Downloading https://files.pythonhosted.org/packages/8e/24/ede6428359f913ed9cd1643dd5533aefeb5a2699cc95bea089de50ead586/pygame-1.9.6-cp36-cp36m-manylinux1_x86_64.whl (11.4MB)
|████████████████████████████████| 11.4MB 3.4MB/s
Requirement already satisfied: opencv-python in /usr/local/lib/python3.6/dist-packages (from gfootball==2.0.3) (4.1.2.30)
Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from gfootball==2.0.3) (1.3.3)
Requirement already satisfied: gym>=0.11.0 in /usr/local/lib/python3.6/dist-packages (from gfootball==2.0.3) (0.15.4)
Requirement already satisfied: absl-py in /usr/local/lib/python3.6/dist-packages (from gfootball==2.0.3) (0.8.1)
Requirement already satisfied: numpy>=1.11.3 in /usr/local/lib/python3.6/dist-packages (from opencv-python->gfootball==2.0.3) (1.17.4)
Requirement already satisfied: six in /usr/local/lib/python3.6/dist-packages (from gym>=0.11.0->gfootball==2.0.3) (1.12.0)
Requirement already satisfied: pyglet<=1.3.2,>=1.2.0 in /usr/local/lib/python3.6/dist-packages (from gym>=0.11.0->gfootball==2.0.3) (1.3.2)
Requirement already satisfied: cloudpickle~=1.2.0 in /usr/local/lib/python3.6/dist-packages (from gym>=0.11.0->gfootball==2.0.3) (1.2.2)
Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from pyglet<=1.3.2,>=1.2.0->gym>=0.11.0->gfootball==2.0.3) (0.16.0)
Building wheels for collected packages: gfootball
Building wheel for gfootball (setup.py) ... done
Created wheel for gfootball: filename=gfootball-2.0.3-cp36-cp36m-linux_x86_64.whl size=23940216 sha256=e2de394e25f2b6f019ba5331aad5fb9f408f2e0f8e681ef01752213103e06657
Stored in directory: /tmp/pip-ephem-wheel-cache-me8n9jh6/wheels/41/ad/ae/8cf1d92b8694b10187e5daf33e8d5c248ffa5437e234ccbbee
Successfully built gfootball
Installing collected packages: pygame, gfootball
Successfully installed gfootball-2.0.3 pygame-1.9.6
In [4]:
## Small code example to make sure that everything works.
import gfootball.env as football_env
env = football_env.create_environment(env_name="academy_empty_goal_close", stacked=False, logdir='/tmp/football', write_goal_dumps=False, write_full_episode_dumps=False, render=False)
env.reset()
steps = 0
while True:
obs, rew, done, info = env.step(env.action_space.sample())
steps += 1
if steps % 100 == 0:
print("Step %d Reward: %f" % (steps, rew))
if done:
break
print("Steps: %d Reward: %.2f" % (steps, rew))
Step 100 Reward: 0.000000
Step 200 Reward: 0.000000
Steps: 278 Reward: 0.00
In [0]:
! cp /usr/local/lib/python3.6/dist-packages/gfootball_engine/_gameplayfootball.so /root/prebuilt_gameplayfootball
In [0]:
# Now download the file from:
# /root/prebuilt_gameplay_football (using the menu on the left side)
Content source: google-research/football
Similar notebooks: