|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.dwt - Need Help on Compiling DWT2 in XP
Hi ,I am going to compiling DWT2 +tango 0998+rake.I have done below steps: 1.Download Tango0998+DMD1.041 2.Download dmc from: http://www.digitalmars.com/d/2.0/dmd-windows.html Up to now the D folder is as below: c:\ ----dmd\ ----dm 3.Download and install ruby to C:\ from http://www.ruby-lang.org/en/downloads/ The version I chose is Ruby 1.8.6-one-click-installer Now I have C:\ruby 4.Install rake: In folder C:\ruby\bin:gem install --remote rake Mar 31 2009
1.I also noticed that in C:\dm\lib there are 18 lib files where there are only 12 lib files in C:\dmd\lib. 2.Update:there is a typo regarding folder C:\dmd\import.All the D files in C drive is as below: c:\ ----dm\ ----dmd\ ----dmd\bin\ ----dmd\lib\ ----dmd\example\ ----dmd\import\ ----dmd\import\std\ ----dmd\import\tango\ ----dmd\import\dwt2--------Created by myself where dwt2 was downloaded to. Mar 31 2009
Sam Hu schrieb:Hi ,I am going to compiling DWT2 +tango 0998+rake.I have done below steps: 1.Download Tango0998+DMD1.041 2.Download dmc from: http://www.digitalmars.com/d/2.0/dmd-windows.html Up to now the D folder is as below: c:\ ----dmd\ ----dm 3.Download and install ruby to C:\ from http://www.ruby-lang.org/en/downloads/ The version I chose is Ruby 1.8.6-one-click-installer Now I have C:\ruby 4.Install rake: In folder C:\ruby\bin:gem install --remote rake Apr 01 2009
Add the 'imp' dir to your import search path:-IC:\Project\dwt2\imp Add the 'lib' dir to your library search path: -L+C:\Project\dwt2\lib\ Add all needed libraries to the commandline: -L+advapi32.lib -L+comctl32.lib -L+comdlg32.lib -L+gdi32.lib -L+kernel32.lib -L+shell32.lib -L+ole32.lib -L+oleaut32.lib -L+olepro32.lib -L+oleacc.lib -L+user32.lib -L+usp10.lib -L+msimg32.lib -L+opengl32.lib -L+shlwapi.lib -L+zlib.lib -L+dwt-base.lib -L+org.eclipse.swt.win32.win32.x86.lib Apr 01 2009
Sam Hu schrieb:Add the 'imp' dir to your import search path:-IC:\Project\dwt2\imp Add the 'lib' dir to your library search path: -L+C:\Project\dwt2\lib\ Add all needed libraries to the commandline: -L+advapi32.lib -L+comctl32.lib -L+comdlg32.lib -L+gdi32.lib -L+kernel32.lib -L+shell32.lib -L+ole32.lib -L+oleaut32.lib -L+olepro32.lib -L+oleacc.lib -L+user32.lib -L+usp10.lib -L+msimg32.lib -L+opengl32.lib -L+shlwapi.lib -L+zlib.lib -L+dwt-base.lib -L+org.eclipse.swt.win32.win32.x86.lib Apr 01 2009
Hi Frank, Doe it work if we add these -I and -L into the sc.ini file? Sam Apr 01 2009
Hi Frank, I compiled DWT2 successfuly base on your path/folders.But I have a couple of questions: 1.How do I compile my own d program which is not in the swtsnippets folder,say in anohter drive,D:\dprogram\ex?How is the command look like--rake ??? 2.Is jface and other packages such as draw2d,core.job,core.runtime,jface.text,osgi,ui.forms,text,and tools compilable and workable at this moment,if yes,how to compile? 3.Is dssss still workable to compile DWT2 program? Thanks and best regards, Sam Apr 01 2009
Sam Hu schrieb:Hi Frank, I compiled DWT2 successfuly base on your path/folders.But I have a couple of questions: 1.How do I compile my own d program which is not in the swtsnippets folder,say in anohter drive,D:\dprogram\ex?How is the command look like--rake ??? Apr 02 2009
Hi Frank, I re-built DWT2 with rake clean all and everything went smoothly and successfully;But when I tried to build a my own pragram (testDWT2.d)which is placed in the C:\TangoD\dwt2\org.eclipse.jface.snippets\EclipseJfaceSnippets\org\eclipse\jf ce\snippets\viewers folder with the command:rake jfacesnippets,it failed with below error: C:\TangoD\dwt2>rake jfacesnippets (in C:/TangoD/dwt2) Building jfacesnippets[Snippet001TableViewer] dmd.exe C:\TangoD\dwt2\rsp ...... Building jfacesnippets[testDWT2] dmd.exe C:\TangoD\dwt2\rsp ppets\testDWT2.d: module testDWT2 cannot read file 'ppets\testDWT2.d' rake aborted! compile error C:/TangoD/dwt2/rakefile:274:in `buildApp' (See full trace by running task with --trace) I just have no idea how to compile my own program,although you have memtioned above,forgive me ! C:\TangoD\dwt2>3.Is dssss still workable to compile DWT2 program? Apr 06 2009
Sam Hu Wrote:Hi Frank, I re-built DWT2 with rake clean all and everything went smoothly and successfully;But when I tried to build a my own pragram (testDWT2.d)which is placed in the C:\TangoD\dwt2\org.eclipse.jface.snippets\EclipseJfaceSnippets\org\eclipse\jf ce\snippets\viewers folder with the command:rake jfacesnippets,it failed with below error: C:\TangoD\dwt2>rake jfacesnippets (in C:/TangoD/dwt2) Building jfacesnippets[Snippet001TableViewer] dmd.exe C:\TangoD\dwt2\rsp ...... Building jfacesnippets[testDWT2] dmd.exe C:\TangoD\dwt2\rsp ppets\testDWT2.d: module testDWT2 cannot read file 'ppets\testDWT2.d' rake aborted! compile error C:/TangoD/dwt2/rakefile:274:in `buildApp' (See full trace by running task with --trace) I just have no idea how to compile my own program,although you have memtioned above,forgive me ! C:\TangoD\dwt2>3.Is dssss still workable to compile DWT2 program? Apr 07 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\la g\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 Apr 09 2009
%u schrieb:.../src\org\eclipse\jface\text\AbstractHoverInformationControlManager.d(183): Err or: module Job cannot read file 'org\eclipse\core\runtime\jobs\Job.d' rake aborted! Apr 10 2009
|