Getting Gluon

Once we have more platforms available than Linux, this section will be filled up with information about how to get and install Gluon on various platforms.

Linux Binaries
This page contains links and information on how to install Gluon on various Linux distributions. All the packages contained within are provided by members of the teams from these distributions rather than the Gluon team.
Download Source
This page will show you how to grab the source code for Gluon. It contains both links to the packaged releases, as well as information on how to get the current development code.
Installation
Once you have fetched the source code, please follow the instructions in this chapter to install Gluon onto your system. Please read the instructions fully, as there are important details in the document which, if not followed, will cause Gluon not to function.

Packagers: Please get in touch! :)

Linux Binaries

This page contains binary packages for various Linux distributions of Gluon.

Archlinux

Gluon is available in the community repository.
sudo pacman -S gluon

Chakra

Gluon is available in the desktop repository.
sudo pacman -S gluon

Fedora

Binary packages provided by rrix: http://www.gamingfreedom.org/gluon-downloads/fedora/

Meego

Add Gluon to your MeeGo
zypper ar -f http://repo.pub.meego.com/home:/sandst1/standard/ gluon
zypper in gluon

Harmattan

Add the the following entry into your /etc/apt/sources.list:
deb http://repo.pub.meego.com/home:/djszapi/MeeGo_1.2_Harmattan/ ./
dpkg -i *gluon*

openSUSE

Current development packages are available for openSUSE using additional KDE repositories:

openSUSE 11.3

KR46: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/KDE_...
KDE:Distro:Factory: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...
KDE:Unstable:SC: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...

openSUSE 11.4

Main distribution: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...
KR46: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/KDE_...
KDE:Distro:Factory: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...
KDE:Unstable:SC: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...

openSUSE Factory

Main distribution: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...
KDE:Unstable:SC: http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/open...

Download Source

Release

This is the currently recommended version for the normal user.
Gluon Alpha 2, codename "Electron" (version 0.71.0)
gluon-0.71.0.tar.gz

gluon-0.71.0.tar.bz2

Development

If you wish to follow the bleeding edge of Gluon, this is what you want to get. The code in git is not guaranteed to work at any one point in time as new features are added, but we do try to keep it compiling.

If you wish to get the source code from git so you can follow it more easily, the following command will clone the repository:

git clone git://anongit.kde.org/gluon

Installation

Please note: The following is a guide for how to install Gluon from source on Linux. Packagers, get in touch! :)

Install Process

Dependencies

For the bare minimum experience you will need the following libraries:

This will allow you to build the basic libraries along with a very simple player application. Installing the KDE libraries is required for more advanced applications like the full desktop player and Gluon Creator.

LibAttica version 0.2.0 or greater is required for the integration with GamingFreedom.

Detailed instructions on what packages are needed for what distribution are described below.

The CMake scripts will detect whether or not these libraries are installed and report any errors. Note that apparently the script to locate OpenAL, which is provided by CMake, does not report this correctly and instead simply set some variables to "NOTFOUND". So if you get "Variable is set to NOTFOUND" errors from CMake double check whether you have all dependencies.

Getting the Source

You can either download the from http://gluon.gamingfreedom.org/node/26 or download the source from https://projects.kde.org/projects/playground/games/gluon/repository. Once you have acquired a tarball, extract it to your preferred location.

Compile and Install

To compile you will need a compiler and CMake, along with the needed dependencies as described above. Once you are done, execute the commands below to compile Gluon:

cd /path/to/gluon
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` //(Recommended when installing alongside KDE, otherwise use /usr or your prefferred install location)//
make
sudo make install

These commands should install gluon headers in ${kde-prefix}include and libraries in {kde4-prefix}/lib.

Test your installation

You can test your installation by running one of "gluoncreator" or "gluon_qtplayer", and loading up the Invaders project from the player/examples/invaders/ directory in the source.

Note that If you disabled "INSTALL_CMAKE_FILES" (The default when not installing to /usr) you will need to set CMAKE_MODULE_PATH to ${gluon-prefix}/share/gluon/cmake whenever you want to compile anything using Gluon.

Installing on Debian/Ubuntu

For Debian you need:

Important
There seems to be a problem with Debian and PulseAudio when it is not running, where OpenAL will try to open the PulseAudio device, which fails because it is not available and causes an infinite loop.

The workaround is to put the following into /.alsoftrc :
drivers=alsa

If it does not work, try removing libpulse or otherwise installing pulseaudio itself.

Installing on Arch Linux

For Arch Linux users

Installing on Chakra

For Chakra users

Installing on Fedora

On Fedora you will need:

Installing on openSuse

On openSuse you will need:

Installing on Mac

On Mac you will need:

Note: /Users/foobar/gluon/player/qt/GluonPlayer.app < gluonplayer mac app

dependencies.sh

  1. requires homebrew (http://mxcl.github.com/homebrew/). Download homebrew from that website and run the commands below $ sudo brew update $ sudo brew install cmake $ sudo brew install qt $ sudo brew install libsndfile $ sudo brew install attica $ sudo brew install freealut
  2. alure is not currently built in to homebrew, so we need to install it from a gist $ sudo brew install https://raw.github.com/gist/1385677/4d0fc4978539492f04f0c9cd8bb929bdf3c0b7f6/alure.rb

$ cmake -DCMAKE_INSTALL_PREFIX=usr -DCMAKE_BUILD_TYPE=Debug .. $ make VERBOSE=1 (successfully builds macintosh application bundles) $ sudo make install

  1. gluonplayer is packaged in GluonPlayer.app $ ./tools/viewer/GluonPlayer.app/Contents/MacOS/GluonPlayer /usr/share/gluon/games/apocalypse.gluon/game.gluonproject

Installing on MeeGo

On MeeGo you will need:

Notes:

Installing on Harmattan

On Harmattan you will need:

You can download these packages from the Community Open Build Service page or directly from this repository (You can also add it to your etc/apt/sources.list file): echo 'deb http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ .' >>/etc/apt/sources.list.d/nicks.list

apt-get install gluon-games

Source compilation on Windows

On Windows you will need:

Please follow the instruction here in order to set up the KDE Windows and emerge environment. You can do the whole procedure, but "emerge" will help simplify your activity. http://techbase.kde.org/Getting_Started/Build/Windows/emerge

Gluon can be installed either by using emerge or "manually". It is just "emerge gluon" by using emerge, and if you choose the manual build: you need to the following from the build directory: cmake -DCMAKiE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=%KDEROOT% -DCMAKE_INSTALL_PREFIX=%KDEROOT% ../


In addition, some systems do not have openAL, using your favourite package manager, ensure openal-dev is installed.

CMake Options

There are several options you can use to control the build of Gluon. They are listed during the CMake process along with their corresponding values. Below is also a list of all these options with a description and their default value:

Troubleshooting

I can hear music playing but nothing is visible!

The recent rewrite of the render system depends on programmable pipeline features. If these are not available things might not render. You can try to see if this is the case by running LIBGL_ALWAYS_SOFTWARE=TRUE gluon_qtplayer from the command line. If this does work, it means something in the combination of Gluon and your graphics driver is not working correctly. Please tell us your graphics card and other information by contacting us on IRC.

Blank screen on Windows

We currently have some issues on Windows with the graphics stack. This is probably the last issue before we can get a working game on Windows since audio and others already work nicely. Please do keep tunned; this entry will hopefully be removed quite soon. :)