« Go back

Installation of Dgame 0.6

DUB

Dgame is on DUB and can easily be installed from there. Just install DUB and put the following dependencies in the dub.json of your project:

"dependencies": {
    "dgame": "~>v0.6"
}

Now you can build your application with DUB and DUB will take care that Dgame and is dependencies are correctly installed / used.

D Compiler

You need at least version 2.067.0.

Derelict

Because Dgame uses Derelict and all packages of Derelict are dynamic bindings, you need shared libraries to invoke Derelict.
See also http://derelictorg.github.io/using.html.

SDL & OpenGL

Dgame is based on

and on OpenGL 3.0.0 (Support up to 4.5.3). For Mac Users at least on 2.0.2.

If you are on a Mac or any OSX system you should know, that Dgame specify as default the OpenGL version 2.0.2,
because Dgame use some deprecated OpenGL constants/functions which OSX does not like for some reason.
So the current highest supported version on OSX systems is OpenGL 2.0.2.

Windows

For Windows (32 Bit) the necessary *.dll files are in lib/Windows/x86
Or you can download them here (See Runtime Binaries).

Ubuntu

sudo apt-get install libsdl2-2.0
sudo apt-get install libsdl2-image-2.0
sudo apt-get install libsdl2-ttf-2.0
sudo apt-get install libsdl2-mixer-2.0

or even:

sudo apt-get install libsdl2-dev

Both will create the necessary *.so files.

Debian

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl-net1.2-dev

OpenSUSE

sudo zypper in libSDL2-devel
sudo zypper in libSDL2_image-2_0-0
sudo zypper in libSDL2_mixer-2_0-0
sudo zypper in libSDL2_ttf-2_0-0

Arch linux

pacman -S sdl2 sdl2_image sdl2_mixer sdl2_net sdl2_ttf

OpenBSD

SDL packages of OpenBSD on Google

Mac-Homebrew

brew install sdl_image sdl_mixer sdl_ttf sdl 

Mac-Port

sudo port install libsdl_image libsdl_mixer libsdl_ttf sdl

Other OSX

On other Mac/OSX you probably have to build the necessary *.dylib files by yourself. See the next Chapter "Manual building".
Or you can download them here (See Runtime Binaries).

Manual building

If you would like (or have) to build the SDL files by yourself, here are some good instructions.

Just like there you can built all neccessary SDL projects:

After you built them, take the *.dll, *.so or *.dylib files and place them in the same directory as your executable.

« Go back