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

7 thoughts on “How to complile fetion for pidgin on OpenSolaris 在Opensolaris上编译飞信

  1. 谢谢!
    个人认为下一版的OpenSolaris可能比Linux更适合大中华地区的广大民众,我们应该开始积极的推广,尤其在笔电及近来正红的小笔电上。

  2. 在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’

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s