-
Notifications
You must be signed in to change notification settings - Fork 62
Setting Up Your Environment
Tyler Wozniak edited this page May 18, 2014
·
6 revisions
- dmd 2.065.0 (This installer includes VisualD)
- dub
- A command prompt (cmder is a good terminal for Windows)
- git
- [OPTIONAL] VisualD
- Clone this repository. Cloning with command line? Run
git submodule update --init
after cloning. - From inside the Dash folder, run
dub add-local . ~master
from cmd. - Clone the Sample Game.
- Open your command prompt to the
Sample-Dash-Game
folder. - To run the game, from the command prompt, run
dub
. - To run the game through an IDE, either open the
dub.json
file with Mono-D, or usedub generate
to make a project file.
Linux Users
- Manually install the X11 binding with
dub fetch x11
. X11 bindings are mandatory but can't be enabled by default for now due to dub-related issues. - Using your distro's package manager, install
libfreeimage-dev
andlibjpeg62-dev
.
- Clone this repository. Cloning with command line? Run
git submodule update --init
after cloning. - From inside the Dash folder, run
dub add-local . ~master
from cmd. - Clone the Sample Game.
- If on Windows, run the following commands:
dub fetch --local derelict-util --version=1.0.0
dub fetch --local derelict-gl3 --version=~master
dub fetch --local derelict-fi --version=~master
dub fetch --local derelict-assimp3 --version=~master
dub fetch --local dyaml --version=~master
dub fetch --local gl3n-shared --version=~master
dub fetch --local dlogg --version=1.3.0
- From the command prompt window you will be using, run
/path/to/D/dmd2vars.bat
. - Open your command prompt to the
Sample-Dash-Game
folder. - To run the game, from the command prompt, run
dub
. - To debug the game or engine, see the article on debugging.
In order to run dub and dmd, you need certain environment variables set. To use various IDEs, such as Xamarin/MonoD, you'll need these variables set on a global scale. If you are on a computer that doesn't reset overnight, you can make sure these variables are permanently set. Steps:
- Go to System (Control Panel, or Windows+Break)
- Advanced system settings
- Environment Variables
- Under "System Variables" scroll down and find one called Path (may be in all caps)
- Select Path and then click Edit
- In the Variable value box, add (do not delete existing values)
C:\D\dmd2\windows\bin;C:\Program Files (x86)\dub;
to the end. - Note: The paths to add may change depending on where you install dmd and dub. Please note that the paths you are adding are to the folders where dmd.exe and dub.exe are located. They should not include the exe's