家裡的電腦重新安裝 Gentoo 之後,就無法成功的再次安裝 gcin。到辦公室測試是否可以安裝,結果是成功的。將相關結果整理如下,回家再來測試。
對於 GTK+ 3.x 的支援,參考 https://wiki.gentoo.org/wiki/GTK
檢視一下系統安裝的 GTK,gtk-2、gtk-3、gtk-4 全都安裝了
$ eix x11-libs/gtk+
[I] x11-libs/gtk+
Available versions:
(2) 2.24.33^t
(3) 3.24.34^t
{+X aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland xinerama ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 2.24.33(2)^t(16時55分32秒 西元2021年06月08日)(cups introspection -aqua -examples -test -vim-syntax -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
3.24.34(3)^t(16時24分47秒 西元2022年06月13日)(X colord cups introspection sysprof wayland -aqua -broadway -examples -gtk-doc -test -vim-syntax -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Homepage: https://www.gtk.org/
Description: Gimp ToolKit +
$ eix gui-libs/gtk
[I] gui-libs/gtk
Available versions: (4) 4.6.4-r1^t ~4.6.5^t
{+X aqua broadway colord cups examples ffmpeg gstreamer +introspection sysprof test vulkan wayland CPU_FLAGS_X86="f16c"}
Installed versions: 4.6.4-r1(4)^t(16時38分48秒 西元2022年06月13日)(X colord cups gstreamer introspection sysprof wayland -aqua -broadway -examples -ffmpeg -test -vulkan CPU_FLAGS_X86="f16c")
Homepage: https://www.gtk.org/ https://gitlab.gnome.org/GNOME/gtk/
Description: GTK is a multi-platform toolkit for creating graphical user interfaces
檢查一下 USE flag
$ emerge --info | grep gtk
USE=" .... gpm gstreamer gtk gtk2 gtk3 gui .... "
測試一下編譯 gcin-2.9.0
$ ebuild gcin-2.9.0-r1.ebuild clean
$ ebuild gcin-2.9.0-r1.ebuild prepare
* gcin-2.9.0.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking gcin-2.9.0.tar.xz to /var/tmp/portage/app-i18n/gcin-2.9.0-r1/work
>>> Source unpacked in /var/tmp/portage/app-i18n/gcin-2.9.0-r1/work
>>> Preparing source in /var/tmp/portage/app-i18n/gcin-2.9.0-r1/work/gcin-2.9.0 ...
>>> Source prepared.
$ ebuild gcin-2.9.0-r1.ebuild configure
>>> Existing ${T}/environment for 'gcin-2.9.0-r1' will be sourced. Run
>>> 'clean' to start with a fresh environment.
>>> Checking gcin-2.9.0.tar.xz's mtime...
>>> WORKDIR is up-to-date, keeping...
* checking ebuild checksums ;-) ... [ ok ]
>>> It appears that 'pretend' has already executed for 'gcin-2.9.0-r1'; skipping.
>>> Remove '/var/tmp/portage/app-i18n/gcin-2.9.0-r1/.pretended' to force pretend.
>>> It appears that 'setup' has already executed for 'gcin-2.9.0-r1'; skipping.
>>> Remove '/var/tmp/portage/app-i18n/gcin-2.9.0-r1/.setuped' to force setup.
>>> It appears that 'unpack' has already executed for 'gcin-2.9.0-r1'; skipping.
>>> Remove '/var/tmp/portage/app-i18n/gcin-2.9.0-r1/.unpacked' to force unpack.
>>> It appears that 'prepare' has already executed for 'gcin-2.9.0-r1'; skipping.
>>> Remove '/var/tmp/portage/app-i18n/gcin-2.9.0-r1/.prepared' to force prepare.
>>> Configuring source in /var/tmp/portage/app-i18n/gcin-2.9.0-r1/work/gcin-2.9.0 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --use_i18n=Y --use_tsin=Y --use_qt3=N --use_qt4=N --use_anthy=N --use_chewing=N
./configure: /usr/share/bashdb/bashdb-main.inc: 沒有此一檔案或目錄
./configure: 警告:無法開啟偵錯器;偵錯模式已停用
prefix: /usr
Y
.... Testing gtk+-3.0 : found
gtk+-3.0 will be used.
GTKINC: -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/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/sysprof-3 -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
GTKLDFLAGS: -lgtk-3 -lgdk-3 -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
.... Testing indicator(Ubuntu) : found.
.... Testing anthy : Package anthy was not found in the pkg-config search path.
Perhaps you should add the directory containing `anthy.pc'
to the PKG_CONFIG_PATH environment variable
Package 'anthy', required by 'virtual:world', not found
Not found. It's ok if you don't want anthy support.
testing if you have qt3 support
-> No, you don't have. It's ok if you don't want Qt3 immodule.
testing if you have qt4 support
-> No, you don't have. It's ok if you don't want Qt4 immodule.
testing if you have qt5 support
-> Yes, you have Qt5 support.
testing if you have GTK+ 3.x support
-> Yes, you have GTK+ 3.x support.
N
You have Qt > 5.5.1
QT5_MOC=/usr/lib64/qt5/bin/moc
./configure: 第 365 列:[: =: 需要一元表示式
>>> Source configured.
$ ebuild gcin-2.9.0-r1.ebuild compile
......... compiling .......
gmake[1]: 離開目錄「/var/tmp/portage/app-i18n/gcin-2.9.0-r1/work/gcin-2.9.0/qt5-im」
>>> Source compiled.
測試結果,可以成功的 compile。