编译osd lyrics使其可以从虾米下载歌词

1. 下载osd lyrics源代码

可以从https://code.google.com/p/osd-lyrics/downloads/list下载,或者用git:

git clone git://github.com/osdlyrics/osdlyrics.git

2. 解压源代码包

tar -zxf osdlyrics-0.4.3.tar.gz
mv osdlyrics-0.4.3 osdlyrics
cd osdlyrics
(如果是用git下载的,直接进入源代码目录)

3. 修改src/ol_lrc_fetch_xiami.c的TITLE_PATTERN及ARTIST_PATTERN变量的内容为,即34、35行改为:

static const char *TITLE_PATTERN = "href=\"http://www.xiami.com/song/";
static const char *ARTIST_PATTERN = "href=\"http://www.xiami.com/artist/";
4. 安装依赖:根据 https://code.google.com/p/osd-lyrics/wiki/InstallSource安装必要的依赖,即
For deb systems
build-essential
autoconf automake libtool intltool
libgtk2.0-dev >= 2.12.0
libdbus-glib-1-dev
libcurl3-dev
libnotify-dev
libsqlite3-dev >= 3.3.0
libmpd-dev (this is unnecessary if you configure with --disable-mpd option)
libxmmsclient-dev (this is unnecessary if you configure with --disable-xmms2 option)
libappindicator-dev (Optional for Ubuntu 10.04 or later, support for indicator-applet)
For rpm systems
gcc gcc-c++
autoconf automake libtool intltool
gtk2-devel >= 2.12.0
dbus-glib-devel
libcurl-devel
libnotify-devel
sqlite-devel
libmpd-devel (this is unnecessary if you configure with --disable-mpd option)
xmms2-devel (this is unnecessary if you configure with --disable-xmms2 option)
5. 编译
./configure
make
(如果执行./configure提醒缺少依赖包,按提醒安装吧)

6.编译成功,可用命令make install按照,make uninstall卸载,注意权限问题


参考:

https://code.google.com/p/osd-lyrics/wiki/InstallSource

https://code.google.com/p/osd-lyrics/issues/detail?id=313


你可能感兴趣的:(linux,编译,歌词,osdlyrics)