I program in Gentoo and I manually compile dmd and gtkD.
So in the beginning I type:
echo $PKG_CONFIG_PATH
It does not get anything.
I do this: In ~/.bashrc:
( ... ) export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
because there is everything we need.
Then I type:
pkg-config gtkd-2
and the output of this I copy and paste into:
/etc/dmd.conf
to section: "[Environment]"
to the variable: "DFLAGS" (at the end).
A clean installation of dmd and gtkD (by copying and pasting) should look like this:
(/etc/dmd.conf)
( ... ) [Environment] DFLAGS=-I/usr/include/phobos2 -I/usr/include/druntime -L--no-warn-search-mismatch -L-- export-dynamic -L-lrt -I/usr/local/include/d/gtkd-2/ -LL/usr/local/lib/ -L-lgtkd-2 -L-ldl
Now I can compile my D programs as follows:
dmd myprog.d
That's all!
P.S
Sorry for my English.
user2149138
source share