| 3 | | To use SWT, do the following: |
|---|
| | 3 | Requirements: |
|---|
| | 4 | * D Compiler |
|---|
| | 5 | www.digitalmars.com |
|---|
| | 6 | * DSSS |
|---|
| | 7 | www.dsource.org/projects/dsss |
|---|
| | 8 | * Rake (Ruby Make) |
|---|
| | 9 | windows installer, including rake: http://rubyinstaller.rubyforge.org/wiki/wiki.pl |
|---|
| | 10 | linux: comes with the disto, e.g. ubuntu "apt-get install rake" |
|---|
| | 11 | * Tango |
|---|
| | 12 | www.dsource.org/projects/tango |
|---|
| | 13 | after installing, runng "dsss build", "dsss install" in the tango root directory |
|---|
| | 14 | * Mango (xml sax parser for tioport/bintod) |
|---|
| | 15 | www.dsource.org/projects/mango |
|---|
| | 16 | after installing, runng "dsss build", "dsss install" in the tango root directory |
|---|
| | 17 | Or, even more simple, just run "dsss net install mango" |
|---|
| 18 | | == Build examples == |
|---|
| 19 | | cd swt-3.2.1-examples |
|---|
| 20 | | dsss build |
|---|
| 21 | | windows: paint.exe |
|---|
| 22 | | linux : LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint |
|---|
| | 29 | == Windows == |
|---|
| | 30 | + DMD 1.013 |
|---|
| | 31 | + DSSS 0.63 |
|---|
| | 32 | * Tango TO BE DONE |
|---|
| | 33 | * Mango TO BE DONE |
|---|
| | 34 | |
|---|
| | 35 | = Build instructions = |
|---|
| | 36 | run "rake -T" to get a list with the available build targets. |
|---|
| | 37 | To build the SWT examples run "rake swt321_examples". This will |
|---|
| | 38 | also build dejavu and the library for the SWT tree. |
|---|
| | 39 | |
|---|
| | 40 | After that the dejavu and the SWT lib were build and installed, |
|---|
| | 41 | you can also run the compilation of a single example: |
|---|
| | 42 | cd swt-3.2.1-examples |
|---|
| | 43 | dsss build paint.d |
|---|
| | 44 | |
|---|
| | 45 | To run the examples, on windows simple start the executable: |
|---|
| | 46 | paint.exe |
|---|
| | 47 | on linux, you also need to set the LD_LIBRARY_PATH variable to include the SWT libs and your current mozilla browswer libs. |
|---|
| | 48 | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint |
|---|
| | 49 | .. or .. |
|---|
| | 50 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk |
|---|
| | 51 | ./paint |
|---|