Search code examples
windows-7ddmdgtkd

How to use gtkD in Win7 and dmd (D2)?


I downloaded gtkD-1.5.1 and extracted to some gtkD directory. What do I do next ? I don't understand if I have to compile and link it to some lib or just link to it in my code ?


Edit: (@dsimcha)

the command dsss build in gtkD main dir gave me this:

Could not detect versions.
Could not detect versions.
Could not detect versions.
Could not detect versions.
Could not detect versions.
undemofy

Could not detect versions.
Could not detect versions.
atk => DO-atk

cairo => DO-cairo

gdk => DO-gdk

gdkpixbuf => DO-gdkpixbuf

gio => DO-gio

glade => DO-glade

glib => DO-glib

gobject => DO-gobject

gthread => DO-gthread

gtk => DO-gtk

gtkc => DO-gtkc

pango => DO-pango

but no lib was created ?


Solution

  • Imanage to use GtkD without generating lib files, with rdmd.

    1. You must install Gtk+2 runtime
    2. Download GtkD source code to some dir
    3. Run rdmd --build-only -I/src

    rdmd will autobuild GtkD and your project code alone, skipping the need to making libs and linking it manually.