gtkmm? 怎么装?
# pkg-config --libs gtk+-3.0
-lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
# pkg-config --libs gtk+-3.0
-lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0
-lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0
-lgio-2.0 -lgobject-2.0 -lglib-2.0
# pkg-config --cflags gtk+-3.0
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread
# pkg-config --cflags gtk+-3.0
-I/usr/include/gtk-3.0
-I/usr/include/pango-1.0
-I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include
-I/usr/include/sysprof-4
-I/usr/include/harfbuzz
-I/usr/include/freetype2
-I/usr/include/libpng16
-I/usr/include/libmount
-I/usr/include/blkid
-I/usr/include/fribidi
-I/usr/include/libxml2
-I/usr/include/cairo
-I/usr/include/pixman-1
-I/usr/include/gdk-pixbuf-2.0
-I/usr/include/gio-unix-2.0
-I/usr/include/cloudproviders
-I/usr/include/atk-1.0
-I/usr/include/at-spi2-atk/2.0
-I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include
-I/usr/include/at-spi-2.0 -pthread
-------------------------------------------------------------------------
#pkg-config --cflags gtk4
-I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -mfpmath=sse -msse -msse2 -I/usr/include/gio-unix-2.0 -pthread
#pkg-config --cflags gtk4
-I/usr/include/gtk-4.0
-I/usr/include/pango-1.0
-I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include
-I/usr/include/sysprof-4
-I/usr/include/harfbuzz
-I/usr/include/freetype2
-I/usr/include/libpng16
-I/usr/include/libmount
-I/usr/include/blkid
-I/usr/include/fribidi
-I/usr/include/libxml2
-I/usr/include/cairo
-I/usr/include/pixman-1
-I/usr/include/gdk-pixbuf-2.0
-I/usr/include/graphene-1.0
-I/usr/lib64/graphene-1.0/include
-mfpmath=sse -msse -msse2
-I/usr/include/gio-unix-2.0
-pthread
# pkg-config --libs gtk4
-lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
# pkg-config --libs gtk4
-lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lgdk_pixbuf-2.0
-lcairo-gobject -lcairo -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
[root@dad5600 ~]# dnf -y install gtkmm-4.0
Last metadata expiration check: 3:05:19 ago on Thu 12 Jan 2023 06:43:37 PM PST.
No match for argument: gtkmm-4.0
Error: Unable to find a match: gtkmm-4.0
[root@dad5600 ~]# dnf -y install gtkmm
Last metadata expiration check: 3:05:35 ago on Thu 12 Jan 2023 06:43:37 PM PST.
No match for argument: gtkmm
Error: Unable to find a match: gtkmm
[root@dad5600 ~]# dnf -y install libgtkmm
Last metadata expiration check: 3:05:53 ago on Thu 12 Jan 2023 06:43:37 PM PST.
No match for argument: libgtkmm
Error: Unable to find a match: libgtkmm
[root@dad5600 ~]# dnf -y install gtkmm3.0
Last metadata expiration check: 3:07:48 ago on Thu 12 Jan 2023 06:43:37 PM PST.
Package gtkmm3.0-3.24.7-2.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@dad5600 ~]# dnf -y install gtkmm3.0-devel
Last metadata expiration check: 3:08:03 ago on Thu 12 Jan 2023 06:43:37 PM PST.
Dependencies resolved.
===============================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================
Installing:
gtkmm3.0-devel x86_64 3.24.7-2.fc37 fedora 696 k
Installing dependencies:
atkmm-devel x86_64 2.28.3-1.fc37 fedora 53 k
Transaction Summary
===============================================================================================================================
Install 2 Packages
Total download size: 750 k
Installed size: 4.9 M
Downloading Packages:
(1/2): atkmm-devel-2.28.3-1.fc37.x86_64.rpm 117 kB/s | 53 kB 00:00
(2/2): gtkmm3.0-devel-3.24.7-2.fc37.x86_64.rpm 906 kB/s | 696 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------
Total 556 kB/s | 750 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : atkmm-devel-2.28.3-1.fc37.x86_64 1/2
Installing : gtkmm3.0-devel-3.24.7-2.fc37.x86_64 2/2
Running scriptlet: gtkmm3.0-devel-3.24.7-2.fc37.x86_64 2/2
Verifying : atkmm-devel-2.28.3-1.fc37.x86_64 1/2
Verifying : gtkmm3.0-devel-3.24.7-2.fc37.x86_64 2/2
Installed:
atkmm-devel-2.28.3-1.fc37.x86_64 gtkmm3.0-devel-3.24.7-2.fc37.x86_64
Complete!
[root@dad5600 ~]# dnf -y install gtkmm4.0-devel
Last metadata expiration check: 3:08:16 ago on Thu 12 Jan 2023 06:43:37 PM PST.
Package gtkmm4.0-devel-4.8.0-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
misc:
[root@dad5600 ~]# pkg-config --libs opengl
-lOpenGL
[root@dad5600 ~]# pkg-config --cflags opengl
[root@dad5600 ~]# pkg-config --cflags opengl
[root@dad5600 ~]# pkg-config --libs alsa
-lasound
[root@dad5600 ~]# pkg-config --libs python
[root@dad5600 ~]# pkg-config --cflags python
-I/usr/include/python3.11
ref:
https://developer-old.gnome.org/gtkmm-tutorial/stable/sec-installation-dependencies.html.en
https://developer-old.gnome.org/gtkmm-tutorial/stable/sec-installation-dependencies.html.en
# dnf -y install libsigc++-devel libsigc++
Last metadata expiration check: 2:07:41 ago on Thu 12 Jan 2023 10:48:44 PM PST.
Package libsigc++-devel-1.2.7-35.fc37.x86_64 is already installed.
Package libsigc++-1.2.7-35.fc37.x86_64 is already installed.
# dnf -y install glibmm2.68-devel glibmm2.68
Last metadata expiration check: 2:12:26 ago on Thu 12 Jan 2023 10:48:44 PM PST.
Package glibmm2.68-devel-2.74.0-1.fc37.x86_64 is already installed.
Package glibmm2.68-2.74.0-1.fc37.x86_64 is already installed.
# dnf -y install cairomm-devel cairomm
Last metadata expiration check: 2:14:02 ago on Thu 12 Jan 2023 10:48:44 PM PST.
Package cairomm-devel-1.14.4-1.fc37.x86_64 is already installed.
Package cairomm-1.14.4-1.fc37.x86_64 is already installed.
# dnf -y install pangomm-devel pangomm
Last metadata expiration check: 2:15:09 ago on Thu 12 Jan 2023 10:48:44 PM PST.
Package pangomm-devel-2.46.3-1.fc37.x86_64 is already installed.
Package pangomm-2.46.3-1.fc37.x86_64 is already installed.
# dnf -y builddep inkscape
11 kB/s | 3.2 kB 00:00
Package make-1:4.3-11.fc37.x86_64 is already installed.
Package python3-devel-3.11.1-1.fc37.x86_64 is already installed.
Package gcc-c++-12.2.1-4.fc37.x86_64 is already installed.
Package desktop-file-utils-0.26-7.fc37.x86_64 is already installed.
Package cmake-3.25.1-1.fc37.x86_64 is already installed.
Package libappstream-glib-0.8.1-1.fc37.x86_64 is already installed.
Package gettext-0.21.1-1.fc37.x86_64 is already installed.
Package python3-setuptools-62.6.0-2.fc37.noarch is already installed.
Package libtool-2.4.7-2.fc37.x86_64 is already installed.
Package boost-devel-1.78.0-9.fc37.x86_64 is already installed.
Package pkgconf-pkg-config-1.8.0-3.fc37.x86_64 is already installed.
Package intltool-0.51.0-21.fc37.noarch is already installed.
Package libjpeg-turbo-devel-2.1.3-2.fc37.x86_64 is already installed.
Package freetype-devel-2.12.1-3.fc37.x86_64 is already installed.
Package freetype-devel-2.12.1-3.fc37.i686 is already installed.
Package dos2unix-7.4.3-2.fc37.x86_64 is already installed.
Package cairo-devel-1.17.6-2.fc37.x86_64 is already installed.
Package cairo-devel-1.17.6-2.fc37.i686 is already installed.
Package dbus-glib-devel-0.112-4.fc37.x86_64 is already installed.
Package lcms2-devel-2.14-1.fc37.x86_64 is already installed.
Package pango-devel-1.50.12-1.fc37.x86_64 is already installed.
Package pango-devel-1.50.12-1.fc37.i686 is already installed.
Package popt-devel-1.19-1.fc37.x86_64 is already installed.
Package libsoup-devel-2.74.3-1.fc37.x86_64 is already installed.
Package atk-devel-2.38.0-2.fc37.x86_64 is already installed.
Package gtkmm3.0-devel-3.24.7-2.fc37.x86_64 is already installed.
Package aspell-devel-12:0.60.8-10.fc37.x86_64 is already installed.
Package gspell-devel-1.12.0-1.fc37.x86_64 is already installed.
Package poppler-glib-devel-22.08.0-2.fc37.x86_64 is already installed.
Package aspell-en-50:2020.12.07-6.fc37.x86_64 is already installed.
Package libsigc++20-devel-2.10.8-2.fc37.x86_64 is already installed.
Package libwpd-devel-0.10.3-11.fc37.x86_64 is already installed.
Package libwpg-devel-0.3.3-9.fc37.x86_64 is already installed.
Package libpng-devel-2:1.6.37-13.fc37.x86_64 is already installed.
Package libxml2-devel-2.10.3-2.fc37.x86_64 is already installed.
Package libxslt-devel-1.1.37-1.fc37.x86_64 is already installed.
Dependencies resolved.
......
Running transaction
Preparing : 1/1
Installing : ImageMagick-c++-devel-1:6.9.12.70-1.fc37.x86_64 1/6
Installing : potrace-devel-1.16-8.fc37.x86_64 2/6
Installing : libgdl-devel-1:3.40.0-3.fc37.x86_64 3/6
Installing : gsl-devel-2.6-7.fc37.x86_64 4/6
Installing : gc-devel-8.0.6-4.fc37.x86_64 5/6
Installing : double-conversion-devel-3.1.5-7.fc37.x86_64 6/6
Running scriptlet: double-conversion-devel-3.1.5-7.fc37.x86_64 6/6