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/

下载 glib-2.68.2.tar.xz

解压后

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

 

posted on   zxddesk  阅读(67)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示