www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Install DWT2 using DMD and Tango

reply Fabian <contact-fab freenet.de> writes:
Hi
I'm trying to install DWT2 to create GUI applications with D.
I have downloaded DWT2 with TortoiseHg already and I've installed Ruby 
and Rake. But when I try to build the packages I get the following error 
message:

http://imageshack.us/photo/my-images/62/dwt2error.png/

Is there anybody who can help me?
I believe it's possible to use DWT2 and Tango - isn't it?

Greetings Fabian
Jun 08 2011
next sibling parent reply Andrew Wiley <wiley.andrew.j gmail.com> writes:
On Wed, Jun 8, 2011 at 11:54 AM, Fabian <contact-fab freenet.de> wrote:

 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and
 Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?
It's called DWT2 because it's a port of the existing DWT code to D2. Tango is a replacement standard library for D1, so no, they can't really be used together. I'm not sure about the state of DWT1, but it should be fairly stable, even if it hasn't been worked on recently. As an overview, D1 originally had Phobos as the standard library, but it wasn't that great, so an independent team built Tango as a replacement. Tango hasn't ever officially shipped with DMD, the reference compiler, but it's pretty much become the standard for D1 (with a few exceptions and attempts to reconcile it with Phobos). Nowadays, we have D2 and Phobos2 (which is generally just called Phobos). There's an ongoing project to port Tango to D2 as well, and Druntime, the runtime library, has been separated from Phobos2 to hopefully make Tango and Phobos2 coexist if/when that D2 port is completed (back in D1, Phobos and Tango both included their own runtimes, so you couldn't use both at the same time). In the meantime, Phobos2 far better than Phobos1, and Andrei has been leading its development. "Learn to Tango with D" obviously refers to D1/Tango "The D Programming Language" refers to D2/Phobos2 Hopefully that makes everything a bit clearer.
Jun 08 2011
next sibling parent Fabian <contact-fab freenet.de> writes:
But I try to install DWT2. Do you understand?
I've got the Tango book but it's pretty difficult to install DWT2. So I 
can't build GUI apps.

Greetings Fabian
Jun 08 2011
prev sibling next sibling parent "Nick Sabalausky" <a a.a> writes:
"Andrew Wiley" <wiley.andrew.j gmail.com> wrote in message 
news:mailman.718.1307566795.14074.digitalmars-d-learn puremagic.com...
 On Wed, Jun 8, 2011 at 11:54 AM, Fabian <contact-fab freenet.de> wrote:

 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby 
 and
 Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?
It's called DWT2 because it's a port of the existing DWT code to D2.
Are you sure about that? I'm not really experienced with DWT, but the DWT2 repo has a bunch of commits that refer to D1 and Tango: http://hg.dsource.org/projects/dwt2 And the readme at the bottom of this page seems to indicate it's both D2/Phobos2 and D1/Tango: https://bitbucket.org/torhus/dwt2
Jun 08 2011
prev sibling next sibling parent reply Jesse Phillips <jessekphillips+D gmail.com> writes:
Andrew Wiley Wrote:

 On Wed, Jun 8, 2011 at 11:54 AM, Fabian <contact-fab freenet.de> wrote:
 
 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and
 Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?
It's called DWT2 because it's a port of the existing DWT code to D2. Tango is a replacement standard library for D1, so no, they can't really be used together. I'm not sure about the state of DWT1, but it should be fairly stable, even if it hasn't been worked on recently.
No, DWT2 is a strategy change to how DWT is structured. The change was to use the structure of SWT instead of renaming and moving everything. This was to make porting easier. It also combined dwt-linux, dwt-windows dwt-mac under one repository. Fabian, I think you should check that Tango is properly installed. From the repo: The sc.ini/dmd.conf of the DMD in the PATH needs to have all necessary parameters to build a application with the std lib. E.g. for Tango it can look like this: [Environment] LINKCMD=% P%\link.exe LIB="% P%\..\..\..\..\tango\lib" DFLAGS="-I% P%\..\..\..\..\tango" -version=Tango -defaultlib=tango-base-dmd.lib -debuglib=tango-base-dmd.lib
Jun 08 2011
next sibling parent Andrew Wiley <wiley.andrew.j gmail.com> writes:
On Wed, Jun 8, 2011 at 2:57 PM, Jesse Phillips
<jessekphillips+D gmail.com>wrote:

 Andrew Wiley Wrote:

 On Wed, Jun 8, 2011 at 11:54 AM, Fabian <contact-fab freenet.de> wrote:

 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby
and
 Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?
It's called DWT2 because it's a port of the existing DWT code to D2.
Tango
 is a replacement standard library for D1, so no, they can't really be
used
 together.
 I'm not sure about the state of DWT1, but it should be fairly stable,
even
 if it hasn't been worked on recently.
