Just out of curiousity, I decided to try to build Aquaria for myself as well. The Humble Indie Bundle only released 32-bit binaries of Aquaria, and since I'm currently running 64-bit Linux, I wanted to see if I could get a 64-bit binary working on my laptop. Couldn't find any guides though, aside from the link above, but that didn't work without a few modifications...so I present to you all another guide for those who want to build Aquaria on Linux (
Ubuntu 10.04/Linux Mint 9, and derivatives), and want to know exactly how!

Code contained in code brackets need to be executed in a terminal.
1. Install some necessary packages; build-essential contains g++ and make, both of which are required for compiling Aquaria (and cmake). mercurial is needed in order to fetch Aquaria's source code. libopenal-dev is also needed, otherwise cmake complains about not being able to find openal.
sudo apt-get install mercurial build-essential cmake liblua5.1-0-dev libogg-dev libvorbis-dev libopenal-dev libsdl1.2-dev
2. Download Aquaria's source code. A directory called "aquaria" will be created in your Home folder.
hg clone http://hg.icculus.org/icculus/aquaria
3. Navigate to the newly created "aquaria" directory.
cd aquaria
4. A small change to CMakeLists.txt is necessary if you don't want a large binary with debug stuff included in. Open CMakeLists.txt with your preferred text editor (gedit/kate/leafpad/nano/vi/emacs, etc.), e.g.
gedit CMakeLists.txt
Near the top of the file, you'll see this:
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE
RelWithDebInfo CACHE STRING "None Debug Release RelWithDebInfo MinSizeRel" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
Change that to the following:
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE
Release CACHE STRING "None Debug Release RelWithDebInfo MinSizeRel" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
Save, and close the file.
5. Generate a makefile with cmake. (If you don't have libopenal-dev, this is where you'll get stuck.)
cmake CMakeLists.txt
6. Compile Aquaria's source code. This may take a while, depending on your computer. On my Core 2 Duo laptop, the whole process took around 4 minutes only...compare that with the 2+ hours it takes me to compile a full Linux kernel.
make
Once it's finished, you'll find your newly created binary (named "aquaria", of course) in the aquaria directory created in step 2, i.e. ~/aquaria/aquaria. Copy that binary, and navigate to whichever directory that contains your game data and the original "aquaria" executable; I put all my Humble Indie Bundle games in a directory called ~/Games, so my Aquaria game data is in ~/Games/Aquaria. Rename the original "aquaria" binary to something like "aquaria_old", and paste your newly compiled binary here. Now try running Aquaria now...it should work without a problem.
Just to prove it worked:
vincent@vincent-laptop ~ $ file ~/Games/Aquaria/aquaria
/home/vincent/Games/Aquaria/aquaria:
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
vincent@vincent-laptop ~ $ file ~/Games/Aquaria/aquaria_old
/home/vincent/Games/Aquaria/aquaria_old:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.18, not stripped
Hope this guide helps!
