El 11/09/15 a les 09:13, Mike McKee via Digitalmars-d-learn ha escrit: > On Friday, 11 September 2015 at 06:53:07 UTC, Mike James wrote: >> There's a Glade example in the demos/builder directory... > > I'm having trouble installing GtkD on Ubuntu Linux 14.04. I did the apt steps > from here: > > http://d-apt.sourceforge.net/ > > $ sudo su > # wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O > /etc/apt/sources.list.d/d-apt.list > # apt-get update && apt-get -y --allow-unauthenticated install --reinstall > d-apt-keyring && apt-get update > # apt-get install libgtkd3-dev libgtkd3-doc > > I then run the following and it fails: > > # dmd test1.d > test1.d(1): Error: module gtk is in file 'gtk.d' which cannot be read > import path[0] = /usr/include/dmd/phobos > import path[1] = /usr/include/dmd/druntime/import >
On <http://d-apt.sourceforge.net/> there is the "pkg-config" section: --- pkg-config: Every dev package contains "pkg-config" (shared and static) configuration files for the specific library. i.e. link GtkD2 applications against "libgtkd2.so" and "libphobos2.so" shared libraries: $ dmd `pkg-config --cflags --libs gtkd2` my_gtkd2_app.d or link GtkD2 applications against "libgtkd2.a" and "libphobos2.a" static libraries: $ dmd `pkg-config --cflags --libs gtkd2-static` my_gtkd2_app.d --- Best regards