目录[-]


1、下载 gloox

gloox官方网站:https://camaya.net/gloox

2、安装 gloox

• 对下载的文件进行解压
• 进入解压的文件路径

cd gloox/gloox-1.0.22

• 配置文件 - 此步骤主要是针对特定平台进行软件编译器配置

 ./configure
# 编译文件
 make
# 安装 gloox
 sudo make install

3、使用 gloox

# 将gloox/gloox-1.0.22/src/.libs目录下的 libgloox.so 拷贝至系统lib目录下
sudo cp gloox/gloox-1.0.22/src/.libs/libgloox.so /lib

4、安装过程可能出现的问题

• warning: 'aclocal-1.15' is missing on your system

解决步骤如下:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
tar xzf autoconf-2.68.tar.gz
cd autoconf-2.68
./configure
make
sudo make install

• checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.

解决步骤如下:

wget http://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
tar -zxvf m4-1.4.18.tar.gz
cd m4-1.4.18/
./configure
make
sudo make install

• warning: 'aclocal-1.15' is missing on your system 持续出现

sudo apt-get install automake # for Ubuntu