Raspbian stretch に Gtk3 開発環境をインストールする方法を調べた(libgtk-3-dev, glade)
これでC++でなら開発できるはず。
前回
- http://ytyaru.hatenablog.com/entry/2020/02/18/000000
- http://ytyaru.hatenablog.com/entry/2020/02/19/000000
- http://ytyaru.hatenablog.com/entry/2020/02/20/000000
- http://ytyaru.hatenablog.com/entry/2020/02/21/000000
対象環境
- Raspbierry pi 3 Model B+
- Raspbian stretch(9.0) 2018-06-27
- Mono 5.16.0
- MonoDevelop 7.6 build 711
- Eto.Forms 2.4.1 拡張機能, NuGetパッケージ
- .NET Core 2.2, MonoDevelop参照方法
インストール
sudo apt update -y sudo apt upgrade -y sudo apt install -y libgtk-3-dev glade
ソフトウェア | 概要 |
---|---|
libgtk-3-dev | GTK+3開発用ライブラリ |
glade | GUIデザイナ |
以下の追加パッケージがインストールされます: autoconf automake autopoint autotools-dev debhelper devhelp devhelp-common dh-autoreconf dh-strip-nondeterminism gettext gir1.2-atspi-2.0 icu-devtools intltool-debian libarchive-zip-perl libatk-bridge2.0-dev libatk1.0-dev libatk1.0-doc libatspi2.0-dev libcairo-script-interpreter2 libcairo2-dev libdbus-1-dev libdevhelp-3-2 libepoxy-dev libfile-stripnondeterminism-perl libgdk-pixbuf2.0-dev libgladeui-2-6 libgladeui-common libglib2.0-dev libglib2.0-doc libgraphite2-dev libgtk-3-doc libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-dev libmail-sendmail-perl libpango1.0-dev libpango1.0-doc libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libsigsegv2 libsys-hostname-long-perl libtimedate-perl libtool libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxtst-dev m4 po-debconf x11proto-composite-dev x11proto-randr-dev x11proto-record-dev x11proto-xinerama-dev 提案パッケージ: autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc libasprintf-dev libgettextpo-dev libgtk2.0-doc libcairo2-doc icu-doc libtool-doc imagemagick gfortran | fortran95-compiler gcj-jdk m4-doc libmail-box-perl 以下のパッケージが新たにインストールされます: autoconf automake autopoint autotools-dev debhelper devhelp devhelp-common dh-autoreconf dh-strip-nondeterminism gettext gir1.2-atspi-2.0 glade icu-devtools intltool-debian libarchive-zip-perl libatk-bridge2.0-dev libatk1.0-dev libatk1.0-doc libatspi2.0-dev libcairo-script-interpreter2 libcairo2-dev libdbus-1-dev libdevhelp-3-2 libepoxy-dev libfile-stripnondeterminism-perl libgdk-pixbuf2.0-dev libgladeui-2-6 libgladeui-common libglib2.0-dev libglib2.0-doc libgraphite2-dev libgtk-3-dev libgtk-3-doc libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libltdl-dev libmail-sendmail-perl libpango1.0-dev libpango1.0-doc libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libsigsegv2 libsys-hostname-long-perl libtimedate-perl libtool libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxtst-dev m4 po-debconf x11proto-composite-dev x11proto-randr-dev x11proto-record-dev x11proto-xinerama-dev アップグレード: 0 個、新規インストール: 62 個、削除: 0 個、保留: 0 個。 41.8 MB のアーカイブを取得する必要があります。 この操作後に追加で 190 MB のディスク容量が消費されます。
調査
インストールにあたり、以下を調査した。
libgtk-3-dev
Gtk3の開発環境はlibgtk-3-dev
をインストールするものらしい。
インストールされていないか確認してみたが、未インストールのようだ。
$ apt search libgtk-3 ソート中... 完了 全文検索... 完了 libgtk-3-0/stable,stable,now 3.22.11-1+rpi3 armhf [インストール済み、自動] GTK+ graphical user interface library libgtk-3-0-dbgsym/stable,stable 3.22.11-1+rpi3 armhf Debug symbols for libgtk-3-0 libgtk-3-bin/stable,stable 3.22.11-1+rpi3 armhf programs for the GTK+ graphical user interface library libgtk-3-bin-dbgsym/stable,stable 3.22.11-1+rpi3 armhf Debug symbols for libgtk-3-bin libgtk-3-common/stable,stable,now 3.22.11-1+rpi3 all [インストール済み、自動] common files for the GTK+ graphical user interface library libgtk-3-dev/stable,stable 3.22.11-1+rpi3 armhf development files for the GTK+ library libgtk-3-doc/stable,stable 3.22.11-1+rpi3 all documentation for the GTK+ graphical user interface library
$ apt search glade ソート中... 完了 全文検索... 完了 ... gir1.2-gladeui-2.0/stable,stable 3.20.0-2+rpt1 armhf GObject introspection data for the GTK+ User Interface library glade/stable,stable 3.20.0-2+rpt1 armhf GTK+ User Interface Builder glade-3/stable,stable 3.8.6 armhf Glade for GTK+2 glade-3-dbgsym/stable,stable 3.8.6 armhf Debug symbols for glade-3 glade-dbgsym/stable,stable 3.20.0-2+rpt1 armhf Debug symbols for glade guile-gnome2-gtk/stable,stable,stable,stable 2.16.4-1 armhf Guile bindings for GTK+, libglade, Pango and ATK gxw-glade/stable,stable,stable,stable 0.35.2-2 armhf Guitarix - GTK+ library Glade support ... libglade2-0/stable,stable,stable,stable,now 1:2.6.4-2 armhf [インストール済み、自動] library to load .glade files at runtime libglade2-dev/stable,stable,stable,stable 1:2.6.4-2 armhf development files for libglade libglade2.0-cil/stable-raspbianstretch,now 2.12.45-0xamarin14+raspbian9b1 armhf [インストール済み、自動] CLI binding for the Glade libraries 2.6 libglade2.0-cil-dbgsym/stable-raspbianstretch 2.12.45-0xamarin13+raspbian9b1 armhf Debug symbols for libglade2.0-cil libglade2.0-cil-dev/stable-raspbianstretch 2.12.45-0xamarin14+raspbian9b1 armhf CLI binding for the Glade libraries 2.6 libglademm-2.4-1v5/stable,stable,stable,stable 2.6.7-5 armhf C++ wrappers for libglade2 (shared library) libglademm-2.4-dbg/stable,stable,stable,stable 2.6.7-5 armhf C++ wrappers for libglade2 (debug symbols) libglademm-2.4-dev/stable,stable,stable,stable 2.6.7-5 armhf C++ wrappers for libglade2 (development files) libglademm-2.4-doc/stable,stable,stable,stable 2.6.7-5 all C++ wrappers for libglade2 (documentation) libgladeui-1-9/stable,stable,stable,stable 3.6.7-2.1 armhf GTK+ User Interface Build core library libgladeui-1-dev/stable,stable,stable,stable 3.6.7-2.1 armhf GTK+ User Interface Build core library (development files) libgladeui-2-6/stable,stable 3.20.0-2+rpt1 armhf GTK+ User Interface Build core library libgladeui-2-6-dbgsym/stable,stable 3.20.0-2+rpt1 armhf Debug symbols for libgladeui-2-6 libgladeui-common/stable,stable 3.20.0-2+rpt1 all GTK+ User Interface Build core library (common files) libgladeui-dev/stable,stable 3.20.0-2+rpt1 armhf GTK+ User Interface Build core library (development files) libgladeui-doc/stable,stable 3.20.0-2+rpt1 all GTK+ User Interface Build core library (documentation) libgtk2-gladexml-perl/stable,stable,stable,stable 1.007-2+b3 armhf Perl interface to use user interfaces created with glade-2 libgtk2-gladexml-simple-perl/stable,stable,stable,stable 0.32-2 all clean object-oriented perl interface to Gtk2::GladeXML libgtkdatabox-0.9.3-0-glade/stable,stable,stable,stable 1:0.9.3.0+dfsg-3 armhf Gtk+ library to display large amounts of numerical data (glade API) libgtkdatabox-0.9.3-0-libglade/stable,stable,stable,stable 1:0.9.3.0+dfsg-3 armhf Gtk+ library to display large amounts of numerical data (glade lib) ... python-glade2/stable,stable,stable,stable 2.24.0-5.1 armhf GTK+ bindings: Glade support ... wxglade/stable,stable,stable,stable 0.7.2-2 all GUI designer written in Python with wxPython