Hello, I'm running Ubuntu 19.04,
I would like to see a working gtkD example on my system finally.

However it seems it is not that simple as just:

  • sudo snap install --classic dmd
  • apt-get install libgtkd-3-dev
  • And running some examples from
    http://www.dsource.org/projects/gtkd/wiki/CodeExamples
  • rdmd hello.d

What I'm missing and how should I setup for the examples to run correctly?

Right now I'm getting

vaidas@vaidas-SATELLITE-L855:~$ rdmd hello.d 
hello.d(1): Error: module `MainWindow` is in file 'gtk/MainWindow.d' which cannot be read
import path[0] = .
import path[1] = /snap/dmd/62/bin/../import/druntime
import path[2] = /snap/dmd/62/bin/../import/phobos
Failed: ["/snap/dmd/62/bin/dmd", "-v", "-o-", "hello.d", "-I."]