gtkD problems and general gui question.
%u
foo at bar.com
Tue Oct 18 07:44:24 PDT 2011
Hello. I downloaded gtkD MS Windows installer, and I tried to
compile one of the examples shown on the gtkD website:
http://www.dsource.org/projects/gtkd
The example is below along with the problem:
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main(string[] args)
{
Main.init(args);
MainWindow win = new MainWindow("Hello World");
win.setDefaultSize(200, 100);
win.add(new Label("Hello World"));
win.showAll();
Main.run();
}
When I compile the above code, I get the following problem:
$ dmd HelloGUI.d
HelloGUI.d(1): Error: module MainWindow is in file
'gtk\MainWindow.d' which cannot be read
import path[0] = C:\D\dmd2\windows\bin\..\..\src\phobos
import path[1] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
If I look at my path I see that the path to gtk was installed by
the windows installer:
/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Wi
ndows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System3
2/WindowsPowerShell/v1.0:/cygdrive/c/D/dmd2/windows/bin:/cygdrive/c
/D/dm/bin:/cygdrive/c/D/dmd/windows/bin:/cygdrive/c/Program Files
(x86)/QuickTime/QTSystem:/cygdrive/c/Program Files (x86)/GTK2-
Runtime/bin:/usr/lib/lapack
My dmd version is:
$ dmd -v
DMD32 D Compiler v2.055
Copyright (c) 1999-2011 by Digital Mars written by Walter Bright
Documentation: http://www.digitalmars.com/d/2.0/index.html
Usage:
Finally, is gtkD the way to go when it comes to learning gui with
D? Which gui is the most popular with D? Which one has a future?
And which is the easiest to learn?
thanks.
More information about the Digitalmars-d-learn
mailing list