View previous topic :: View next topic |
Author |
Message |
Yoschi
Joined: 27 Dec 2009 Posts: 6 Location: Germany
|
Posted: Wed Jan 06, 2010 8:37 am Post subject: Compile with dmd 2 |
|
|
Hello @ all!
Can I compile gtkD with the dmd 2 compiler?
And if so, how?
Thanks,
Yoschi |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Wed Jan 06, 2010 1:53 pm Post subject: Re: Compile with dmd 2 |
|
|
Yoschi wrote: | Hello @ all!
Can I compile gtkD with the dmd 2 compiler?
And if so, how?
Thanks,
Yoschi |
On Linux, yes, You can. Just install dmd2 v. 2.038 and download gtkd v. 1.3.2.
Extract the gtkd zip file, and from the command line go to the main gtkd directory and type:
$ make
this compiles gtkd.
then type to install:
$ sudo make install
and that's all, Now you have gtkd compiled and installed on Your system!
P.D. If your OS is Ubuntu, I've made some deb packages that makes install and uninstall easier:
http://www.dsource.org/forums/viewtopic.php?t=5043
About Windows, no idea.
Best regards. |
|
Back to top |
|
|
Yoschi
Joined: 27 Dec 2009 Posts: 6 Location: Germany
|
Posted: Wed Jan 06, 2010 2:15 pm Post subject: |
|
|
Tank you!
I use Ubuntu . The download page did not load, so I have installed gtkD succesfully with make.
Yoschi
PS: Sorry for my bad English |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jan 06, 2010 2:38 pm Post subject: |
|
|
It looks like it broke in the latest compilers.
You should be able to compile with dmd 2.037 |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Wed Jan 06, 2010 3:48 pm Post subject: |
|
|
Yoschi wrote: | Tank you!
I use Ubuntu . The download page did not load, so I have installed gtkD succesfully with make.
Yoschi
PS: Sorry for my bad English |
Now it works, so try to download now.
Best regards. |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Wed Jan 06, 2010 4:01 pm Post subject: |
|
|
Mike Wey wrote: | It looks like it broke in the latest compilers.
You should be able to compile with dmd 2.037 |
you are right, sorry.
BTW I have added some little changes on "docs/candydoc/explorer.js" line 230, to package gtkd-doc.
from:
if (path.length == i + 1) {
if ((path[0] == "gtkglc") || (path[0] == "glgtk") || (path[0] == "glgdk")) {
node.setRef("../../srcgl/" + path[0] + "/" + path[i] + ".html");
} else {
node.setRef("../../src/" + path[0] + "/" + path[i] + ".html");
}
}
To:
if (path.length == i + 1) {
if ((path[0] == "gtkglc") || (path[0] == "glgtk") || (path[0] == "glgdk")) {
node.setRef("../../srcgl/" + path[0] + "/" + path[i] + ".html");
} else {
if ((path[0] == "gda") || (path[0] == "gdac")) {
node.setRef("../../srcgda/" + path[0] + "/" + path[i] + ".html");
} else {
if ((path[0] == "gstinterfaces") || (path[0] == "gstreamer") || (path[0] == "gstreamerc")) {
node.setRef("../../srcgstreamer/" + path[0] + "/" + path[i] + ".html");
} else {
if ((path[0] == "gsv") || (path[0] == "gsvc")) {
node.setRef("../../srcsv/" + path[0] + "/" + path[i] + ".html");
} else {
node.setRef("../../src/" + path[0] + "/" + path[i] + ".html");
}
}
}
}
}
Use it if you find it useful.
Best regards. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jan 06, 2010 4:33 pm Post subject: |
|
|
Mike Wey wrote: | It looks like it broke in the latest compilers.
You should be able to compile with dmd 2.037 |
Updated in svn r752/r753 |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Wed Jan 06, 2010 4:43 pm Post subject: |
|
|
Epileg wrote: | Mike Wey wrote: | It looks like it broke in the latest compilers.
You should be able to compile with dmd 2.037 |
you are right, sorry.
BTW I have added some little changes on "docs/candydoc/explorer.js" line 230, to package gtkd-doc.
from:
.... code ....
Use it if you find it useful.
Best regards. |
Added in svn r754
There is an "else if" construct in javascript. |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Wed Jan 06, 2010 5:10 pm Post subject: |
|
|
Mike Wey wrote: |
Added in svn r754
There is an "else if" construct in javascript. |
Ok, thanks.
Now, dmd 2.039 compiles gtkd r753 without problems.
Best regards. |
|
Back to top |
|
|
iorlas
Joined: 07 Jan 2010 Posts: 1
|
Posted: Thu Jan 07, 2010 1:18 am Post subject: |
|
|
Now lib compiles ok, but tests and demos - isn't.
Code: |
warning - /usr/local/include/d/glib/ConstructionException.d(69): Error: overrides base class function object.Throwable.toString, but is not marked with 'override'
warning - /usr/local/include/d/glib/GException.d(78): Error: overrides base class function object.Throwable.toString, but is not marked with 'override'
warning - /usr/local/include/d/pango/PgLanguage.d(136): Error: overrides base class function object.Object.toString, but is not marked with 'override'
warning - /usr/local/include/d/gio/IconT.d(144): Error: overrides base class function object.Object.toString, but is not marked with 'override'
/usr/local/include/d/gio/Icon.d(75): Error: mixin gio.Icon.Icon.IconT!(GIcon) error instantiating
|
=/ |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jan 07, 2010 1:28 pm Post subject: |
|
|
I'll look into this,
for now it should sill compile if warnings aren't enabled. |
|
Back to top |
|
|
Epileg
Joined: 10 Sep 2009 Posts: 77
|
Posted: Thu Jan 07, 2010 3:47 pm Post subject: |
|
|
In My ubuntu 9.10, dmd 2.039 and gtkd r754 compiles without errors.
(I've build a new deb packages for this release)
Just one thing, in the "docs/candydoc/explorer.js" there is missing a close brace "}".
Best regards. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jan 07, 2010 4:02 pm Post subject: |
|
|
iorlas wrote: | Now lib compiles ok, but tests and demos - isn't.
Code: |
warning - /usr/local/include/d/glib/ConstructionException.d(69): Error: overrides base class function object.Throwable.toString, but is not marked with 'override'
warning - /usr/local/include/d/glib/GException.d(78): Error: overrides base class function object.Throwable.toString, but is not marked with 'override'
warning - /usr/local/include/d/pango/PgLanguage.d(136): Error: overrides base class function object.Object.toString, but is not marked with 'override'
warning - /usr/local/include/d/gio/IconT.d(144): Error: overrides base class function object.Object.toString, but is not marked with 'override'
/usr/local/include/d/gio/Icon.d(75): Error: mixin gio.Icon.Icon.IconT!(GIcon) error instantiating
|
=/ |
Fixed in svn r755 |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jan 07, 2010 4:04 pm Post subject: |
|
|
Epileg wrote: | Just one thing, in the "docs/candydoc/explorer.js" there is missing a close brace "}".
Best regards. |
Added in svn r756 |
|
Back to top |
|
|
|