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:
--0016e68ee44dbfcefa04a5399d72
Content-Type: text/plain; charset=ISO-8859-1

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. --0016e68ee44dbfcefa04a5399d72 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Wed, Jun 8, 2011 at 11:54 AM, Fabian <span di= r=3D"ltr">&lt;<a href=3D"mailto:contact-fab freenet.de">contact-fab freenet= .de</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"mar= gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi<br> I&#39;m trying to install DWT2 to create GUI applications with D.<br> I have downloaded DWT2 with TortoiseHg already and I&#39;ve installed Ruby = and Rake. But when I try to build the packages I get the following error me= ssage:<br> <br> <a href=3D"http://imageshack.us/photo/my-images/62/dwt2error.png/" target= =3D"_blank">http://imageshack.us/photo/my-images/62/dwt2error.png/</a><br> <br> Is there anybody who can help me?<br> I believe it&#39;s possible to use DWT2 and Tango - isn&#39;t it?<br></bloc= kquote><div><br></div><div>It&#39;s called DWT2 because it&#39;s a port of = the existing DWT code to D2. Tango is a replacement standard library for D1= , so no, they can&#39;t really be used together.</div> <div>I&#39;m not sure about the state of DWT1, but it should be fairly stab= le, even if it hasn&#39;t been worked on recently.</div><div><br></div><div=
As an overview, D1 originally had Phobos as the standard library, but it w=

Tango hasn&#39;t ever officially shipped with DMD, the reference compiler, = but it&#39;s pretty much become the standard for D1 (with a few exceptions = and attempts to reconcile it with Phobos).</div> <div>Nowadays, we have D2 and Phobos2 (which is generally just called Phobo= s). There&#39;s an ongoing project to port Tango to D2 as well, and Druntim= e, the runtime library, has been separated from Phobos2 to hopefully make T= ango and Phobos2 coexist if/when that D2 port is completed (back in D1, Pho= bos and Tango both included their own runtimes, so you couldn&#39;t use bot= h at the same time). In the meantime, Phobos2 far better than Phobos1, and = Andrei has been leading its development.</div> <div><br></div><div>&quot;Learn to Tango with D&quot; obviously refers to D= 1/Tango</div><div>&quot;The D Programming Language&quot; refers to D2/Phobo= s2</div><div><br></div><div>Hopefully that makes everything a bit clearer.<= /div> </div><br> --0016e68ee44dbfcefa04a5399d72--
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
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 Andrew Wiley <wiley.andrew.j gmail.com> writes:
--001636c9258d44cb1704a541fa03
Content-Type: text/plain; charset=ISO-8859-1

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


 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.

 is a replacement standard library for D1, so no, they can't really be

 together.
 I'm not sure about the state of DWT1, but it should be fairly stable,

 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. --001636c9258d44cb1704a541fa03 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div class=3D"gmail_quote">On Wed, Jun 8, 2011 at 2:57 PM, Jesse Phillips <= span dir=3D"ltr">&lt;<a href=3D"mailto:jessekphillips%2BD gmail.com">jessek= phillips+D gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex= ;"> <div class=3D"im">Andrew Wiley Wrote:<br> <br> &gt; On Wed, Jun 8, 2011 at 11:54 AM, Fabian &lt;<a href=3D"mailto:contact-= fab freenet.de">contact-fab freenet.de</a>&gt; wrote:<br> &gt;<br> </div><div><div></div><div class=3D"h5">&gt; &gt; Hi<br> &gt; &gt; I&#39;m trying to install DWT2 to create GUI applications with D.= <br> &gt; &gt; I have downloaded DWT2 with TortoiseHg already and I&#39;ve insta= lled Ruby and<br> &gt; &gt; Rake. But when I try to build the packages I get the following er= ror<br> &gt; &gt; message:<br> &gt; &gt;<br> &gt; &gt; <a href=3D"http://imageshack.us/photo/my-images/62/dwt2error.png/= " target=3D"_blank">http://imageshack.us/photo/my-images/62/dwt2error.png/<= /a><br> &gt; &gt;<br> &gt; &gt; Is there anybody who can help me?<br> &gt; &gt; I believe it&#39;s possible to use DWT2 and Tango - isn&#39;t it?= <br> &gt; &gt;<br> &gt;<br> </div></div><div class=3D"im">&gt; It&#39;s called DWT2 because it&#39;s a = port of the existing DWT code to D2. Tango<br> &gt; is a replacement standard library for D1, so no, they can&#39;t really= be used<br> &gt; together.<br> &gt; I&#39;m not sure about the state of DWT1, but it should be fairly stab= le, even<br> &gt; if it hasn&#39;t been worked on recently.<br> <br> </div>No, DWT2 is a strategy change to how DWT is structured. The change wa= s to use the structure of SWT instead of renaming and moving everything. Th= is was to make porting easier. It also combined dwt-linux, dwt-windows dwt-= mac under one repository.<br> </blockquote><div><br></div><div>Ah, apparently I am a font of misinformati= on. Now that I think about it, I do remember a discussion a while back abou= t issues making D2 code remain compatible with D1 where DWT2 was brought up= . Or at least I think I do.</div> <div>Sorry for the noise.</div></div> --001636c9258d44cb1704a541fa03--
Jun 08 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