[i=s] 本帖最后由 oohyoou 于 2011-5-15 16:25 编辑 [/i]
1,rpm 安装,yum localinstall
Requires: libnotify.so.1
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
xulrunner2-2.0.1-1.fc14.remi.i686 has missing requires of libnotify.so.1
重装libnotify,libnotify-dev后依赖仍然无法解决。
2,源码安装。
make 错误: make[3]: *** [ol_notify.o] 错误 1。。。。 应该也是libnotify.so.1的依赖问题吧。
3,打包,spec文件。
%global elfname osd-lyrics
Name: osdlyrics
Version: 0.3.20100604
Release: 2%{?dist}
Summary: An OSD lyric show compatible with various media players
Group: Applications/Multimedia
License: GPLv3
URL: http://code.google.com/p/osd-lyrics/
Source0: http://osd-lyrics.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Use our CXXFLAGS to properly generate debuginfo
BuildRequires: gtk2-devel, dbus-glib-devel, libcurl-devel, sqlite-devel
BuildRequires: libnotify-devel, xmms2-devel, libmpd-devel, gettext-devel
BuildRequires: libtool
#Requires: gtk2, dbus-glib, libcurl, libglade2
%description
Osd-lyrics is a third-party lyrics display program,
and focus on OSD lyrics display.
%prep
%setup -q
%build
aclocal
autoconf
automake --add-missing
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{elfname}
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{elfname}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS* README*
%{_bindir}/%{elfname}
%{_datadir}/applications/%{elfname}.desktop
%{_datadir}/icons/hicolor/*/*/%{elfname}*
%{_datadir}/%{elfname}/
%changelog
* Sun Jun 13 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.3.20100604-2
- Spec file massive rewritten
- Updated to 0.3.20100604
* Wed Jun 09 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100604-1
- Add Juk and Qmmp support
- Add app indicator support for Ubuntu 10.04
- Add singleton detection
- Honor MPD_HOST and MPD_PORT environment variables for MPD
- The `mouse click through' feature is back for GTK+ 2.20 users
- The appearance under a window manager without compositing support is correct now
- It won't crash now when you open the lyric assign dialog more than once
- The first line of lyric will not be lost when there is a BOM of utf-8 in the file.
- Fix that the last lyric doesn't get its progress with Rhythmbox.
* Wed Mar 31 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100330-1
- Download lyrics from MiniLyrics
- Player control on background panel of OSD Window
- Encoding detection of LRC files
- Display player icon in notification
- FIX: Can not hide OSD Window
- FIX: Advance/delay offset doesn't work from popup menu
- Some minor fixes
- Drop amarok-1.4 support
* Fri Feb 12 2010 Liang Suilong <liangsuilong@gmail.com> 0.3.20100212-1
- Choose which lyric to download if there are more than one candidates
- Search lyrics manually
- Adjust lyric delay
- Support Quod Libet
- Display track infomation on tooltip of the trayicon
- Show notification of track infomation on track change
- Launch prefered player if no supported player is running
- A more graceful background on OSD Window
- Use themeable icons
- FIX: Crashes when hiding OSD Window under some distribution
* Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100201-1
- FIX The program will not crash when DNS lookup timeout on searching or downloading lyrics
* Tue Feb 02 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100201-1
- FIX The program will not crash when DNS lookup timeout on searching or downloading lyrics
* Sat Jan 09 2010 Liang Suilong <liangsuilong@gmail.com> 0.2.20100109-1
- Add MOC support
- Fix dowloading fails when title or artist is not set
* Wed Dec 30 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20091227-1
- Add mpd support
- Add BR: libmpd-devel
- Enable Amarok 1.4 support
* Tue Sep 22 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20090919-2
- Add gettext-devel as BuildRequires
* Sat Sep 19 2009 Liang Suilong <liangsuilong@gmail.com> 0.2.20090919-1
- Inital package for Fedora
rpm -ba *.spec
ol_notify.c:20:41: error: unknown type name 'GtkWidget'
ol_notify.c:26:14: error: unknown type name 'GtkWidget'
ol_notify.c: In function 'ol_notify_music_change':
ol_notify.c:102:38: warning: initialization makes pointer from integer without a cast [enabled by default]
make[3]: *** [ol_notify.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/ol_stock.Tpo .deps/ol_stock.Po
make[3]: Leaving directory `/home/hl/rpmbuild/BUILD/osdlyrics-0.3.20100604/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hl/rpmbuild/BUILD/osdlyrics-0.3.20100604/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hl/rpmbuild/BUILD/osdlyrics-0.3.20100604'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.etAk80 (%build)
yum reinstall 多少次都一样,都是无法解决依赖。最后,在虚拟机的 fc14拷贝 libnotify.so.1 到/usr/lib下。。。还是无法解决依赖问题。
假设:ln -s /usr/lib/libnotify.so.4.0.0 /usr/lib/libnotify.so.1.......结果也不成立。
请问大家这个问题要怎么解决呢?(5ty(
刚才fuck gfw google了一下,libnotify-0.7版本默认不带libnotify.so.1....应该是被libnotify.so.4取代了。
ls /usr/lib|grep libnotify
libnotify.so
libnotify.so.4
libnotify.so.4.0.0
果断ln -sv /usr/lib/libnotify.so.4 /usr/lib/libnotify.so.1
结果仍然报错!!!
得把软件依赖改成libnotify.so.4了,水平有限阿!!(5ty(
最后一招吧。。。。rpm -ivh --force *.rpm --nodeps。。。强行安装。。忽略依赖!!!
正常显示歌词!!!不过有些迟钝!!!
(随能用,但终不是完美解决方法。。)
alick 于 2011-05-18 22:45:13发表:
最好期待 osd-lyrics 更新,支持libnotify-0.7 版本,
或者自己动手,丰衣足食,修改源代码。
我编译安装pcmanx 1.0 时,发现 libnotify-0.7 的一个函数接口和之前的不一样。
oohyoou 于 2011-05-18 21:00:01发表:
2# miucat
今天安装云输入的时候才发现0。5与0。7可以并存。。呵呵。。:0wl;l1
oohyoou 于 2011-05-18 20:59:00发表:
2# miucat
今天安装云输入的时候才发现0。5与0。7可以并存。。呵呵。。:0wl;l1
shenhao0129 于 2011-05-15 21:24:42发表:
这么复杂啊,没碰到过的说
oohyoou 于 2011-05-15 21:15:56发表:
2# miucat
今天有找过。。
降级安装。。或者打patch{:3_116:}
miucat 于 2011-05-15 16:59:43发表:
[i=s] 本帖最后由 miucat 于 2011-5-15 17:02 编辑 [/i]
去http://rpm.pbone.net找找呗。
送给你http://rpm.pbone.net/index.php3/stat/4/idpl/15519350/dir/fedora_13/com/libnotify-0.5.0-1.fc13.i686.rpm.html