现在的位置: 首页 > 综合 > 正文

Linux下安装飞信客户端(OpenFetion)

2013年10月30日 ⁄ 综合 ⁄ 共 998字 ⁄ 字号 评论关闭

主机平台:Gentoo 11.2

内核版本:Linux Kernel 3.2.1

1、首先下载OpenFetion源代码

CSDN资源下载:http://download.csdn.net/detail/yming0221/4159390

或者直接google搜索下

2、解压源代码

tar xvf openfetion-1.9.tar.gz

3、进入目录开始配置编译

cd openfetion-1.9

./configure

make

sudo make install

正常情况下可以启动,本人安装过程中遇到的问题如下:

问题 1:

解决方法:

修改src/fx_main.c文件的110行

	gtk_window_set_default_size(GTK_WINDOW(fxmain->window) , WINDOW_WIDTH , WINDOW_HEIGHT);
	GdkPixbuf* icon = gdk_pixbuf_new_from_file_at_size(SKIN_DIR"fetion.svg" , 48 , 48 , NULL);
	gtk_window_set_icon(GTK_WINDOW(fxmain->window) , icon);
	fxmain->trayIcon = gtk_status_icon_new_from_file(SKIN_DIR"offline.svg");
	gtk_status_icon_set_tooltip(fxmain->trayIcon , "OpenFetion");
//#ifdef USE_LIBNOTIFY
#if 0
	fxmain->notify = notify_notification_new_with_status_icon("welcome"
			, "" , NULL , fxmain->trayIcon);
	notify_notification_set_timeout(fxmain->notify , 2500);
#endif

问题 2:

启动飞信时提示

 openfetion: error while loading shared libraries: libofetion.so.0: cannot open shared object file: No such file or directory

解决方法:

打开/etc/ld.so.conf查看下里面是否存在/usr/local/lib,如果不存在手动加上,然后以root用户权限执行ldconfig

启动正常。

抱歉!评论已关闭.