Description

GtkD is the Digital Mars D programing language OO wrapper for Gtk+.

Package Information

Version3.6.4 (2017-May-26)
Homepage http://gtkd.org
Repository https://github.com/gtkd-developers/GtkD
LicenseLGPL license with additional exceptions
AuthorsFrank Benoit, Jake Day, Jonas Kivi, Alan Knowles, Antonio Monteiro, Sebastián E. Peyrott, John Reimer, Mike Wey, hauptmech
Registered byMike Wey
Sub packages
gtk-d:gtkd
gtk-d:gtkdgl
gtk-d:sv
gtk-d:gstreamer
gtk-d:vte
gtk-d:peas
Dependencies

gtk-d:sv

gtk-d:gstreamer

gtk-d:gtkd

gtk-d:gtkdgl

gtk-d:peas

gtk-d:vte

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

GtkD

GtkD is the Digital Mars D programming language OO wrapper for Gtk+ 3.10. GtkD is release on the LGPL license with additional exceptions.

Please view COPYING for GtkD's license.

Requirements

  • Linux, Windows(2000, XP), or Mac
  • Gtk libs
  • dmd, gdc or ldc installation

optional:

  • OpenGL libs (mesa is fine on Linux)
  • GtkGLext 3

Who are you?

If you want to write some wicked cool D and Gtk+ apps, grab the gtkD release archive at http://gtkd.org/download.html.

If you want to tweak the automatic wrapper or help with it, use git... https://github.com/gtkd-developers/GtkD

Installation

The installation depends on the setup of your development environment. This means that to release your project you must include the GtkD lib on your deliverable or statically link to GtkD – please pay attention to the license.

Compile the lib and the test programs

Linux / Posix

Using the GNU make to compile GtkD on these Operating systems, calling make with no options will build GtkD, GtkD-Sourceview and one of the demos. Optionally these options are available:

Option | Meaning --- | --- all | build everything. [shared-]gtkd | build gtkd. [shared-]gtkdsv | build gtkd-sourceview. [shared-]gda | build gda. [shared-]gstreamer | build gstreamer. shared | build gtkd and gtkd-sourceview as shared libraries.

install and uninstall options are also available for the options mentioned above.

Or you can use one of the build options also available for Windows.

OSX

The build options are the same as for Linux.

If on OSX GtkD is unable to find the GTK libraries. Some environment variables can be set to override the search path. GTK_BASEPATH and HOMEBREW_ROOT. GTK_BASEPATH takes precedence over HOMEBREW_ROOT.

Windows

To build on Windows you can use the build script in combination with rdmd.

rdmd Build.d

By default this builds gtkd, gtkdgl and gtkdsv to compile only one of these or gstreamerd you can pass the following options to the build file:

Option | Meaning --- | --- gtkd | build GtkD. gtkdgl | build GtkDGL. sv | build gtkd-sourceview gstreamer | build gstreamer. all | build everything.

For all the abobe packages there a two option avalable to specify aditional compiler and linker flags:

  • --dcflags="your compiler flags"
  • --ldflags="your linker flags"

To specify if it should build for 64 or 32 bits, pass either the -m32 or -m64 flag to rdmd.

rdmd -m64 Build.d

Wrapped Versions

GtkD wraps Gtk+ 3.22 the versions of the associated libraries are:

Library | Version --- | --- Gtk+ | 3.22 Gdk | 3.22 Glib | 2.52 GObject | 2.52 Gio | 2.52 Pango | 1.40 Atk | 2.24 Gdk-pixbuf | 2.36 Cairo | 1.12.2 GtksourceView | 3.24 GStreamer | 1.12 Vte3 | 0.48

Available versions

3.6.4 3.6.3 3.6.2 3.6.1 3.6.0 3.5.1 3.5.0 3.4.1 3.4.0 3.3.1 3.3.0 3.2.3 3.2.2 3.2.1 3.2.0 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.0 3.0.0-beta 2.4.2 2.4.1 2.4.0 2.3.3 2.3.2 2.3.1 2.3.0 1.7.8 1.7.7 1.7.6 1.7.5 1.7.4 ~master ~wrap-gir ~GtkD_2.3 ~GtkD-3.6 ~Gtk2