www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GTK and D

reply Russel Winder <russel winder.org.uk> writes:
I guess a heads up for folk working on D bindings to GTK+:

http://www.gtk.org/language-bindings.php

Indicates D has bindings to 2.12, 2.14, 2.16, 2.18, 2.20 and 2.22, but
not 2.24 and, most problematically, not 3.0.

The link from this page points at:
http://www.dsource.org/projects/gtkd. (It is interestingly ironic that
this tells Linux users to have the latest GTK+ libraries installed given
the data from the previous paragraph ;-)

On the other hand it seems that https://github.com/gtkd-developers/GtkD
is the actual home, but I am not sure there is a reference to this on
the dsource page.

Being a Debian user I was interested in https://code.google.com/p/d-apt/
but it seems the instructions for using this break since
http://d-apt.googlecode.com/files results in a 404.  Also I am assuming
it is an oversight that Tango-D2 is packaged but Phobos is not?

--=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=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   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Apr 21 2012
next sibling parent reply Mike Wey <mike-wey example.com> writes:
On 04/22/2012 04:51 AM, Russel Winder wrote:
 I guess a heads up for folk working on D bindings to GTK+:

 http://www.gtk.org/language-bindings.php

 Indicates D has bindings to 2.12, 2.14, 2.16, 2.18, 2.20 and 2.22, but
 not 2.24 and, most problematically, not 3.0.
Git/svn currently binds GTK 2.24. But 3.0 and up is indeed not supported jet.
 The link from this page points at:
 http://www.dsource.org/projects/gtkd. (It is interestingly ironic that
 this tells Linux users to have the latest GTK+ libraries installed given
 the data from the previous paragraph ;-)
Up untill the GTK 3.0 release using GtkD with an newer release didn't cause any problems, i've changed it to latest 2.x release.
 On the other hand it seems that https://github.com/gtkd-developers/GtkD
 is the actual home, but I am not sure there is a reference to this on
 the dsource page.
Both pages are up to date.
 Being a Debian user I was interested in https://code.google.com/p/d-apt/
 but it seems the instructions for using this break since
 http://d-apt.googlecode.com/files results in a 404.  Also I am assuming
 it is an oversight that Tango-D2 is packaged but Phobos is not?
While you can't view the directory with a browser, all the needed files are accessible. And i think Phobos is in the dmd package. -- Mike Wey
Apr 22 2012
parent reply Russel Winder <russel winder.org.uk> writes:
Mike,

On Sun, 2012-04-22 at 16:32 +0200, Mike Wey wrote:
[...]
 Git/svn currently binds GTK 2.24.
 But 3.0 and up is indeed not supported jet.
OK. For now I'll stick with PyGObject, and the dreaded gtkmm. [...]
 Up untill the GTK 3.0 release using GtkD with an newer release didn't=20
 cause any problems, i've changed it to latest 2.x release.
Good to know. Might be worth changing the website to say GTK 2.2x is supported rather than 2.22? [...]
 Both pages are up to date.
Perhaps add some cross-referencing to make it clear the pages are about the same stuff? [...]
 While you can't view the directory with a browser, all the needed files=
=20
 are accessible.
What is the way of checking access if not via a browser? Using the source.list entry: deb http://d-apt.googlecode.com/files ./ I get the result: Failed to fetch http://d-apt.googlecode.com/files/./Packages 404 Not Found
 And i think Phobos is in the dmd package.
OK, that'll work for me as soon as I can get at the packages with aptitude and approx. Thanks. --=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=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 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Apr 22 2012
parent reply Mike Wey <mike-wey example.com> writes:
On 04/22/2012 05:45 PM, Russel Winder wrote:
 What is the way of checking  access if not via a browser?  Using the
 source.list entry:

 deb http://d-apt.googlecode.com/files ./

 I get the result:

 Failed to fetch http://d-apt.googlecode.com/files/./Packages  404  Not
 Found
Odd trying to download http://d-apt.googlecode.com/files/./Packages with a browser or wget completes without any errors. -- Mike Wey
Apr 22 2012
parent reply Russel Winder <russel winder.org.uk> writes:
Mike,

On Sun, 2012-04-22 at 20:07 +0200, Mike Wey wrote:
[...]
 Odd trying to download http://d-apt.googlecode.com/files/./Packages with=
=20
 a browser or wget completes without any errors.
Hummm... here too. Perhaps browser and wget look for Packages and then Packages.txt whereas aptitude/apt-get do not? I note that the Debian repositories have Package.gz not Package.txt, might this be indicative that plain text should be Packages? This is certainly the filename I use on my personal deb repository. --=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=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 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Apr 22 2012
parent reply "Jordi Sayol" <g.sayol yahoo.es> writes:
On Sunday, 22 April 2012 at 18:32:09 UTC, Russel Winder wrote:
 Mike,

 On Sun, 2012-04-22 at 20:07 +0200, Mike Wey wrote:
 [...]
 Odd trying to download 
 http://d-apt.googlecode.com/files/./Packages with a browser or 
 wget completes without any errors.
http://d-apt.googlecode.com/files/./Packages in unix-like system is same than: http://d-apt.googlecode.com/files/Packages
 Hummm... here too. Perhaps browser and wget look for Packages 
 and then
 Packages.txt whereas aptitude/apt-get do not? I note that the 
 Debian
 repositories have Package.gz not Package.txt, might this be 
 indicative
 that plain text  should be Packages? This is certainly the 
 filename I
 use on my personal deb repository.
On d-apt server there are 4 control files: Packages (text plain file containing data about all deb packages) Packages.gz (Packages file compressed) Release (contains several checksums of Packages and Packages.gz files) Release.gpg (Release signed with d-apt key. verifiable with public key on d-apt-keyring) In an standard apt server there are more control files, but these four are the basic to make the d-apt server to work. Best regards,
Apr 23 2012
parent "Jordi Sayol" <g.sayol yahoo.es> writes:
BTW, More info for d-apt server at:
https://code.google.com/p/d-apt/wiki/APT_Repository#APT_Repository_for_D
Apr 23 2012
prev sibling parent "Jordi Sayol" <g.sayol yahoo.es> writes:
On Sunday, 22 April 2012 at 02:51:29 UTC, Russel Winder wrote:
 Being a Debian user I was interested in 
 https://code.google.com/p/d-apt/
 but it seems the instructions for using this break since
 http://d-apt.googlecode.com/files results in a 404.
This is a correct behaviour. If you want to list all files in d-apt use this link: https://code.google.com/p/d-apt/downloads/list Otherwise, if you want to include d-apt as an apt server, just add the line (without additional dots): deb http://d-apt.googlecode.com/files / at the file: /etc/apt/sources.list
 Also I am assuming it is an oversight that Tango-D2 is
 packaged but Phobos is not?
This is not correct. As phobos is the standard d library, it's included into the dmd package, so there are both phobos and tango libraries available on d-apt server. If you install tango package, you'll able to compile this code: file: test.d --- import tango.io.Stdout; import std.stdio; void main() { Stdout("hello with tango!").newline; writeln("hello with phobos!"); } --- $ dmd `pkg-config --cflags --libs tango` -run test.d About packages on d-apt. I understand that dmd package can be split into two or more packages (compiler, druntime, phobos library with headers, help, etc.). This is the initial apt version, and there is a long way to walk. Best regards,
Apr 23 2012