3A5000 编译 gnome-commander 1.14.3 + glib-2.68.2
安装最新版本的meson 0.64.1
sudo python3 -m pip install meson
下载 glib2.68.2
https://download.gnome.org/sources/glib/
解压后
cd glib-* # change to the toplevel directory
meson _build --prefix /usr/local/glib-2.68.2 # configure the build
ninja -C _build # build GLib
ninja -C _build install
glib2.68.2 安装在 /usr/local/glib-2.68.2
下载gnome-commander-1.14.3
https://download.gnome.org/sources/gnome-commander/1.14/gnome-commander-1.14.3.tar.xz
解压到 gc-1.14.3
设置环境变量选择编译用glib2.68.2
export PKG_CONFIG_PATH=/usr/local/glib-2.68.2/lib/loongarch64-linux-gnu/pkgconfig
然后配置编译
cd gc-1.14.3
./configure
make -j4
sudo make install
通过readelf查看动态链接库依赖,如果你usr/lib里装的不是2.68.2就需要复制库文件到 Library runpath
$ readelf -d gnome-commander
Dynamic section at offset 0x123cf0 contains 44 entries:
标记 类型 名称/值
0x0000000000000001 (NEEDED) 共享库:[libgcmd.so.0]
0x0000000000000001 (NEEDED) 共享库:[libgmodule-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libpthread.so.0]
0x0000000000000001 (NEEDED) 共享库:[libgtk-x11-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libgdk-x11-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libpangocairo-1.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libatk-1.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libcairo.so.2]
0x0000000000000001 (NEEDED) 共享库:[libgdk_pixbuf-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libgio-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libpangoft2-1.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libpango-1.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libgobject-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libglib-2.0.so.0]
0x0000000000000001 (NEEDED) 共享库:[libfontconfig.so.1]
0x0000000000000001 (NEEDED) 共享库:[libfreetype.so.6]
0x0000000000000001 (NEEDED) 共享库:[libstdc++.so.6]
0x0000000000000001 (NEEDED) 共享库:[libm.so.6]
0x0000000000000001 (NEEDED) 共享库:[libgcc_s.so.1]
0x0000000000000001 (NEEDED) 共享库:[libc.so.6]
0x000000000000001d (RUNPATH) Library runpath: [/usr/local/lib/gnome-commander]
0x0000000000000019 (INIT_ARRAY) 0x1201279a0
复制 /usr/local/glib-2.68.2/lib/loongarch64-linux-gnu 中的所有so到 Library runpath /usr/local/lib/gnome-commander
启动gc
gnome-commander
浙公网安备 33010602011771号