以Ubuntu为例,先安装
编译会报错,需要修改
talk/base/stringutils.h
talk/base/base64.h
talk/xmpp/xmppclient.h
talk/p2p/base/sessionmanager.h 160
类似如下,
参看一下编译出错的行号就可以找到,很好改。
参考Resources:
http://groups.google.com/group/google-talk-open/browse_thread/thread/bf92d054c144f167
- sudo apt-get install build-essential
- sudo apt-get install expat
- sudo apt-get install libexpat1-dev
- sudo apt-get install libssl-dev
- sudo apt-get install pkg-config
- sudo apt-get install gtk+2.0
./configure
make
编译会报错,需要修改
talk/base/stringutils.h
talk/base/base64.h
talk/xmpp/xmppclient.h
talk/p2p/base/sessionmanager.h 160
类似如下,
From:
inline static const char* Traits<char>::empty_str() { return ""; }
To:
inline static const char* empty_str() { return ""; }
参看一下编译出错的行号就可以找到,很好改。
参考Resources:
http://groups.google.com/group/google-talk-open/browse_thread/thread/bf92d054c144f167
http://cyclone.blog.ubuntu.org.cn/2008/01/23/libjingle-create-a-program/
Errors:
1. ../../../../../../../../kopete/protocols/jabber/googletalk/libjingle/talk/base/socketaddress.cc:284:49: error: 'gethostname' was not declared in this scope
-->https://bugs.kde.org/show_bug.cgi?id=299449
-->http://websvn.kde.org/?view=revision&revision=1290696
revision 1290695, Sun Jun 13 20:23:29 2010 UTC | revision 1290696, Sat Apr 21 10:03:23 2012 UTC | |
---|---|---|
# | Line 31 | Line 31 |
31 | #include <netinet/in.h> | #include <netinet/in.h> |
32 | #include <arpa/inet.h> | #include <arpa/inet.h> |
33 | #include <netdb.h> | #include <netdb.h> |
34 | #include <unistd.h> | |
35 | #endif | #endif |
36 | ||
37 | #include <cstring> | #include <cstring> |