| 13 | = Step 3: Install Blaze = |
---|
| 14 | |
---|
| 15 | Checkout a working copy with [http://subversion.tigris.org/ Subversion]. |
---|
| 16 | |
---|
| 17 | 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` |
---|
| 18 | [[BR]] |
---|
| 19 | |
---|
| 20 | Checkout the source files: |
---|
| 21 | {{{ |
---|
| 22 | cd workspace |
---|
| 23 | svn co http://svn.dsource.org/projects/blaze/trunk blaze |
---|
| 24 | }}} |
---|
| 25 | |
---|
| 26 | To update: |
---|
| 27 | {{{ |
---|
| 28 | cd <install location>/workspace/blaze |
---|
| 29 | svn up |
---|
| 30 | }}} |
---|
| 31 | |
---|
| 32 | = Step 4: Compile hello world = |
---|
| 33 | |
---|
| 34 | Ok, you've made it this far without destroying your computer in frustration... Now comes the easy park! |
---|
| 35 | |
---|
| 36 | {{{ |
---|
| 37 | cd workspace/blaze/examples/helloWorld |
---|
| 38 | }}} |
---|
| 39 | |
---|
| 40 | Windows w/ jake: |
---|
| 41 | {{{ |
---|
| 42 | jake -I../../ helloWorld.d |
---|
| 43 | }}} |
---|
| 44 | |
---|
| 45 | Windows or Linux with rebuild: |
---|
| 46 | |
---|
| 47 | {{{ |
---|
| 48 | rebuild -I../../ helloWorld.d |
---|
| 49 | }}} |
---|
| 50 | |
---|
| 51 | That's it! If you've make it this far as a D noob, congrats! You've already overcome the most difficult part of learning the D Programming Language: installing the compiler tools! Coding in D is a breeze.... |
---|
| 52 | |
---|
| 53 | = Step 5: Compile the testbed examples = |
---|
| 54 | |
---|
| 55 | Ok, Phobos fanboys can stop here. The testbed examples have Tango dependencies and you will not be able to compile. |
---|
| 56 | |
---|
| 57 | First, you will need to install [http://www.selenic.com/mercurial/wiki/ Mercurial]. Next head over to team0xf and install their excellent set of library [http://hybrid.team0xf.com/wiki/Main/GettingStarted tools]. |
---|
| 58 | |
---|
| 59 | Make sure you install everything into `<install path>/workspace/xf` |
---|
| 60 | |
---|
| 61 | When finished, you should have a directory structure that looks something (Windows example) like this: |
---|
| 62 | {{{ |
---|
| 63 | c:\workspace\blaze |
---|
| 64 | c:\workspace\xf |
---|
| 65 | }}} |
---|
| 66 | |
---|
| 67 | The testbed framework includes a number of build scripts, so they should be fairly easy to compile. |
---|
| 68 | {{{ |
---|
| 69 | cd workspace\blaze\examples\testBed\framework |
---|
| 70 | }}} |
---|
| 71 | |
---|
| 72 | On Windows, run the included batch file to compile: |
---|
| 73 | {{{ |
---|
| 74 | build-dmd-win.bat |
---|
| 75 | }}} |
---|
| 76 | |
---|
| 77 | On Linux, try this: |
---|
| 78 | {{{ |
---|
| 79 | chmod a+x build-dmd.sh |
---|
| 80 | ./build-dmd.sh |
---|
| 81 | }}} |
---|
| 82 | |
---|
| 83 | 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! |
---|
| 84 | |
---|
| 85 | = For Help = |
---|
| 86 | |
---|
| 87 | Sign up for a dsource account, and ask for help in the forum. |
---|
| 88 | |