www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - DWT2 getting started problems

reply Kristoffer <khjelvi adsl.no> writes:
I need some help on getting started with dwt2 on windows.

I have the DMD/Tango bundle from Tango and have installed the Ruby one 
click installer to use rake.



1. Do I need to install the "dwt-win-importlibs.zip" for DWT2?

2. What about the "-L+tango-user-dmd.lib" in sc.ini under DFLAGS?

3. Can I use DSSS to build apps or is rake the only one supported?

4. Do I need a rake file to make a program?

5. I have successfully built "rake base swt", but "rake all" fails in 
the "org.eclipse.text" module.

org\eclipse\jface\text\templates\GlobalTemplateVariables.d(172):
module java.util.Date is used as a type

org\eclipse\jface\text\templates\GlobalTemplateVariables.d(172):
Error: new can only create structs, dynamic arrays or class objects, not 
void's

org\eclipse\jface\text\templates\GlobalTemplateVariables.d(172): 
function com.ibm.icu.text.DateFormat.DateFormat.format (Date) does not 
match parameter types (void*)

org\eclipse\jface\text\templates\GlobalTemplateVariables.d(172): Error: 
cannot implicitly convert expression (new void) of type void* to 
java.lang.Long.Long


6. The "rake swtsnippets" gives the following warning on all the snippets:

org.eclipse.swt.win32.win32.x86
  Warning 2: File Not Found org.eclipse.swt.win32.win32.x86

7. Building snippet [Snippet130a] gives following error:

org\eclipse\swt\snippets\Snippet130a.d(64):
Error: java.lang.Thread.Thread at C:\dwt2\imp\java\lang\Thread.di(14) 
conflicts with tango.core.Thread.Thread at 
c:\dmdny\bin\..\import\tango\core\Thread.di(117)

org\eclipse\swt\snippets\Snippet130a.d(64):
constructor java.lang.Thread.Thread.this () does not match parameter 
types (int delegate())

org\eclipse\swt\snippets\Snippet130a.d(64):
Error: cannot implicitly convert expression (__dgliteral1) of type int 
delegate() to char[]





Thanks for any help!
May 08 2009
parent Frank Benoit <keinfarbton googlemail.com> writes:
Kristoffer schrieb:
 1. Do I need to install the "dwt-win-importlibs.zip" for DWT2?

No they are part of the repository. See: http://hg.dsource.org/projects/dwt2/file/88652073d1c2/org.eclipse.swt.win32.win32.x86/lib/ When build swt they are copied to the dwt2/lib directory
 2. What about the "-L+tango-user-dmd.lib" in sc.ini under DFLAGS?

 3. Can I use DSSS to build apps or is rake the only one supported?

"-I" option and all the libs for linking.
 4. Do I need a rake file to make a program?

 5. I have successfully built "rake base swt", but "rake all" fails in
 the "org.eclipse.text" module.

those error later. But if you want to use swt, only "base" and "swt" is needed. For JFace you need "base swt equinox core jface". Nevertheless, thanks for reporting.
 6. The "rake swtsnippets" gives the following warning on all the snippets:
 
 org.eclipse.swt.win32.win32.x86
  Warning 2: File Not Found org.eclipse.swt.win32.win32.x86

A reported bug in the linker. See http://d.puremagic.com/issues/show_bug.cgi?id=2857
 7. Building snippet [Snippet130a] gives following error:

I posted in the poseidon forum, how to set up a own app. See http://www.dsource.org/forums/viewtopic.php?t=4602 Again i use a rake build process. Maybe not the most elegant thing. I am sure the rakefile can be made better, this is just a shrinked copy of the dwt2 rakefile. Thanks for you interest in dwt.
May 08 2009