
我一直在使用這個命令在另一台機器上配置qemu-5.1.0(ubuntu 20.40,amd64)
../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
解決了它。