On 10-03-2020 23:23, Kendell Fab wrote:

On Tue, 10 Mar 2020 22:15:49 +0100, Mike Wey wrote:

On 10-03-2020 17:57, Russel Winder wrote:

If gtkd is available in the repositories of your that that can be used
as a regular dependency in meason. The same is also true is you install
gtkd manually with make && make install.

Thanks everyone for your feedback. I did forget to mention that I am on Arch Linux for this.

There is gtkd in the repos. I have installed it. And I still get a linker error:

/usr/bin/ld: restscope@exe/sourceviewsappwindow.d.o:(.data.rel.ro+0x140): undefined reference to `D3gsv10SourceView12_ModuleInfoZ'

It seems that the object files aren't being added by the link command. But I'm not familiar enough with meson to track down the details like that yet.

I took a closer look at your project, and you are using the SourceView
widget. In that case you will also need to add the sourceview binding as
a dependency.

gtkdsv_dep = dependency('gtkdsv-3', version: '~>3.9.0')

or when using a dub dependency:

gtkdsv_dep = dependency('gtk-d:gtkdsv', version: '~>3.9.0', method: 'dub')