当前位置: 首页 > 工具软件 > Glade > 使用案例 >

一、Glade-3安装配置

窦志新
2023-12-01

1 下载源码

下载链接

2 编译

./configure
make
sudo make install

3 问题记录

3.1 configure 没有指定编译类型

configure: error: cannot guess build type; you must specify one

# 指定类型
./configure -host=arm-linux -build=arm-linux

3.2 没有连接gmodule-2.0

/usr/bin/ld: glade_3-main.o: undefined reference to symbol ‘g_module_supported’
//usr/lib/aarch64-linux-gnu/libgmodule-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

  1. 打开文件configure.ac
  2. 找到PKG_CHECK_MODULES(GTK, [gtk±2.0 >= 2.20 gthread-2.0 libxml-2.0 >= 2.4.0])文段,添加gmodule-2.0,修改结果如下
    PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.20 gthread-2.0 gmodule-2.0 libxml-2.0 >= 2.4.0])

 3.build

make clean
mv ./configure ./configure-broken
make configure
./configure
make
sudo make install ## you are done!

3.3 安装成功之后缺少依赖库无法运行

glade-3: error while loading shared libraries: libgladeui-1.so.11: cannot open shared object file: No such file or directory

sudo sudo apt-get install libgladeui*
 类似资料: