下载地址:
http://camaya.net/gloox/download
【流程 】
1、Zlib下载并安装
2、下载openssl编译并安装
3、下载gloox编译并安装如果支持openssl需要按照如下编译
./configure --with-openssl=/usr/local/ssl --with-zlib --enable-static
编译时候如果出现
dso_dlfcn.c:(.text+0x2e5): undefined reference to `dlsym'
可以在Makefile中加上-ldl
LIBS = -lresolv -lresolv -lssl -lcrypto -lz
后面加上
-ldl
即是
LIBS = -lresolv -lresolv -lssl -lcrypto -lz -ldl
【关于dl lib参考以下】
/*********************************************************
Linux 提供 4 个库函数( dlopen
, dlerror
, dlsym
和 dlclose
),一个 include 文件( dlfcn.h
)以及两个共享库(静态库 libdl.a
和动态库 libdl.so
),以支持动态链接装入器。这些库函数是:
动态链接装入器例程 dlopen 需要在文件系统中查找共享目标文件以打开文件并创建句柄。有 4 种方式用以指定文件的位置:
dlopen call
中的绝对文件路径 *********************************************************/
联系客服