在linux下编译gloox需要的环境
来源:互联网 发布:mysql in和and起冲突 编辑:程序博客网 时间:2024/05/17 22:14
下载地址:
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 将共享目标文件打开并且映射到内存中,并且返回句柄
- dlsym返回一个指向被请求入口点的指针
- dlerror 返回 NULL 或者一个指向描述最近错误的 ASCII 字符串的指针
- dlclose关闭句柄并且取消共享目标文件的映射
动态链接装入器例程 dlopen 需要在文件系统中查找共享目标文件以打开文件并创建句柄。有 4 种方式用以指定文件的位置:
dlopen call
中的绝对文件路径- 在 LD_LIBRARY_PATH 环境变量中指定的目录中
- 在 /etc/ld.so.cache 中指定的库列表之中
- 先在 /usr/lib 之中,然后在 /lib 之中
*********************************************************/
算了,好好研究下gloox的API函数吧,这忙活一天对这个还不熟悉,不知道需要给什么接口,也没啥经验,熟悉熟悉API函数先,不懂再问问,加油!
gloox 支持基于老旧的XEP-0078定义的IQ认证,也支持SASL的机制。更多内容请参考Client类文档。Sending and Receiving fo Chat Messages ( 聊天消息的收发 )
对于消息传递,建议使用MessageSession虚拟接口类。它处理消息的收发,消息事件和聊天状态。
更多细节请参阅MessageSession文档。Protocol Enhancements(XEPs)(扩展协议)
XMPP标准基金会发布了许多核心协议的扩展,称为XMPP Extension Protocols(XEPs)(XMPP扩展协议)。
几个扩展协议己经在gloox中得到实现。 * XEP-0004 Data Forms
* XEP-0012 Last Activity
* XEP-0013 Flexible Offline Message Retrieval
* XEP-0022 Message Events (see MessageSession for examples)
* XEP-0027 Current Jabber OpenPGP Usage (see GPGSigned and GPGEncrypted )
* XEP-0030 Service Discovery
* XEP-0045 Multi-User Chat
* XEP-0047 In-Band Bytestreams
* XEP-0048 Bookmark Storage
* XEP-0049 Private XML Storage
* XEP-0050 Ad-hoc Commands
* XEP-0054 vcard-temp
* XEP-0065 SOCKS5 Bytestreams , used with File Transfer and HTTP and SOCKS5 Proxy support
* XEP-0066 Out of Band Data
* XEP-0077 In-Band Registration
* XEP-0078 Non-SASL Authentication (automatically used if the server does not support SASL)
* XEP-0083 Nested Roster Groups (automatically used if supported by the server. see RosterManager )
* XEP-0085 Chat State Notifications (see MessageSession for examples)
* XEP-0091 Delayed Delivery (old spec)
* XEP-0092 Software Version (integrated into Service Discovery )
* XEP-0095 Stream Initiation , used with File Transfer
* XEP-0096 File Transfer
* XEP-0114 Jabber Component Protocol
* XEP-0138 Stream Compression (used automatically if gloox is compiled with zlib and if the server supports it)
* XEP-0145 Annotations
* XEP-0153 vCard-based Avatars
* XEP-0203 Delayed Delivery (new spec)File Transfer (文件传输)为了文件传输,gloox 实现了XEP-0095(流初始化)以及XEP-0096(文件传输)的信号机制,
为传输实现了XEP-0065(SOCKS5 Bytestreams 流字节)。参考 SIProfileFT类。
另外,XEP-0047(In-Band Bytestreams)的实现目前在XEPs 0095 和 0096的信号上还不完整。
所以,gloox也许不适合向远程传送文件。参考InBandBytestreamManager类。HTTP and SOCKS5 Proxy support (http和socks5代理支持 )
gloox 有能力穿过http及SOCKS5代理,即便是连锁代理。参考ConnectionHTTPProxy类 和 ConnectionSocks5Proxy类
- 在linux下编译gloox需要的环境
- 在linux下编译gloox需要的环境
- glew在linux环境下的编译
- Linux下编译源码包需要的环境
- MQTT在linux下环境下的编译与配置
- ActiveMQ-CPP在linux环境下的编译
- ActiveMQ-CPP在LINUX环境下的编译
- ACE在Linux环境下的编译安装
- CAPI-PSLSE 在linux环境下的编译
- gloox 1.0的 wince编译
- 在Linux x86_64环境下编译memcached
- 在linux下建立交叉编译环境
- 在linux环境下编译C++ 程序
- linux QT 环境下配置编译opencv以及配置需要注意的问题。
- 在linux下编译多线程需要如下设置
- 在linux下编译多线程需要如下设置
- 需要在Linux环境下配置免安装版本的Tomcat
- gtk+在windows下的编译环境
- 【木头Cocos2d-x 027】Lua篇(第02章):Demo讲解之Lua和C++牵手
- 正式成为北漂一族
- 第十五、十六、十七、十八章、TIny4412 U-BOOT移植 LCD原理分析一、二、三、四
- ThinkPHP的一些常用方法
- 【木头Cocos2d-x 028】Lua篇(第03章):简单解析Lua的堆栈
- 在linux下编译gloox需要的环境
- 要有目标
- 学习笔记之——监听本地Broadcast Intent
- 从最小的开始,求下一个大于等于5的值,再从第求出的值开始,直至结束,求序列,CTE递归应用
- 【木头Cocos2d-x 029】Lua篇(第04章):来点高难度的,获取Lua表结构数据
- java多线程概念总结
- 为何以及如何使用Netlink Socket ( Why and How to Use Netlink Socket)
- 子空间投影
- 【木头Cocos2d-x 030】Lua篇(第05章):C++调用Lua的函数