Using Dub to create a GtkD application, the executable starts at 23MB and takes an age to compile and link. This is very disruptive to quick turnaround and experimentation. Is there any way of getting Dub to build a dynamic shared object of GtkD and use dynamic linking?
Pages: 1 2
On 03/07/2016 08:16 PM, Russel Winder wrote:
Using Dub to create a GtkD application, the executable starts at 23MB and takes an age to compile and link. This is very disruptive to quick turnaround and experimentation. Is there any way of getting Dub to build a dynamic shared object of GtkD and use dynamic linking?
I think you'll need to compile a shared version of GtkD and then use the
"libs" build setting with dub.
But i don't really use dub, so there might be a better option.
On Mon, 7 Mar 2016 22:23:41 +0100, Mike Wey wrote:
[…]
I think you'll need to compile a shared version of GtkD and then use the
"libs" build setting with dub.But i don't really use dub, so there might be a better option.
I was trying to avoid having to go back to building my own GtkD, but maybe that is the right thing to do.
I guess the best way is to clone the Repository and then checkout the release tag and build from there.
I may well ditch Dub for this and switch back to using SCons
On Tue, 08 Mar 2016 12:40:16 GMT, Russel Winder wrote:
I may well ditch Dub for this and switch back to using SCons
I have been able to make Dub do most of what I want, so it can do it. I still prefer SCons for this though.
Mike Wey mike@mikewey.eu writes:
But i don't really use dub, so there might be a better option.
It seems we'll choose to use GtkD for writing GUI apps in D, but wonder
which build tool you can recommend considering you're not using dub?
@Russel: what is your experience with SCons and (Gtk)D?
I'm also puzzled seeing in the Dub's docs
(https://code.dlang.org/docs/commandline) the following:
generate
dub generate <generator> [<package>] [<options...>]
Generates project files using one of the supported generators:
visuald - VisualD project files
sublimetext - SublimeText project file
cmake - CMake build scripts
build - Builds the package directly
so I wonder whether it means that Dub can create script suitable for
CMake?
Sincerely,
Gour
One must deliver himself with the help of his mind, and not
degrade himself. The mind is the friend of the conditioned soul,
and his enemy as well.
On 03/14/2016 10:38 AM, Saša Janiška wrote:
Mike Wey mike@mikewey.eu writes:
But i don't really use dub, so there might be a better option.
It seems we'll choose to use GtkD for writing GUI apps in D, but wonder
which build tool you can recommend considering you're not using dub?@Russel: what is your experience with SCons and (Gtk)D?
I'm also puzzled seeing in the Dub's docs
(https://code.dlang.org/docs/commandline) the following:generate
dub generate <generator> [<package>] [<options...>]
Generates project files using one of the supported generators:
visuald - VisualD project files
sublimetext - SublimeText project file
cmake - CMake build scripts
build - Builds the package directlyso I wonder whether it means that Dub can create script suitable for
CMake?Sincerely,
Gour
I personally use gnu make.
dub does generate cmake files but you'll need to use the fork from:
https://github.com/trentforkert/cmake.
Mike Wey mike@mikewey.eu writes:
I personally use gnu make.
Thanks.
dub does generate cmake files but you'll need to use the fork from:
https://github.com/trentforkert/cmake.
Ahh, that's not practical then (for now), so it remains to be heard from
Russel in regard to SCons vs dub.
Sincerely,
Gour
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.
On Tue, 08 Mar 2016 12:32:52 GMT, Russel Winder wrote:
On Mon, 7 Mar 2016 22:23:41 +0100, Mike Wey wrote:
[…]I think you'll need to compile a shared version of GtkD and then use the
"libs" build setting with dub.But i don't really use dub, so there might be a better option.
I was trying to avoid having to go back to building my own GtkD, but maybe that is the right thing to do.
I guess the best way is to clone the Repository and then checkout the release tag and build from there.
Hi Russel,
I'm successfully using DUB with the http://d-apt.sourceforge.net/ GtkD debian packages which contain a shared version of GtkD.
It's nice as it produces smaller executables
On Thu, 24 Mar 2016 00:29:01 GMT, Jean-Baptiste Lab wrote:
On Tue, 08 Mar 2016 12:32:52 GMT, Russel Winder wrote:
On Mon, 7 Mar 2016 22:23:41 +0100, Mike Wey wrote:
[…]I think you'll need to compile a shared version of GtkD and then use the
"libs" build setting with dub.But i don't really use dub, so there might be a better option.
I was trying to avoid having to go back to building my own GtkD, but maybe that is the right thing to do.
I guess the best way is to clone the Repository and then checkout the release tag and build from there.
Hi Russel,
I'm successfully using DUB with the http://d-apt.sourceforge.net/ GtkD debian packages which contain a shared version of GtkD.
It's nice as it produces smaller executables and links a hell of a lot quicker on my slow machine.
There's a caveat though: DUB needs to be fixed to handle some pkg-config issues. The good news is that my PR for exactly this has been accepted and merged, so you can either build DUB from github and get going or wait for a release...
Cheers,
JB
Pages: 1 2