Well, I'm new to the forum, but I thought, that this howto may be worth being posted.
As a huge fan of Amarok I was a little distraced in Jaunty by the changes that the new Amarok 2 and so on implied and switched back to 1.4
In Karmic, I decided to give Amarok 2.2 a try but stated, that there's still a lot to do until the program reaches the quality of 1.4.10.
Which meant, that I installed the old version again. In order to avoid any foreign ppa, I compiled it from source. This is how I did this:
NOTE: An existing Installation of amarok 2 will be broken after the following steps, so backup you data!
----------------------------------
(Start a terminal)
First: Satisfy dependencies (I'm not sure, if all of them are really necessary)
Code:
sudo apt-get install kdelibs4-dev libxine-dev libdbus-qt-1-dev libtag1-dev libsqlite3-dev libtunepimp-dev libmysqlclient15-dev libpq-dev libvisual-0.4-dev libsdl1.2-dev libifp-dev
libusb-dev libnjb-dev ruby ruby1.8-dev x11proto-core-dev automake libtool
libxine1 libxine1-ffmpeg build-essential checkinstall
For iPod support:
Code:
sudo apt-get install libgpod-common libgpod4 libgpod-dev gtkpod
Second: Download and install the source code to a directory you wish. I used here my Downloads Folder and enter the folder
Code:
cd Downloads
wget http://download.kde.org/stable/amarok/1.4.10/src/amarok-1.4.10.tar.bz2
tar -xvf amarok-1.4.10.tar.bz2
cd amarok-1.4.10
Third: Well, the source and the 4.4 Version of the GNU C/#/++-Compilers do not work that well and amarok 1.4 isn't maintained anymore. So we have to apply a patch which will change the code to an up-to-date state (the one who wants can apply here a patch for the non-functioning cover-fetcher as well).
Code:
wget http://bugs.kde.org/attachment.cgi?id=32838 -O amarok-1.4.10-gcc44.patch
patch -p1 < amarok-1.4.10-gcc44.patch
(covermanager-fix:
Code:
wget http://mail.kde.org/pipermail/amarok/attachments/20090822/52116f4a/attachment-0001.dll -O covermanager-fix.patch
patch -p1 < covermanager-fix.patch
)
Fourth: Wikipedia-Fix
Getting the Wikipedia infos is broken in the origin code. So we'll patch it with a solution provided on launchpad (https://bugs.launchpad.net/ubuntu/+s...k/+bug/316140/)
Code:
wget http://launchpadlibrarian.net/34885946/99_fix_wikipedia_lookup.patch -O wikipedia-lookup.patch
patch -p1 < wikipedia-lookup.patch
I wasn't that satisfied with the search results. It was looked for "artist (band)" etc. which resulted in almost no success. So I changed two lines in the code with the following two commands to look for just the artist and so improve the results of wikipedia search.
Code:
sed 's/return " (band)";/return "";/g' amarok/src/contextbrowser.cpp > amarok/src/contextbrowser.cpp.tmp
sed 's/return " (Band)";/return "";/g' amarok/src/contextbrowser.cpp.tmp > amarok/src/contextbrowser.cpp
sed 's/return " (album)";/return "";/g' amarok/src/contextbrowser.cpp > amarok/src/contextbrowser.cpp.tmp
mv amarok/src/contextbrowser.cpp.tmp amarok/src/contextbrowser.cpp
sed 's/return " (song)";/return "";/g' amarok/src/contextbrowser.cpp > amarok/src/contextbrowser.cpp.tmp
mv amarok/src/contextbrowser.cpp.tmp amarok/src/contextbrowser.cpp
Fifth: Compile and install the source code
Since I'm under gnome I need to use the ./configure script with a flag, otherwise the KDE SoundSystem will not be found..
Code:
./configure --without-arts
make
For Kubuntu the flag isn't necessary (hopefully )
This should run through without errors, otherwise something isn't set up correctly yet!
Now for installing:
If you want a .deb package created use checkinstall
Probably, there will be error messages during the install and nothing is installed, but the package is created anyway
Code:
sudo checkinstall --pkgname amarok1410 --pkgversion 1.0
For finally installing use make install
And then you're done!
NOTE: I didn't perform any larger testing.. Open the program an playback worked. My iPod worked also including artwork.
-------------------------------------
By the way: Because of self-compiling, a nice little extension program is working again, amarokFS (FullScreen).
That's the way to install it:
Code:
cd ~/Downloads
wget http://www.kde-apps.org/CONTENT/content-files/52641-amarokFS-0.5.tar.gz
tar -xvf 52641-amarokFS-0.5.tar.gz
cd amarokFS-0.5
make
sudo make install
Have fun and good luck!
See
Bookmarks