July 25, 2014, 01:00:04 PM
News: Hey, we have forums!
  Pages: [1]
Print
Author Topic: Aquaria Linux Binaries  (Read 8201 times)
GMMan
Giant Bit
******
Posts: 254


"Uh... I'll be right here after you're done..."


View Profile
« on: August 14, 2010, 03:41:15 PM »

For all those people who missed the Humble Indie Bundle but have a copy of Aquaria and want to be able to run it on Linux: I present you with the official Linux binaries from the HIB, compiled by icculus.
Download:  http://www.mediafire.com/file/mo2oig2uvk33y4e/aquaria-bin.tar.gz

IMPORTANT: This archive contains ONLY the binaries for Aquaria. There is NO GAME DATA! To get the game data, please copy and paste them from your purchased copy of Aquaria. (Not even the scripts are included, even though they are open source.)

To install, extract the archive to where your system install games. Rename the folder with out the "-bin". Place all of your game data inside the folder. Set the permissions on all of the files to whatever it's supposed to be and make launcher menu items for it. There's an icon you can use inside th folder. Then knock yourself out.
Logged

Follow me on Twitter: @gmman_bzflag
dugan
Bit
***
Posts: 13


View Profile
« Reply #1 on: August 31, 2010, 11:30:06 PM »

Since Aquaria is now open source, the best way to get Linux binaries is to build them. This is probably why Linux binaries were never released, apart from the ones included in the Humble Bundle.

Your mirrored binaries will come in handy if the build fails.
Logged
vincent
Mini Bit
**
Posts: 7


View Profile
« Reply #2 on: September 02, 2010, 01:41:42 AM »

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! Wink

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.
Code:
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.
Code:
hg clone http://hg.icculus.org/icculus/aquaria

3. Navigate to the newly created "aquaria" directory.
Code:
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.
Code:
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.)
Code:
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.
Code:
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! Smiley
« Last Edit: May 13, 2011, 05:00:53 PM by vincent » Logged
Kloyd Niel
Mini Bit
**
Posts: 2


View Profile Email
« Reply #3 on: October 22, 2010, 12:37:20 AM »

Hi vincent ,

Thanks for the codes that you provide.
I really appreciate this site for welcoming me here.thank you Guys. God Bless.


how to treat depression
Logged
achurch
Bit Bit
****
Posts: 85


View Profile
« Reply #4 on: April 03, 2011, 02:35:33 AM »

One addendum to this (sorry for the gravedig, but this was just linked from another thread):

If you compile a new binary from the Icculus source code, you must replace your existing scripts with the scripts from the "game_scripts" directory. For example, if you have the game installed in "~/Games/Aquaria":

Code:
cp -a ~/Games/Aquaria/scripts ~/Games/Aquaria/scripts-original
cp -a game_scripts/scripts/* ~/Games/Aquaria/scripts/

(The first line creates a backup of the original scripts, just in case you need them in the future.)

If you don't update the scripts, there's at least one enemy (the Mantis Shrimp) which won't work correctly in the new executable.
Logged
vincent
Mini Bit
**
Posts: 7


View Profile
« Reply #5 on: May 13, 2011, 05:04:39 PM »

It looks like there's been a new flurry of activity in the Icculus repository, so I've set up a PPA (which I'll update from time to time) for Ubuntu users who want the latest Aquaria binaries (no game data, of course) without having to compile them. Enjoy! Smiley

https://launchpad.net/~vincent-c/+archive/aquaria
Logged
svenmeier
Mini Bit
**
Posts: 3


View Profile Email
« Reply #6 on: December 10, 2011, 05:46:54 PM »

Hi,

luckily I was able to aquire an official Aquaria build for Linux as part of a software bundle (I already bought the Windows version a few years ago).

In comparison to your binaries this version is performing much better. Do you know why graphics performance should be superior in the official build?

Thanks
Sven
Logged
GMMan
Giant Bit
******
Posts: 254


"Uh... I'll be right here after you're done..."


View Profile
« Reply #7 on: December 11, 2011, 10:04:41 PM »

It should be the same version, unless they have newer builds from the .deb/.tar.gz/.rpm packages. Also, this is a 32-bit build, so if you downloaded the 64-bit build the game might have better performance.
Logged

Follow me on Twitter: @gmman_bzflag
  Pages: [1]
Print
Jump to: