Building dwt2 (DMD2 + Windows)

Jacob Carlborg doob at me.com
Wed Sep 1 13:42:28 PDT 2010


On 2010-08-31 23:42, Andrej Mitrovic wrote:
> Hi,
>
> I'm trying to build the dwt2 bitbucket fork. As I understand it, the non-fork version doesn't compile with D2. (at least that's what I've read on this NG).
>
> I can't build dwt2 though. The readme says I can use `rake base swt`, so I've tried that:
>
> C:\dwt2>rake base swt
> (in C:/dwt2)
> Building dwt-base
> workdir=>C:/dwt2/base/src
> cat C:/dwt2/rsp | xargs dmd
> java\text\Collator.d(4): Error: module Comparator is in file 'java\util\Comparator.d' which cannot be read
> import path[0] = C:/dwt2/base/src
> import path[1] = C:/dwt2/imp
> import path[2] = C:\DMD\dmd2\windows\bin\..\..\src\phobos
> import path[3] = C:\DMD\dmd2\windows\bin\..\..\src\druntime\import
> import path[4] = C:\dwt2\base\src
> ar @C:/dwt2/rsp>  C:/dwt2/olog.txt
> Building org.eclipse.swt.gtk.linux.x86
> workdir=>C:/dwt2/org.eclipse.swt.gtk.linux.x86/src
> cat C:/dwt2/rsp | xargs dmd
> org\eclipse\swt\custom\DefaultContent.d(913): 192 is 128 must be parenthesized when nex
> t to operator&
> org\eclipse\swt\custom\DefaultContent.d(922): 192 is 128 must be parenthesized when nex
> t to operator&
> org\eclipse\swt\graphics\GC.d(537): data.image is null must be parenthesized when next
> to operator&
> org\eclipse\swt\internal\c\gtk_unix_print_2_0.d(33): no identifier for declarator inout
> (s)
> org\eclipse\swt\internal\image\JPEGDecoder.d(2356): no identifier for declarator inout(
> el)
> ar @C:/dwt2/rsp>  C:/dwt2/olog.txt
>
> There doesn't seem to be any Comparator.d file anywhere, although there's a ViewerComparator.d in C:\dwt2\org.eclipse.jface\src\org\eclipse\jface\viewers . Also, I've no idea why I see this line in the output: "Building org.eclipse.swt.gtk.linux.x86". I'm not on Linux.
>
> I've added the C:\dwt2\base\src dir as an include in the sc.ini file. This is my sc.ini:
> [Version]
> version=7.51 Build 020
>
> [Environment]
> LIB="%@P%\..\lib";\dm\lib
> DFLAGS="-I%@P%\..\..\src\phobos" "-I%@P%\..\..\src\druntime\import" -IC:\dwt2\base\src
> LINKCMD=%@P%\link.exe
>
> The rakefile dates back 10 months, so maybe I shouldn't even be using it. Anyone managed to make a build on Windows?

I'm currently updating DWT2 (the official repository) to the latest D1 
(linux is currently done). Then I'll update the windows port as well and 
then I'm going to try to build with D2.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-dwt mailing list