FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile with dmd 2

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Yoschi



Joined: 27 Dec 2009
Posts: 6
Location: Germany

PostPosted: Wed Jan 06, 2010 8:37 am    Post subject: Compile with dmd 2 Reply with quote

Hello @ all!

Can I compile gtkD with the dmd 2 compiler?
And if so, how?

Thanks,
Yoschi
Back to top
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Wed Jan 06, 2010 1:53 pm    Post subject: Re: Compile with dmd 2 Reply with quote

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
View user's profile Send private message
Yoschi



Joined: 27 Dec 2009
Posts: 6
Location: Germany

PostPosted: Wed Jan 06, 2010 2:15 pm    Post subject: Reply with quote

Tank you!

I use Ubuntu Very Happy. The download page did not load, so I have installed gtkD succesfully with make.


Yoschi

PS: Sorry for my bad English
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jan 06, 2010 2:38 pm    Post subject: Reply with quote

It looks like it broke in the latest compilers.

You should be able to compile with dmd 2.037
Back to top
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Wed Jan 06, 2010 3:48 pm    Post subject: Reply with quote

Yoschi wrote:
Tank you!

I use Ubuntu Very Happy. 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
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Wed Jan 06, 2010 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jan 06, 2010 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Wed Jan 06, 2010 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Wed Jan 06, 2010 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
iorlas



Joined: 07 Jan 2010
Posts: 1

PostPosted: Thu Jan 07, 2010 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jan 07, 2010 1:28 pm    Post subject: Reply with quote

I'll look into this,

for now it should sill compile if warnings aren't enabled.
Back to top
View user's profile Send private message
Epileg



Joined: 10 Sep 2009
Posts: 77

PostPosted: Thu Jan 07, 2010 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jan 07, 2010 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jan 07, 2010 4:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group