1. Download the OSD lyrics source code
You can download it from https://code.google.com/p/osd-lyrics/downloads/list, or use git:
git clone git://github.com/osdlyrics/osdlyrics.git
2. Extract the source code package
TAR-ZXF osdlyrics-0.4.3.tar.gzmv osdlyrics-0.4.3 osdlyricscd osdlyrics
(If you downloaded it from git, go directly to the source code directory)
3. Modify the contents of the Title_pattern and Artist_pattern variables of the src/ol_lrc_fetch_xiami.c, i.e., 34, 35 lines to:
static const char *title_pattern = "href=\" http://www.xiami.com/song/"; static const char *artist_pattern =" href=\ "http ://www.xiami.com/artist/";
4. Installation dependency: Install the necessary dependencies according to the Https://code.google.com/p/osd-lyrics/wiki/InstallSource, i.e.
For Deb systemsbuild-essentialautoconf automake libtool Intltoollibgtk2.0-dev >= 2.12.0libdbus-glib-1-devlibcurl3-devlibnotify-devlibsqlite3-dev >= 3.3.0libmpd-dev (This was unnecessary if you Configure with--DISABLE-MPD option) Libxmmsclient-dev (this was unnecessary if you configure with--DISABLE-XMMS2 option) Li Bappindicator-dev (Optional for Ubuntu 10.04 or later, support for Indicator-applet) for RPM SYSTEMSGCC gcc-c++autoconf AUT Omake libtool intltoolgtk2-devel >= 2.12.0dbus-glib-devellibcurl-devellibnotify-develsqlite-devellibmpd-devel ( This is unnecessary if you configure with--DISABLE-MPD option) Xmms2-devel (this is the unnecessary if you configure with--di SABLE-XMMS2 option)
5. Compiling
./configuremake
(If the./configure reminder is missing a dependent package, install it as a reminder)
6. Compile successfully, use command make install follow, make uninstall uninstall, pay attention to permissions issue
Reference:
Https://code.google.com/p/osd-lyrics/wiki/InstallSource
https://code.google.com/p/osd-lyrics/issues/detail?id=313
Compiling the OSD lyrics allows it to download lyrics from shrimp