Need Help on Compiling DWT2 in XP

%u free2000fly at sohu.com
Thu Apr 9 06:01:13 PDT 2009


dmd:
Digital Mars D Compiler v1.042

Tango:
http://svn.dsource.org/projects/tango/trunk

DWT2:
http://hg.dsource.org/projects/dwt2/

========================================================================================

rake core          # Build Eclipse Core
rake jfacetext     # Build JFace.Text

C:\dmd1042\dmd\src\dwt2>rake jfacetext
(in C:/dmd1042/dmd/src/dwt2)
Building org.eclipse.text
Building org.eclipse.jface.text.projection
../src\org\eclipse\jface\text\AbstractHoverInformationControlManager.d(183): Err
or: module Job cannot read file 'org\eclipse\core\runtime\jobs\Job.d'
rake aborted!
compile error
C:/dmd1042/dmd/src/dwt2/rakefile:161:in `buildTree'
(See full trace by running task with --trace)

C:\dmd1042\dmd\src\dwt2>rake jfacetext
(in C:/dmd1042/dmd/src/dwt2)
Building org.eclipse.text
Building org.eclipse.jface.text.projection
../src\org\eclipse\jface\text\AbstractHoverInformationControlManager.d(183): Err
or: module Job cannot read file 'org\eclipse\core\runtime\jobs\Job.d'
rake aborted!
compile error
C:/dmd1042/dmd/src/dwt2/rakefile:161:in `buildTree'
(See full trace by running task with --trace)

========================================================================================

================================== WinApp01.d ===================================
import std.c.windows.windows;
import std.c.stdio;


import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

void _main ()
{
    auto display = new Display;
    auto shell = new Shell(display);
    shell.setText = "Hello DWT World from http://bbs.d-programming-language-china.org/ ";
    shell.open;
    while (!shell.isDisposed)
        if (!display.readAndDispatch)
            display.sleep;

    display.dispose;
}


extern (C) void gc_init();
extern (C) void gc_term();
extern (C) void _minit();
extern (C) void _moduleCtor();
extern (C) void _moduleUnitTests();

extern (Windows)
int WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPSTR lpCmdLine,
    int nCmdShow)
{
    int nResult = 0;

    gc_init();			// initialize garbage collector
    _minit();			// initialize module constructor table

    try
    {
	_moduleCtor();		// call module constructors
	_moduleUnitTests();	// run unit tests (optional)

        _main();
	// result = doit();	// insert user code here
    }

    catch (Object o)		// catch any uncaught exceptions
    {
	MessageBoxA(null, cast(char *)o.toString(), "Error",
		    MB_OK | MB_ICONEXCLAMATION);
	nResult = 0;		// failed
    }

    gc_term();			// run finalizers; terminate garbage collector


    return nResult;
}

======================================================================================

-------------- Build: Debug in WinApp01 ---------------

Compiling: hello.d
C:\dmd1042\dmd\windows\bin\..\..\..\dmd\src\dwt2\imp\java\lang\wrappers.di(48): Error: identifier 'equals_t' is not defined
C:\dmd1042\dmd\windows\bin\..\..\..\dmd\src\dwt2\imp\java\lang\wrappers.di(48): Error: equals_t is used as a type
C:\dmd1042\dmd\windows\bin\..\..\..\dmd\src\dwt2\imp\java\lang\wrappers.di(48): Error: function java.lang.wrappers.ArrayWrapperT!
(byte).ArrayWrapperT.opEquals of type void(Object o) overrides but is not covariant with object.Object.opEquals of type int(Object o)
C:\dmd1042\dmd\windows\bin\..\..\..\dmd\src\dwt2\imp\java\lang\wrappers.di(48): Error: function java.lang.wrappers.ArrayWrapperT!
(byte).ArrayWrapperT.opEquals does not override any function
C:\dmd1042\dmd\windows\bin\..\..\..\dmd\src\dwt2\imp\java\lang\wrappers.di(157): Error: template instance java.lang.wrappers.ArrayWrapperT!(byte) error
instantiating
Process terminated with status 1 (0 minutes, 1 seconds)
5 errors, 0 warnings




More information about the Digitalmars-d-dwt mailing list