No, DWT2 is a strategy change to how DWT is structured. The change was to use the structure of SWT instead of renaming and moving everything. This was to make porting easier. It also combined dwt-linux, dwt-windows dwt-mac under one repository.
Ah, apparently I am a font of misinformation. Now that I think about it, I do remember a discussion a while back about issues making D2 code remain compatible with D1 where DWT2 was brought up. Or at least I think I do. Sorry for the noise.
Jun 08 2011
prev sibling parent Fabian <contact-fab freenet.de> writes:
On 08.06.2011 23:57, Jesse Phillips wrote:
 Andrew Wiley Wrote:

 On Wed, Jun 8, 2011 at 11:54 AM, Fabian<contact-fab freenet.de>  wrote:

 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby and
 Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?
It's called DWT2 because it's a port of the existing DWT code to D2. Tango is a replacement standard library for D1, so no, they can't really be used together. I'm not sure about the state of DWT1, but it should be fairly stable, even if it hasn't been worked on recently.
No, DWT2 is a strategy change to how DWT is structured. The change was to use the structure of SWT instead of renaming and moving everything. This was to make porting easier. It also combined dwt-linux, dwt-windows dwt-mac under one repository. Fabian, I think you should check that Tango is properly installed. From the repo: The sc.ini/dmd.conf of the DMD in the PATH needs to have all necessary parameters to build a application with the std lib. E.g. for Tango it can look like this: [Environment] LINKCMD=% P%\link.exe LIB="% P%\..\..\..\..\tango\lib" DFLAGS="-I% P%\..\..\..\..\tango" -version=Tango -defaultlib=tango-base-dmd.lib -debuglib=tango-base-dmd.lib
My sc.ini looks like this: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib"; LINKCMD=% P%\link.exe DFLAGS="-I% P%\..\import" "-I% P%\..\import\tango\core\vendor" -version=Tango -defaultlib=tango.lib -debuglib=tango.lib -L+tango.lib
Jun 09 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-06-08 22:59, Andrew Wiley wrote:
 On Wed, Jun 8, 2011 at 11:54 AM, Fabian <contact-fab freenet.de
 <mailto:contact-fab freenet.de>> wrote:

     Hi
     I'm trying to install DWT2 to create GUI applications with D.
     I have downloaded DWT2 with TortoiseHg already and I've installed
     Ruby and Rake. But when I try to build the packages I get the
     following error message:

     http://imageshack.us/photo/my-images/62/dwt2error.png/

     Is there anybody who can help me?
     I believe it's possible to use DWT2 and Tango - isn't it?


 It's called DWT2 because it's a port of the existing DWT code to D2.
 Tango is a replacement standard library for D1, so no, they can't really
 be used together.
 I'm not sure about the state of DWT1, but it should be fairly stable,
 even if it hasn't been worked on recently.

 As an overview, D1 originally had Phobos as the standard library, but it
 wasn't that great, so an independent team built Tango as a replacement.
 Tango hasn't ever officially shipped with DMD, the reference compiler,
 but it's pretty much become the standard for D1 (with a few exceptions
 and attempts to reconcile it with Phobos).
 Nowadays, we have D2 and Phobos2 (which is generally just called
 Phobos). There's an ongoing project to port Tango to D2 as well, and
 Druntime, the runtime library, has been separated from Phobos2 to
 hopefully make Tango and Phobos2 coexist if/when that D2 port is
 completed (back in D1, Phobos and Tango both included their own
 runtimes, so you couldn't use both at the same time). In the meantime,
 Phobos2 far better than Phobos1, and Andrei has been leading its
 development.

 "Learn to Tango with D" obviously refers to D1/Tango
 "The D Programming Language" refers to D2/Phobos2

 Hopefully that makes everything a bit clearer.
DWT2 is supposed to work with D2/Phobos and D1/Tango, anything other is a bug. I haven't compiled DWT with D1/Tango for a while now so it might not compile. -- /Jacob Carlborg
Jun 16 2011
prev sibling next sibling parent Fabian <contact-fab freenet.de> writes:
I decided to use gtkD but I would be very glad if anybody is able to 
solve my problem.
Jun 09 2011
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2011-06-08 20:54, Fabian wrote:
 Hi
 I'm trying to install DWT2 to create GUI applications with D.
 I have downloaded DWT2 with TortoiseHg already and I've installed Ruby
 and Rake. But when I try to build the packages I get the following error
 message:

 http://imageshack.us/photo/my-images/62/dwt2error.png/

 Is there anybody who can help me?
 I believe it's possible to use DWT2 and Tango - isn't it?

 Greetings Fabian
I haven't tested to compile DWT with D1/Tango for a while so it might not be compiling, I'll look in to it. -- /Jacob Carlborg
Jun 16 2011