On Thursday, 6 July 2017 at 14:26:08 UTC, jallersma wrote:
Perhaps I have a bit of a noob question, but how come I cannot use any of the GTKd headers on GCD? On DMD there's no header that works. I tried to use dub to install the GTKD libraries, but without any luck. Everytime I try to compile the libraries, I get:

dub doesn't "install" anything. It puts packages in a cache in your home directory so that when you build a project using a DUB configuration it can find them. The idea is that you don't even need to download such libraries -- add them as a dependency to your project's dub.json or dub.sdl configuration and running `dub build` or `dub run` will download the dependencies if they aren't already in the cache [1].

If you don't want to use dub to manage your project, then it's best to use `dub fetch --cache=local libfoo` to pull the libfoo package down somewhere outside of the cache. I have instructions on how to do that with the Derelict packages at [2], but they apply to any dub-managed library. You'll just need to specify the import path to the compiler and the library path to the linker when you build (or copy them to your system paths manually).

[1] https://code.dlang.org/getting_started
[2] http://derelictorg.github.io/building/without-dub/#fetching-packages-with-dub

Reply via email to