qemu 配置的“--enable-gtk”向我提供了“安装 gtk3-devel”消息。(在 ubuntu 18.04、arm64 机器上)

qemu 配置的“--enable-gtk”向我提供了“安装 gtk3-devel”消息。(在 ubuntu 18.04、arm64 机器上)

我一直使用此命令在另一台机器(ubuntu 20.40,amd64)上配置 qemu-5.1.0

../configure--target-list=aarch64-softmmu--enable-debug--enable-gtk--extra-ldflags="-Wl,--no-as-needed,--export-dynamic-ldl"

但是当我在 ubuntu 18.04 arm64 机器上执行相同操作时,它给出了此消息。

ckim@n1sdp:~/prj/QEMU/qemu-5.1.0/build$ ../configureit

ERROR: User requested feature gtk
       configure was not able to find it.
       Install gtk3-devel

所以我做了

ckim@n1sdp:~/prj/QEMU/qemu-5.1.0/build$ sudo apt install gtk3-devel
sudo: unable to resolve host n1sdp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gtk3-devel

当我这样做时dpkg -l | grep gtk,我得到了这个列表(所有已安装的列表):

ii  libcanberra-gtk3-0:arm64             0.30-5ubuntu1                       arm64        GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii  libcanberra-gtk3-module:arm64        0.30-5ubuntu1                       arm64        translates GTK3 widgets signals to event sounds
ii  libgtk3-perl                         0.032-1                             all          Perl bindings for the GTK+ graphical user interface library
ii  python3-aptdaemon.gtk3widgets        1.1.1+bzr982-0ubuntu19.5            all          Python 3 GTK+ 3 widgets to run an aptdaemon client

我使用sudo apt-cache search gtk3并删除了不包含“dev”模式的行。最后归结为这个列表。

libavahi-ui-gtk3-dev - Development headers for the Avahi GTK+ User interface library
libcanberra-gtk-common-dev - simple interface for playing event sounds (GTK+ shared development files)
libcanberra-gtk3-dev - simple interface for playing event sounds (GTK+ 3 development files)
libdbusmenu-gtk3-dev - library for passing menus over DBus - GTK+ version developement files
golang-github-gotk3-gotk3-dev - Go bindings for GTK3
libappmenu-gtk3-parser-dev - GtkMenuShell to GMenuModel parser (GTK+3.0 development files)
libgarcon-gtk3-1-dev - Development files for garcon-gtk3
libghc-gtk3-dev - binding to the Gtk+ graphical user interface library
libgtk3.0-cil-dev - CLI binding for the GTK+ toolkit 3.0
libgwengui-gtk3-dev - Gwenhywfar GUI implementation for GTK3 (development files)
libindicate-gtk3-dev - library for raising indicators via DBus - GTK bindings development files
libspice-client-gtk-3.0-dev - GTK3 widget for SPICE clients (development files)
libunity-gtk3-parser-dev - GtkMenuShell to GMenuModel parser
libwxgtk-media3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 media library development)
libwxgtk-webview3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 webview library development)
libwxgtk3.0-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
libwxgtk3.0-gtk3-dev - wxWidgets Cross-platform C++ GUI toolkit (GTK+ 3 development)
libxfce4panel-2.0-dev - Xfce4 panel libraries (GTK3 variant)
python-wxgtk3.0-dev - Development files for wxPython

我知道安装不必要的包不会造成任何危害,但我应该安装哪一个?

答案1

sudo apt-get install libavahi-ui-gtk3-dev解决了。

相关内容