Building dwt2 (DMD2 + Windows)

Andrej Mitrovic andrej.mitrovich at
Tue Aug 31 14:42:00 PDT 2010


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
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
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
org\eclipse\swt\internal\image\JPEGDecoder.d(2356): no identifier for declarator inout(
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=7.51 Build 020

DFLAGS="-I%@P%\..\..\src\phobos" "-I%@P%\..\..\src\druntime\import" -IC:\dwt2\base\src

The rakefile dates back 10 months, so maybe I shouldn't even be using it. Anyone managed to make a build on Windows?

More information about the Digitalmars-d-dwt mailing list