www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Introduction and request for help

reply Kendell <kendell email.com> writes:
Hey Everyone,

I'm a new D developer and therefore new to Gtkd. By day I'm an 
android developer using Kotlin and most of my hobby projects are 
in Go.

So far I've enjoyed my time working in D. I've been working on 
this project, https://gitlab.com/kendellfab/rest-scope, a rest 
testing project much like postman.

So far I've had no problems building this project with DUB. 
However I want to move over to meson so that I can build it for 
flatpak. I am finding that I am unable to build with meson.

I've had two issues. First, I was unable to find the dependencies 
wit this, gtkd_dep = dependency('gtk-d:gtkd', version: '~>3.9.0', 
method: 'dub'). This dep is added to the dependencies array 
passed to the executable. The build would fail as it could not 
find the gsv.SourceView.

I was able to fix this issue, by passing in a directory to the 
dependency array, such as this. 
declaredependency(includedirectories: packagedir + 
'/gtk-d-3.9.0/gtk-d/generated/sourceview'). The packagedir string 
being set by an option with generating the meson build directory, 
this is to my home folder .dub directory.

But this created a new build issue with the linker. The linker 
can not find the source view objects to link with the executable. 
So again my builds are failing. But I'm unsure where to find the 
object files for the linker to link in.

Does any one have any insights on how I could get this project to 
build?


-- Cross post from gtkd forum
Mar 09 2020
next sibling parent reply Ron Tarrant <rontarrant gmail.com> writes:
On Monday, 9 March 2020 at 22:48:35 UTC, Kendell wrote:

 Hey Everyone,

 I'm a new D developer and therefore new to Gtkd.
 So far I've had no problems building this project with DUB. 
 However I want to move over to meson so that I can build it for 
 flatpak. I am finding that I am unable to build with meson.
Hi Kendell, If I may be so bold... Welcome to the D forum. I also saw your post over on the GtkD forum. I didn't want you to think everyone's ignoring you, but... I can't help you, but sometimes when someone (in this case, me) jumps in with an initial reply, it attracts more attention to a thread. Mike, the guy who moderates the GtkD forum may be quite busy ATM which may be why he didn't reply. Here's hoping someone will notice your plea.
Mar 10 2020
parent Russel Winder <russel winder.org.uk> writes:
On Tue, 2020-03-10 at 14:18 +0000, Ron Tarrant via Digitalmars-d-learn
wrote:
 On Monday, 9 March 2020 at 22:48:35 UTC, Kendell wrote:
=20
 Hey Everyone,
=20
 I'm a new D developer and therefore new to Gtkd.
 So far I've had no problems building this project with DUB.=20
 However I want to move over to meson so that I can build it for=20
 flatpak. I am finding that I am unable to build with meson.
=20 [=E2=80=A6] =20 Here's hoping someone will notice your plea.
I have got stuck in to this on the GtkD forum. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk
Mar 10 2020
prev sibling parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
On Monday, 9 March 2020 at 22:48:35 UTC, Kendell wrote:
 Hey Everyone,

 I'm a new D developer and therefore new to Gtkd. By day I'm an 
 android developer using Kotlin and most of my hobby projects 
 are in Go.

 [...]
I opened an issue about a year ago when I started playing around with d. looks like a similar problem. https://github.com/mesonbuild/meson/issues/4761
Mar 10 2020