dwtlib 3.1.1

The dub package for dwt

To use this package, run the following command in your project's root directory:

Dub version Dub downloads

dwtlib - DUB package for the D Widget Toolkit

DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse.

dwtlib is the dub package repository for DWT.


WORKING and tested on:

- Windows 10 Home  32-bit and 64-bit
- Ubuntu 16.04 LTS 32-bit and 64-bit
- DMD32 D Compiler v2.074.0, DUB version 1.3.0

DWT cloned from Github is NOT compatable with DMD v2.074.0 as-is
There is some issue with DMD v2.074.0 writing *.di files
DWT imports the *.di files and fails
dwtlib imports the *.d source files versus the *.di files

Building (refer to doc/dlang-install)

  1. Install DMD (includes DUB)

    • Browse to http://dlang.org/
    • Click to download the lastest version (e.g. 2.074.0)
    • Open with Software install (Ubuntu)
    • Install

    Check Version

    $ dmd --version
    DMD32 D Compiler v2.074.0
    $ dub --version
    DUB version 1.3.0

    Quick Test

    $ rdmd examples/console/hello.d
  2. Fetch the DUB package

    $ dub fetch dwtlib
  3. Get the linux libraries (no extra libs required for Windows):

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib/tools/get-libs
    $ bash ./get-libs.sh
  4. Build the DWT static libraries:

    $ cd /home/<USER>/.dub/packages/dwtlib-3.0.0/dwtlib
    $ dub fetch dwtlib
    Ubuntu  32-bit and 64-bit: $ bash ./build_dwtlib.bat
    Windows 32-bit           : $ rdmd build_dwtlib.bat
    Windows 64-bit           : $ rdmd build_dwtlib.bat_m64
    $ cd ../examples
    Ubuntu : $ bash ./example.sh
    Windows: $ example.bat
  5. Add a dependency to your app's dub.json or dub.sdl, see the examples.

    dependency "dwtlib" version=">=3.0.0"


Run Snippets in the examples folder:

$ example_console
    $ example_gui
    $ snippets_demo
    $ widgets_demo (this demo currently works on Windows only)

Or, run Snippets using rdub in the examples folder:

$ rdmd rdub snippets\Snippet251 --force

Here is a screenshot of the widgets_demo (a simplified version of the SWT controlexample):

Settings Window

3.2.5 2018-Feb-17
3.2.4 2018-Feb-16
3.2.3 2018-Feb-16
3.2.1 2018-Feb-16
3.1.1 2017-May-23
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 3 downloads this week

  • 3 downloads this month

  • 343 downloads total

Short URL: