El 21/01/18 a les 16:58, MHE via Digitalmars-d ha escrit: > Hi there, > i am completely new in D Programming and only want to start the example code > for TK that is described on the homepage > https://github.com/nomad-software/tkd. > For this i have gitcloned the 3 packages tcltk tkd x11 in the folder > /usr/local/GIT/. > Then i run the command dub inside any single folder and build it. > > When i want to run the example TK D script the following results are seen - > > $ dmd -I/usr/local/GIT/ hw_graphical2.d > hw_graphical2.d(1): Error: module tkdapplication is in file > 'tkd/tkdapplication.d' which cannot be read > import path[0] = /usr/local/GIT/ > import path[1] = /usr/include/dmd/phobos > import path[2] = /usr/include/dmd/druntime/import > hans@mx1:~/Documents/D_lang > $ > > I have made something wrong with the configuration of the TKD module. > Need help here to start programming with D and TK. > > WBR > MHE >
You can use d-apt <http://d-apt.sourceforge.net/> Install TkD packages: $ sudo apt-get install libtkd-dev libtkd-doc Then compile and run the example included on "libtkd-doc" package: $ dmd `pkg-config --cflags --libs tkd` -J/usr/share/libtkd-doc/example/media/ -run /usr/share/libtkd-doc/example/example.d
