How to complile fetion for pidgin on OpenSolaris 在Opensolaris上编译飞信
转载时请以超链接形式标明文章原始出处和作者信息
http://blogs.sun.com/weixue/entry/how_to_complile_fetion_for
在Opensolaris上使用pidgin这个即时通信客户端,可以支持很多的协议。但是国内流行的QQ和飞信在最新官方的Opensoalris发布版里都没有加入这两个协议的支持。本文讲述如何在pidgin中使用飞信的扩展。这里是编译好的飞信扩展libfetion.so,(感谢SunYong同学编译的release版:))下载后放到 /usr/lib/purple-2 目录下,重新启动pidgin即可。
下面说说如何自己动手编译飞信fetion,首先在Opensoalris中搭建编译环境,可参考这篇文章。(如果你觉得这篇难看懂,就把Sunstudio装上先,然后装下列包pkg install ss-dev SUNWxwinc SUNWxorg-headers SUNWgnome-common-devel SUNWperl-xml-parser SUNWiconv-unicode SUNWiconv-extra SUNWgit SUNWgm4 SUNWgnu-gettext SUNWperl-xml-parser SUNWGlib SUNWgnu-automake-110 SUNWaconf)
编译的步骤:
下载 fetion protocol,将fetion目录整个拷贝到:
../libpurple/protocols
修改:
../libpurple/protocols/Makefile.in and Makefile.am
在DIST_SUBDIRS中增加fetion
修改:
configure.ac,
照着qq的位置加入fetion
编译:
aclocal
autoconf
automake -a -f -c
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --disable-binreloc --enable-gnutls=no --with-nss-includes=/usr/include/mps --with-nss-libs=/usr/lib/mps --with-nspr-includes=/usr/include/mps --with-nspr-libs=/usr/lib/mps --enable-gnome-keyring --enable-gevolution --enable-cap --disable-meanwhile --disable-nm --disable-consoleui --with-perl-lib=vendor --disable-nss CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC
make








Cool! OpenSolaris的用户体验又上了一个台阶。
Posted by Paul on March 20, 2009 at 05:57 PM CST #
谢谢!
个人认为下一版的OpenSolaris可能比Linux更适合大中华地区的广大民众,我们应该开始积极的推广,尤其在笔电及近来正红的小笔电上。
Posted by W. Wayne Liauh on March 21, 2009 at 02:04 AM CST #
W. Wayne Liauh,
不客气,我也是在InstallFest http://blogs.sun.com/weixue/entry/installfest_for_colleges_beiyou_beijing 的时候,发现很多学生用户非常关心是否能用这个飞信,于是才找到这个东东。还有QQ的协议,似乎还是不公开的。
Posted by xue on March 22, 2009 at 10:22 PM CST #
打扰!
我在使用pidgin的时候需要填写一个“服务器”项,但是我不知道fetion的服务器IP是多少?
Posted by WayneLiu on April 12, 2009 at 10:31 AM CST #
可以不填。
Posted by xue on April 15, 2009 at 02:28 PM CST #
在solaris nevada下编译,需要加上XGETTEXT=gxgettext
/configure: '--prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--disable-binreloc' '--enable-gnutls=no' '--with-nss-includes=/usr/include/mps' '--with-nss-libs=/usr/lib/mps' '--with-nspr-includes=/usr/include/mps' '--with-nspr-libs=/usr/lib/mps' '--enable-gnome-keyring' '--enable-gevolution' '--enable-cap' '--disable-gtkspell' '--disable-meanwhile' '--disable-nm' '--disable-consoleui' '--with-perl-lib=vendor' 'CC=/opt/SUNWspro/bin/cc' 'CFLAGS=-i -xO4 -xspace -xstrconst -xpentium -mr -xregs=no%frameptr -DHAVE_ALLOCA_H -DG_IMPLEMENT_INLINES -DG_HAVE_ISO_VARARGS' 'LDFLAGS= -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect ' 'CXX=/opt/SUNWspro/bin/CC' 'MAKE=gmake' XGETTEXT=gxgettext'
Posted by Louis Liu on April 25, 2009 at 10:18 PM CST #
Louis, Thanks for your information!
Posted by xue on April 28, 2009 at 12:16 PM CST #