Skip to content

Instantly share code, notes, and snippets.

@airstruck
Last active October 31, 2018 14:02
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airstruck/5bfb4b33e9c4042223e7 to your computer and use it in GitHub Desktop.
Save airstruck/5bfb4b33e9c4042223e7 to your computer and use it in GitHub Desktop.
Installing multiple versions of LÖVE

Installing multiple versions of LÖVE

This document explains how to set up multiple LÖVE installations. Make sure you have all dependencies for the versions of LÖVE you want to install.

Initial setup

Make a directory to install LÖVE source and binaries into.

mkdir $HOME/love/
cd $HOME/love/

Clone the source repository.

hg clone https://bitbucket.org/rude/love source
cd source

Install latest release

Check out version 0.9.2, or whatever the latest release is.

hg checkout 0.9.2

Run automagic.

./platform/unix/automagic

Run configure.

./configure

Install the latest release.

make install DESTDIR="$HOME/love/0.9.2" \
LDFLAGS="-R$HOME/love/0.9.2/usr/lib/"

Install development version

Check out latest revision.

hg update tip

Run automagic.

./platform/unix/automagic

Run configure.

./configure

Install the development version.

make install DESTDIR="$HOME/love/dev" \
LDFLAGS="-R$HOME/love/dev/usr/lib/"

Set up aliases

Edit $HOME/.bashrc and add an alias for each executable:

alias love="$HOME/love/0.9.2/usr/bin/love"
alias love_dev="$HOME/love/dev/usr/bin/love"

Save and close the file. Next time you log in, the aliases will be available. To enable them now, execute the bashrc file: source $HOME/.bashrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment