www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - gtkd shared libraries

With dmd v2.061, gtkd can be compiled to shared library and linked to them
directly with dmd command. Only allow compilation to 64-bit. 32-bit return
"Segmentation Fault".

I've built two deb packages containing gtkd shared libs.:
http://d-packages.googlecode.com/files/libgtkd-1-0_1.7.0%7E2013.01.14-0_amd64.deb
http://d-packages.googlecode.com/files/libgtkd-2-0_2.1.0%7E2012.12.03-0_amd64.deb

They depends on static deb gtkd packages at:
https://code.google.com/p/d-apt/wiki/APT_Repository#APT_repository_for_D

This allow you to compile gtkd1 (gtk+2) and gtkd2 (gtk+3).
Tested with all examples at:
http://dsource.org/projects/gtkd/wiki/CodeExamples

to link against shared libraries:
$ dmd `pkg-config --cflags --libs gtkd-2` gtkd_app.d

to link against static libraries:
$ dmd `pkg-config --cflags --libs gtkd-2-static` gtkd_app.d


P.S. This is just for testing.
-- 
Jordi Sayol
Jan 21 2013