How to compile DigiKam 3.1 on Ubuntu 12.04 was this blog's most visited post by far, with the sad Tribute to Nord about our Labrador dog, who is not with us anymore, coming second by a close margin in front of digiKam installation and configuration - Part 1. All in all it looks like there is quite some interest about digiKam on Ubuntu or maybe other instructions available online are a bit outdated. Anyway, since 13-May-2013 digikam 3.2 is available and although you can guess how to compile it from comments to this post, it deserves step by step instructions.
update: I successfully tested steps below on Ubuntu versions 12.04, 12.10 and 13.04
I suppose you already know how to open Terminal window in Ubuntu, if you don't you can look here.
First of all, if you have any older version of digikam installed, remove it. To check what you have and to remove it use commands:
Replace digikam in second command with the name displayed by first one. It is also a good idea to first update your Ubuntu installation with the latest patches by:
As already pointed out by anonymous comment (please tell us your name, so I can give you deserved credit) digikam 3.2 requires new libs which are only available in kubuntu backports, so we must add the required repository:
Then install all required tools and libs:
Next download and extract digikam source and prepare working folder:
Install digikam's dependencies:
Check if all requirements for compile are available:
And install it (use the resulting .deb name from above command):
That is all, it should work. At least it did in my test environment. Write a comment if it worked for you.