tkd - basic compilation problem
Jordi Sayol via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 1 05:00:17 PDT 2015
El 30/06/15 a les 16:28, Paul via Digitalmars-d-learn ha escrit:
> Using dub I get this during linking:
>
> Building tkd-test ~master configuration "application", build type debug.
> Compiling using dmd...
> Linking...
> /usr/bin/ld: cannot find -ltcl
> /usr/bin/ld: cannot find -ltk
>
> ...any suggestions please?
>
If you are in Debian, Ubuntu, Linuxmint, etc, you can use the d-apt repository:
http://d-apt.sourceforge.net/
There are deb packages for tkd:
$ sudo apt-get install libtkd-dev libtkd-doc
You can compile the example application included on libtkd-doc deb package to test if "tkd" is properly installed on your system:
For shared linking against libphobos2.so and libtkd.so:
$ dmd `pkg-config --cflags --libs tkd` -J/usr/share/libtkd-doc/example/media/ /usr/share/libtkd-doc/example/example.d
For static linking against libphobos2.a and libtkd.a:
$ dmd `pkg-config --cflags --libs tkd-static` -J/usr/share/libtkd-doc/example/media/ /usr/share/libtkd-doc/example/example.d
Best regards,
Jordi
More information about the Digitalmars-d-learn
mailing list