LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 772|回复: 7

编译安装OpenQ0.3p2成功及不足之处的探讨

[复制链接]
发表于 2004-5-29 02:17:19 | 显示全部楼层 |阅读模式
今天比较闲,就把QQ重新装成了最新的OpenQ0.3p2。由于看到很多兄弟有关于找不到qq插件的疑问,因此感觉应该写出来让大家少走弯路。
首先我们需要在http://openq.linuxsir.cn/cgi-bin/wiki/moin.cgi/_cf_c2_d4_d8下载 OpenQ 0.3-src和 OpenQ 0.3.0-p2这两个源代码包。前者是OpenQ的源代码包,后者是补丁包。这里就是为什么许多人安装完源代码包一切正常却找不到qq插件的原因了,就是没有安装那个p2的补丁包,很多朋友可能看过南北兄写过的一片关于0.2.7.1版本改ld.so.conf配置文件来解决qq插件问题的帖子,也有很多人盲目引用其中内容来回帖解答别人的问题,但这一切北南兄是在0.2.7.1版本基础上写的,当然已经是前朝旧事了,在0.3.0版本中是个bug,需要用p2补丁程序解决。
解决办法很简单,用p2的内容覆盖/openQ-0.3/gaim-0.77/src/protocols/qq目录中的内容然后编译安装就可以了,一切顺利,就可以享受胜利果实了。
但这样下来,似乎依然有bug,当然也许是偶配置有误,因此发出来大家讨论一下:
1、声音只用控制台一种响铃声音,原有的4种声音文件无法加载。
2、已经把那个IP地址的库文件QQWry-20040330.dat考到了.gaim目录,但仍然不能支持ip地址显示。
3、加入一个群号以后,双击群号,就crash掉了: (

比较明显的不如以前版本的地方目前发现这几处,不知道其他兄弟的情况如何?
发表于 2004-5-29 07:55:50 | 显示全部楼层
1,安装audiofile-devel libao-devel
2,在没有开启gaim的情况下,修改/root/.gaim/prefx.xml
<pref name='ipfile' type='string' value='QQWry.dat' />
3,没碰到,RPM系统想稳定,一般大家最好自己获得src.rpm,然后针对自己的系统打包,或者至少是同一个发行版本,同一个版本号的使用者发布的版本,不要乱--nodeps --force非常错误的安装方式,不推荐大家使用这两个参数,可能导致其它包出问题,

[quote]%define name       gaim
%define version    0.77
%define rel    1
%define prefix     /usr
%define sysconfdir /etc

Summary:    A Gtk+ based multiprotocol instant messaging client
Name:       %{name}
Version:    %{version}
Release:    %{rel}
License:    GPL
Group:      Applications/Internet
URL:        http://gaim.sourceforge.net/
Source0:     %{name}-%{version}.tar.bz2
Source1:      QQWry-20040330.dat
Source2:       qqsmileys.tar.bz2
Patch0:       gaim-cvs-0218-msn_displayer_face.patch
BuildRoot:  %{_tmppath}/%{name}-%{version}-root
Requires:   gtk2 >= 2.0.0, audiofile, libao
BuildRequires: libao-devel, gtk2-devel, libtool, audiofile-devel, pkgconfig
%description
Gaim allows you to talk to anyone using a variety of messaging
protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!,
MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr.  These
protocols are implemented using a modular, easy to use design.  
To use a protocol, just add an account using the account editor.

Gaim supports many common features of other clients, as well as many
unique features, such as perl scripting, TCL scripting and C plugins.

Gaim is NOT affiliated with or endorsed by America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., or ICQ Inc.

#%description devel

#The gaim-devel package contains the header files, developer
#documentation, and libraries required for development of gaim scripts
#and plugins.

%package OpenQ
Summary: Openq-0.3.0.p2
Group: Applications/Internet
License:    GPL
Group:      Applications/Internet
URL:        http://openq.linuxsir.net
Requires: gaim

%description OpenQ
This project is to build a Linux/Unix port of the most popular Internet messgaing tool in China - oicq(QQ).
QQ (Original Oicq) is the most favorate ICQ tool in China.So Linux users can also enjoy the QQ\\\\\\\'s great function

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .msn

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
                                    --bindir=%{_bindir} \
                                    --datadir=%{_datadir} \
                                    --includedir=%{_includedir} \
                                    --libdir=%{_libdir} \
                                    --mandir=%{_mandir} \
                                    --sysconfdir=%{_sysconfdir} \
                                    --with-perl-lib=$RPM_BUILD_ROOT%{_prefix}
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
     datadir=$RPM_BUILD_ROOT%{_datadir} includedir=$RPM_BUILD_ROOT%{_includedir} \
     libdir=$RPM_BUILD_ROOT%{_libdir} mandir=$RPM_BUILD_ROOT%{_mandir} \
     sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
     install
#install IP date
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/gaim/QQWry.dat
install -d $RPM_BUILD_ROOT%{_datadir}/applnk/Vendor_menus/Applications/Internet
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/applnk/Vendor_menus/Applications/Internet
install -d $RPM_BUILD_ROOT%{_datadir}/applnk/Internet
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/applnk/Internet
install -d $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/
install -m 644 gaim.desktop $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet

#install qqsmileys
install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps/gaim/
( cd $RPM_BUILD_ROOT%{_datadir}/pixmaps/gaim/
tar Ixf %{SOURCE2}
chmod -Rf a+rX,g-w,o-w .
)
rm -f $RPM_BUILD_ROOT/%{_libdir}/perl5/*/*/perllocal.pod

%clean
#rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)

%doc doc/the_penguin.txt doc/CREDITS NEWS COPYING AUTHORS COPYRIGHT
%doc README ChangeLog
%doc %{_mandir}/man1/*
#%doc %{_mandir}/man3/*

%dir %{_libdir}/gaim
%attr(755, root, root) %{_libdir}/gaim/autorecon.*
%attr(755, root, root) %{_libdir}/gaim/docklet.*
%attr(755, root, root) %{_libdir}/gaim/gaim-remote.*
%attr(755, root, root) %{_libdir}/gaim/gestures.*
%attr(755, root, root) %{_libdir}/gaim/history.*
%attr(755, root, root) %{_libdir}/gaim/iconaway.*
%attr(755, root, root) %{_libdir}/gaim/idle.*
%attr(755, root, root) %{_libdir}/gaim/libgg.*
%attr(755, root, root) %{_libdir}/gaim/libirc.*
%attr(755, root, root) %{_libdir}/gaim/libjabber.*
%attr(755, root, root) %{_libdir}/gaim/libmsn.*
%attr(755, root, root) %{_libdir}/gaim/libnapster.*
%attr(755, root, root) %{_libdir}/gaim/liboscar.*
#%attr(755, root, root) %{_libdir}/gaim/libtoc.*
%attr(755, root, root) %{_libdir}/gaim/libyahoo.*
%attr(755, root, root) %{_libdir}/gaim/libzephyr.*
%attr(755, root, root) %{_libdir}/gaim/notify.*
%attr(755, root, root) %{_libdir}/gaim/perl.*
%attr(755, root, root) %{_libdir}/gaim/relnot.*
%attr(755, root, root) %{_libdir}/gaim/spellchk.*
%attr(755, root, root) %{_libdir}/gaim/ssl-gnutls.*
%attr(755, root, root) %{_libdir}/gaim/ssl.*
%attr(755, root, root) %{_libdir}/gaim/ssl-nss.*
%attr(755, root, root) %{_libdir}/gaim/statenotify.*
%attr(755, root, root) %{_libdir}/gaim/tcl.*
%attr(755, root, root) %{_libdir}/gaim/ticker.*
%attr(755, root, root) %{_libdir}/gaim/timestamp.*


%attr(755, root, root) %{_libdir}/libgaim-remote.*
#%attr(755, root, root) %{_libdir}/perl5
#%attr(755, root, root) %{prefix}/lib/perl5/*/*-linux*/*

%{_bindir}/*
%{_datadir}/locale/*/*/*
%{_datadir}/pixmaps/*
%dir %{_datadir}/sounds/gaim
%{_datadir}/sounds/gaim/*
#%{_datadir}/applications/*
%{_datadir}/applnk/Internet/gaim.desktop
%{_datadir}/applnk/Vendor_menus/Applications/Internet/gaim.desktop
%{_datadir}/gnome/apps/Internet/gaim.desktop

#%files devel

#%doc plugins/HOWTO
#%doc HACKING PROGRAMMING_NOTES

#%attr(755, root, root) %{_libdir}/libgaim-remote.la
#%dir %{_includedir}/gaim-remote
#%{_includedir}/gaim-remote/*.h

%files OpenQ
%attr(755,root,root) %{_libdir}/%{name}/libqq.*
%attr(755, root, root) %{_libdir}/gaim/QQWry.dat

%changelog
* Thu May 06 2004 dato <datocp@hotmail.com>
- rebulid for turbolinux

* Thu Jan 15 2004 Ethan Blanton <eblanton@cs.ohiou.edu>
- Removed the manual strip command, as it seems to be unwarranted if
  the necessary programs are properly installed.  (For me, this was
  elfutils.)

* Sun Jul 20 2003 Bjoern Voigt <bjoern@cs.tu-berlin.de>
- Added pkgconfig build dependency.
- if "%{_vendor}" != "MandrakeSoft" now also works with rpm 3.x.
- Added Gaim-specific directories to list of Gaim's files.

* Wed Jul 16 2003 Ethan Blanton <eblanton@cs.ohiou.edu>
- Complete spec file rewrite to take advantage of "new" RPM features
  and make things prettier.
- Use system-supplied %%{_prefix}, %%{_datadir}, etc. rather than
  attempt to define our own.
[/quote]
 楼主| 发表于 2004-5-29 09:38:35 | 显示全部楼层
好像不行的
发表于 2004-5-29 14:28:06 | 显示全部楼层
我先编译安装了一次源码包,之后想起来没有覆盖...
make uninstall
覆盖qq文件夹里的内容再编译可以吗?
发表于 2004-5-29 17:50:11 | 显示全部楼层
http://www.linuxsir.cn/forum.php ... ip&pagenumber=2
你可以先覆盖
然后./configure 不要运行make
cd到/openQ-0.3/gaim-0.77/src/protocols/qq
然后make 生成新插件

用strip 来减少体积
发表于 2004-5-29 18:20:53 | 显示全部楼层
3 没有遇到过
如果你是从旧版本(例如0.2.7)升级上来的话,试试删除~/.gaim目录后重新注册帐号,看看能否解决。
再无法解决,可以在console用gaim -d命令启动,在crash以后把最后的30行输出贴出来看看~~~
发表于 2004-5-29 20:37:56 | 显示全部楼层
不知道有没有相应的ebuild
发表于 2004-6-12 21:59:51 | 显示全部楼层
不会加群。群里说话我也看不到不知道怎么办了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表