| 1 |
Building gtkD with DSSS mini-HOWTO: |
|---|
| 2 |
----------------------------------- |
|---|
| 3 |
|
|---|
| 4 |
1) Get the latest stable version of DSSS and install it on your system. |
|---|
| 5 |
(Last tested with DSSS-0.78). |
|---|
| 6 |
|
|---|
| 7 |
2) [OPTIONAL]. Update the dsss.conf file in the root of the project to |
|---|
| 8 |
suit your needs. Otherwise pay attention to the 'defaulttargets' key. |
|---|
| 9 |
If you want a standard gtkD build/installation, the defaults are fine. |
|---|
| 10 |
|
|---|
| 11 |
3) Build gtkD. Go to the root of the project (where this file is located) |
|---|
| 12 |
and run the following command: |
|---|
| 13 |
|
|---|
| 14 |
$ dsss build |
|---|
| 15 |
|
|---|
| 16 |
4) You may now install the libraries to your live filesystem. From the |
|---|
| 17 |
root of the project, run: |
|---|
| 18 |
|
|---|
| 19 |
$ dsss install --prefix=/usr/local |
|---|
| 20 |
|
|---|
| 21 |
Don't forget to set the prefix according to your needs. "/usr/local" is a |
|---|
| 22 |
sane default and should work on most systems without further action. |
|---|
| 23 |
If the chosen prefix is not on your PATH, don't forget to update your |
|---|
| 24 |
environment variables. Import files will also get automatically installed |
|---|
| 25 |
to the chosen prefix. Note: root access may be required to complete this step |
|---|
| 26 |
according to your system settings. |
|---|
| 27 |
|
|---|
| 28 |
5) [OPTIONAL]. Build the demos. Go to the "demos" folder located in the root |
|---|
| 29 |
of the project and start the build process: |
|---|
| 30 |
|
|---|
| 31 |
$ cd demos |
|---|
| 32 |
$ dsss build |
|---|
| 33 |
|
|---|
| 34 |
Alternatively, you may build the demos from the root folder of the project: |
|---|
| 35 |
|
|---|
| 36 |
$ dsss build demos |
|---|
| 37 |
|
|---|
| 38 |
By default only the demos of the libraries you have already built will be |
|---|
| 39 |
compiled. You may change this by manually editing the dsss.conf file in the |
|---|
| 40 |
demos folder, or by using the provided helper script: |
|---|
| 41 |
|
|---|
| 42 |
$ cd demos |
|---|
| 43 |
$ ./demoselect.sh only gtk |
|---|
| 44 |
$ dsss build |
|---|
| 45 |
|
|---|
| 46 |
You may select more than one demo at a time: |
|---|
| 47 |
|
|---|
| 48 |
$ cd demos |
|---|
| 49 |
$ ./demoselect.sh only gtk gda sv |
|---|
| 50 |
$ dsss build |
|---|
| 51 |
|
|---|
| 52 |
You may now run any of these demos directly from their parent folder: |
|---|
| 53 |
|
|---|
| 54 |
$ cd cairo |
|---|
| 55 |
$ ./cairo_clock |
|---|
| 56 |
|
|---|
| 57 |
6) [OPTIONAL]. Build the documentation. Go to the root folder of the project |
|---|
| 58 |
and run: |
|---|
| 59 |
|
|---|
| 60 |
$ ./makedocs.sh |
|---|
| 61 |
|
|---|
| 62 |
All docs will get put in the "docs" subfolder. Alternatively, you may build |
|---|
| 63 |
the documentation directly with DSSS: |
|---|
| 64 |
|
|---|
| 65 |
$ dsss build --doc |
|---|
| 66 |
|
|---|
| 67 |
Docs will be put in the "dsss_docs" subfolder of each folder in "src". |
|---|
| 68 |
|
|---|
| 69 |
7) Build your own programs using the provided dsss.conf files from any of the |
|---|
| 70 |
demo folders. Pay special attention to the buildflags used to build the |
|---|
| 71 |
demos. "-L-ldl" and "-no-export-dynamic" are necessary. |
|---|
| 72 |
|
|---|
| 73 |
Have fun! |
|---|