Version 20 (modified by zzzzrrr, 14 years ago) |
---|
Step 1: Compiler install
First, it's recommended you start with the the Tango variant of the dmd compiler. Linux users may also want to consider the new ldc compiler. Phobos fans can still use Blaze, although you will not be able to compile the testbed examples because of Tango dependencies.
Step 2: Install a build tool
There are a number of options available, including Jake, DSSS, or xfBuild. See these distributions for details.
Step 3: Install Blaze
Checkout a working copy with Subversion.
For most purposes, you way want to consider creating an active working directory where you will maintain all of your libraries and projects. For example, windows users should create something like c:\workspace\ and on Linux, something like ~/workspace
Checkout the source files:
cd workspace svn co http://svn.dsource.org/projects/blaze/trunk blaze
To update:
cd <install location>/workspace/blaze svn up
Step 4: Compile helloWorld
Now comes the easy part...
cd workspace/blaze/examples/helloWorld
Windows w/ jake:
jake -I../.. helloWorld.d
Windows or Linux with rebuild:
rebuild -I../.. helloWorld.d
That's it!
Step 5: Compile the testbed examples
Ok, Phobos fanboys can stop here. The testbed examples have Tango dependencies and you will not be able to compile them. Tango folks, please do the following:
First, you will need to install Mercurial. Next, head over to team0xf and install their excellent set of library tools.
Make sure you install everything into <install path>/workspace/xf
When finished, you should have a directory structure that looks something (Windows example) like this:
c:\workspace\blaze c:\workspace\xf
The testbed framework includes a number of build scripts, so they should be fairly easy to compile.
cd workspace\blaze\examples\testBed\framework
On Windows, run the included batch file to compile:
build-dmd-win.bat
On Linux, try this:
chmod a+x build-dmd.sh ./build-dmd.sh
Now sit back and wait for it to compile. If it's your first time, it may take a few minutes. Run the main binary when it's finished, and have fun!
For Help
Sign up for a dsource account, and ask for help in the forum