是什么 ? | : | a middleware layer between C libraries (using GObject) and language bindings |
开发语言 | : | C |
开发组织 | : | GNOME |
官方主页 | : | https://gi.readthedocs.io |
源码仓库 | : | https://gitlab.gnome.org/GNOME/gobject-introspection |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
macOS | HomeBrew | brew install gobject-introspection |
GNU/Linux | HomeBrew | brew install gobject-introspection |
apt | sudo apt-get install -y gobject-introspection | |
CentOS | yum | sudo yum install -y gobject-introspection |
dnf | sudo dnf install -y gobject-introspection | |
openSUSE | zypper | sudo zypper install -y gobject-introspection |
Alpine Linux | apk | sudo apk add gobject-introspection |
pacman | sudo pacman -Syyu --noconfirm | |
Gentoo Linux | Portage | sudo emerge gobject-introspection |
step1、安装依赖
所有时 | Terminal + Shell + GNU CoreUtils |
下载时 | cURL |
解压时 | tar + xz |
编译时 | meson、ninja、gcc / GCC | Clang / LLVM、GLib |
运行时 |
step2、使用curl命令下载gobject-introspection
源码包 ()
curl -LO https://download.gnome.org/sources/gobject-introspection/1.63/gobject-introspection-1.63.1.tar.xz
step3、使用tar解压gobject-introspection
源码包
tar vxf gobject-introspection-1.63.1.tar.xz
step4、进入gobject-introspection-1.63.1
目录
cd gobject-introspection-1.63.1
step5、查看gobject-introspection-1.63.1
目录的内容
6、使用meson配置编译参数
meson setup --prefix=$(pwd)/output --buildtype=release --backend=ninja build
step7、使用ninja编译、安装
ninja -C build && ninja -C build install