Compiling Anura on Linux - Autofire/elemedals GitHub Wiki
Yes, you can download Anura from their wiki, but the build-bot isn't perfect and breaks from time to time. Also, if you're impatient it may be better if you can build stuff yourself. Besides, once it's working, you can really easily update stuff.
If you can get that binary working, just skip down to the Downloading Elemedals section.
Table of Contents
- Compilation Instructions
- Debian
- OpenSUSE
- Building Specific Libraries
- SDL
- Boost
- Getting Anura
- Building Anura
- Getting/Configuring Elemedals
- Downloading Elemedals
- Finishing the Elemedals Installation
- Final Notes
- g++ (Known as gcc-c++ on OpenSUSE)
- libsdl2-dev (2.0.4 at minimum)
- libsdl2-image-devv
- libsdl2-ttf-dev
- libsdl2-mixer-dev
- libboost-all-dev >= Version 1.58.0 (Older might work. If your distro's Boost doesn't work, see below for building instructions.)
- ccache (recommended)
- libcairo2-dev
- libglew-dev
- libglw1-mesa-dev (probably required...but you may want to skip this if possible. I've had it conflict with an Nvidia driver at one point. That was a while ago and I don't recall how I resolved the issue. I don't seem to get the problem again on new systems.)
The remainder of this guide applies to any distro.
As a special note, for Anura to play any sound effects or music, SDL2_mixer must have support for ogg and wav files, so if you get a warning that either of those are unavailable, go get the missing packages. Once that's done, restart the compile steps for SDL_mixer. (Run make clean
if you need to.)
./bootstrap.sh
./b2 --with-iostreams --with-filesystem --with-regex --with-system --with-locale
sudo ./b2 install --with-iostreams --with-filesystem --with-regex --with-system --with-locale
sudo ldconfig
I haven't had this fail. You might get a few warnings along the way, but this is normal.
If you're tired of hitting your head on the wall, your best bet may be to go to the #frogatto
channel on irc.freenode.net
. (Grab HexChat if you don't have an IRC client yet.)
That should successfully build Anura. If there's ever a new version of Anura that you want to build, run
cd anura
git pull
make
If you get no errors (warnings are okay), you've had success! Even if you try running Anura at this point, it won't open anything. This is normal because Anura comes with no games. However, Anura can install various games off its server, or you can download them yourself. (More on that in the below.)
If you'd like to be able to run Anura easily from the command line, you can move the whole Anura folder to /usr/local
, and then just make a symbolic link to it within /usr/local/bin
. Keep in mind that I've never done this. If you do this, Anura can still install and update Elemedals. (By default, it will install the game in $HOME/.elemedals/dlc)
After this does its magic, skip down to Finishing the Elemedals Installation.
To use git, run
cd ~/anura/modules
git clone https://github.com/Autofire/elemedals.git
To update the game:
cd ~/anura/modules/elemedals
git pull
Note for developers: If you used git to download ANY module, Anura will NOT automatically update that module unless you force it to. However, if you do let Anura download/update at ANY point a module, it downloads the stuff to $HOME/.<module_name>/dlc
. If Anura finds this first folder, it will ignore the folder located in <anura_root_folder>/modules/<module_name>
. If you are a game developer, be extra careful about this!