Page 1 of 7 123 ... LastLast
Results 1 to 10 of 68

Thread: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

  1. #1
    Join Date
    Oct 2009
    Location
    Switzerland
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Post How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    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 )
    Code:
    ./configure
    make
    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
    Code:
    sudo 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
    Last edited by Seegorkesolot; November 28th, 2009 at 12:50 PM. Reason: New feature (wikipedia fix) + iPod Support + amarokFS

  2. #2
    Join Date
    Aug 2008
    Location
    Canada
    Beans
    11
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Thank you very much! Worked great for me!

    The only thing I would add, is after running the command checkinstall, modify the "Package" and "Provides" fields.
    This will prevent package manager from trying to upgrade to version 2.x automatically.


    Code:
    # checkinstall
    
    This package will be built according to these values: 
    
    0 -  Maintainer: [ root@baaam ]
    1 -  Summary: [ Amarok 1.4.10 - ubuntu 9.10 compile ]
    2 -  Name:    [ amarok1410 ]
    3 -  Version: [ 1.4.10 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ checkinstall ]
    7 -  Architecture: [ i386 ]
    8 -  Source location: [ amarok-1.4.10 ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ amarok1410 ]
    Last edited by wattz3; November 11th, 2009 at 03:47 AM.

  3. #3
    Join Date
    Dec 2006
    Beans
    7,322

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Hi wattz3,

    Quote Originally Posted by wattz3 View Post
    The only thing I would add, is after running the command checkinstall, modify the "Package" and "Provides" fields.
    This will prevent package manager from trying to upgrade to version 2.x automatically.
    Better than doing it after running the checkinstall command is perhaps to add it in with the actual checkinstall command line:

    Code:
    $ sudo checkinstall --pkgname xxxxx --pkgversion xxxxx
    With a careful look at the naming conventions used by Ubuntu and the amarok package you should be able to easily defeat your version being overwritten by the repository.

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Oct 2009
    Location
    Switzerland
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Thanks to both of you for this simple and obvious but elegant solution!

    However, with make install, I hadn't any problems with Update Manager trying to upgrade. But creating a proper and functioning .deb is the nicer way of doing this, of course

  5. #5
    Join Date
    Nov 2009
    Location
    Helsinki, Finland
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    checking for kde-config... not found
    configure: error: The important program kde-config was not found!
    Please check whether you installed KDE correctly.

    Where to find the package kde-config?
    I have KDE installed with amarok 2.2, which I removed.

    weazie

    EDIT:

    Ok it was just a tip of the iceberg of missing dependecies...
    I gave up.
    Last edited by weazie; November 14th, 2009 at 11:05 PM.

  6. #6
    Join Date
    Oct 2009
    Location
    Switzerland
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Hi weazie

    Please check if you have installed the package kdebase-dev. If not, try to compile it again with the installed dev-files for KDE.

    Otherwise install Amarok 2 again and try to compile 1.4.10 without removing the new version.

    Good luck! And if there are still problems, please don't hesitate to bring them up!
    Last edited by Seegorkesolot; November 14th, 2009 at 11:03 PM.

  7. #7
    Join Date
    Nov 2009
    Location
    Helsinki, Finland
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Hi,

    Thanks for help.
    What I did was that I googled every error and installed the missing packages with synaptic.
    got pretty far with that..

    I ran out of patience with this:

    >checking for KDE... configure: error:
    >in the prefix, you've chosen, are no KDE libraries installed. This will >fail.
    >So, check this please and use another prefix!
    http://www.fedoraforum.org/forum/arc...p/t-18389.html

    Maybe someone will continue from that...

    Thanks again.

  8. #8
    Join Date
    Oct 2009
    Location
    Switzerland
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Yeah, that's pretty much the same thing as I did, as I wrote this howto.
    Well, the problem with this is that I missed the dependencies that were already installed on my system.
    I'm sorry for this inconvenience.

    So, according to your problem:
    Check, if following package is installed

    Code:
    kdelibs4-dev
    Such development packages are essential for building packages from source. Missing dev packages lead to the paradox situation, that although KDE is installed and running, such an error can occur during configure.

    See

  9. #9

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    nice job with the patches and overall.

    The build deps seems a bit incomplete and has 2 packages that don't exist ( xlibs-dev, devtools

    This may be a bit more suitable and adds a check for decent build tools, some who use this may not have built anything before ( blue are needed runtime deps

    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
    plus ipod packages as you noted if desired

  10. #10
    Join Date
    Oct 2009
    Location
    Switzerland
    Beans
    10
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How-To: Compile Amarok 1.4.10 in Ubuntu 9.10 "Karmic Koala"

    Hi mc4man

    Thanks a lot for your input, that's just about that, what I had planned to find out next

    However, with your posted command everything should be fine! I wasn't aware, that the two packages you mentioned don't exist.

    See

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •