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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了