Please note: The following is a guide for how to install Gluon from source on Linux. Packagers, get in touch! :)
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.
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.
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.
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.
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.
For Arch Linux users
For Chakra users
On Fedora you will need:
On openSuse you will need:
On Mac you will need:
Note: /Users/foobar/gluon/player/qt/GluonPlayer.app < gluonplayer mac app
dependencies.sh
$ cmake -DCMAKE_INSTALL_PREFIX=usr -DCMAKE_BUILD_TYPE=Debug .. $ make VERBOSE=1 (successfully builds macintosh application bundles) $ sudo make install
On MeeGo you will need:
Notes:
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
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.
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:
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.
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. :)