digitalmars.D.dwt - DWT2 built with DSSS
- Sam Hu <samhudotsamhu gmail.com> May 22 2009
- Frank Benoit <keinfarbton googlemail.com> May 22 2009
- Kristoffer <khjelvi adsl.no> May 23 2009
- Sam Hu <samhudotsamhu gmail.com> May 24 2009
- Kristoffer <khjelvi adsl.no> May 24 2009
- Sam Hu <samhudotsamhu gmail.com> May 25 2009
- Kristoffer <khjelvi adsl.no> May 25 2009
- Sam Hu <samhudotsamhu gmail.com> May 25 2009
- Kristoffer <khjelvi adsl.no> May 25 2009
- Sam Hu <samhudotsamhu gmail.com> May 26 2009
- Sam Hu <samhudotsamhu gmail.com> May 26 2009
- Sam Hu <samhudotsamhu gmail.com> May 26 2009
- Kristoffer <khjelvi adsl.no> May 26 2009
- Kristoffer <khjelvi adsl.no> May 26 2009
- Jacob Carlborg <doob me.com> May 26 2009
So far I experenced with DWT2 built by rake,many problems met during the trial.say I can not compile an app which include more than one module,and can not compie an app with bsss... So may I ask whether there is an alternative one can build the dwt2 with DSSS just like DWT3.4.x? Btw,which version the latest of Tango does DWT2 support?When is it supposed to release DWT2 for phbobos2? Thanks a million. Sam
May 22 2009
Sam Hu schrieb:So far I experenced with DWT2 built by rake,many problems met during the trial.say I can not compile an app which include more than one module,and can not compie an app with bsss... So may I ask whether there is an alternative one can build the dwt2 with DSSS just like DWT3.4.x?
At the moment i have very limited time for dwt. Perhaps you can come up with a solution.Btw,which version the latest of Tango does DWT2 support?When is it supposed to release DWT2 for phbobos2?
I use tango svn rev 4456. For phobos2 support, I think i will wait for phobos users to help.
May 22 2009
Sam Hu skrev:So far I experenced with DWT2 built by rake,many problems met during the trial.say I can not compile an app which include more than one module,and can not compie an app with bsss... So may I ask whether there is an alternative one can build the dwt2 with DSSS just like DWT3.4.x? Btw,which version the latest of Tango does DWT2 support?When is it supposed to release DWT2 for phbobos2? Thanks a million. Sam
I am using Tango bundle with Tango 0.99.8 and DMD 1.041 and running windows. On windows you need to modify: C:\dwt2\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\SWT.d and remove all the .lib endings from within the version(build) clause. Then run "rake swt" When building an app with DSSS i use the following buildflags: -L+dwt-base -Ic:\dwt2\imp -Jc:\dwt2\res -Sc:\dwt2\lib -full -gui
May 23 2009
Kristoffer Wrote:I am using Tango bundle with Tango 0.99.8 and DMD 1.041 and running windows. On windows you need to modify: C:\dwt2\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\SWT.d and remove all the .lib endings from within the version(build) clause. Then run "rake swt" When building an app with DSSS i use the following buildflags: -L+dwt-base -Ic:\dwt2\imp -Jc:\dwt2\res -Sc:\dwt2\lib -full -gui
Thank you,thank you so much.This is the most valuable guideline I got ever since I tried to use DWT2.
May 24 2009
Sam Hu skrev:Kristoffer Wrote:I am using Tango bundle with Tango 0.99.8 and DMD 1.041 and running windows. On windows you need to modify: C:\dwt2\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\SWT.d and remove all the .lib endings from within the version(build) clause. Then run "rake swt" When building an app with DSSS i use the following buildflags: -L+dwt-base -Ic:\dwt2\imp -Jc:\dwt2\res -Sc:\dwt2\lib -full -gui
Thank you,thank you so much.This is the most valuable guideline I got ever since I tried to use DWT2.
I used some time to figure this out to :)
May 24 2009
To Kristoffer: I tried and the dwt2 is compiled successfully,but the same problem that can not compile app with DSSS ,nor can compile an app which include more than one module. Is is possible to pass me a copy of your compiled sets?I am as cuirous as depressed what' the problem there. Thanks a million. Regards, Sam
May 25 2009
Sam Hu skrev:To Kristoffer: I tried and the dwt2 is compiled successfully,but the same problem that can not compile app with DSSS ,nor can compile an app which include more than one module. Is is possible to pass me a copy of your compiled sets?I am as cuirous as depressed what' the problem there. Thanks a million. Regards, Sam
This is my whole install process: (Using the Tango bundle mentioned in my earlier post) My "C:\dmd\bin\sc.ini" has the following: [Environment] LIB="% P%\..\lib" DFLAGS="-I% P%\..\import" -version=Tango -defaultlib=tango-base-dmd -debuglib=tango-base-dmd-d -L+tango-user-dmd LINKCMD=% P%\link.exe ---- I cloned the DWT2 repository with TortoiseHG: Source Path: http://hg.dsource.org/projects/dwt2 Destination Path: c:\dwt2 Then I removed the .lib endings (like mentioned earlier) and did a "rake base swt" If you are using JFace you need "base swt equinox core jface" (haven't tested this) Note: "rake" is used directly from the Ruby One-Click Installer without any configuration. You need to run rake from the c:\dwt2 directory since you get an rakefile not found error otherwise. --- I am using "dsss-0.78-x86-windows.zip" and have made the following configurations in dsss: changed the "profile=dmd-win" to "profile=dmd-win-tango" in "C:\dsss\etc\rebuild\default" Searched for the two occurencies of "oneatatime" and set them to "no" in "C:\dsss\etc\rebuild\dmd-win-tango". --- For DWT2 you do not need to download the "dwt-win-importlibs.zip" like you do for DWT1 since they are part of the repository. --- My Windows PATH variable includes the following: C:\dmd\bin;C:\dsss\bin --- Test your install by compiling the following source: --- dwtWindow.d --- module dwtWindow; import org.eclipse.swt.all; void main() { Display display = new Display; Shell shell = new Shell(display); shell.open; while (!shell.isDisposed) { if (!display.readAndDispatch) { display.sleep; } } display.dispose; } --- END --- Place a dsss.conf file in the project dir: --- dsss.conf --- [dwt_test.d] buildflags += -L+dwt-base -Ic:\dwt2\imp -Jc:\dwt2\res -Sc:\dwt2\lib -full -gui --- END --- run "dsss build" from the project dir. ----------------------- This works for me. If you have any other problems it is maybe because of some library that is not included or errors in the source code.
May 25 2009
Sam Hu skrev:Still not passed.pity -:)
what about "rake swtsnippets" ? The first few snippets should build fine, then fail with an error in one of the later (because of some source error). If this works, it shouldn't be anything wrong with your dwt2 install. Else I would remove all and start over. I would then try to compile an console app with dsss (not DWT2). Then I would try to compile the simple window with dsss like in my previous post (note: the first line in the dsss.conf file should be [dwtWindow.d] and not [dwt_test.d] like i wrote). I don't think I can help you if this doesn't work, since I haven't got the error myself nor do I have a long experience with D :/ Sorry
May 25 2009
Hi Kristoffer: I can compile the DWT2 successfully by rake all including all the samples (swt/jFace,etc); I can also do almost everything with dfl,dsss,arclib,gtkD... except when using DWT2: 1.If I compile a program of my own (dwt2 app) ,the only way I can pass the build is to save the source (say myprogram.d) in the swt- snippets folder with all the other snippets samples together,and then build with : rake swtsnippets[myprogram] silly enough -:) 2.Even things work in 1,I can not build a dwt2 program which contains more than one module; 3.Any try to build dwt2 program with dsss build will cause an error. I will try again later and post the entire error msg by then. Thank you Kristoffer,thank you so much! Sam
May 26 2009
Build DWT2 success.
Build app with DSSS Erro message:
F:\DLang\TangoD\dwt2>rake base swt equinox core jface
(in F:/DLang/TangoD/dwt2)
Building dwt-base
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.swt.win32.win32.x86
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.osgi.osgi
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.osgi.supplement
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.equinox.common
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building com.ibm.icu
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.core.runtime
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.core.commands
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.core.databinding
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.core.databinding.beans
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.core.jobs
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.jface
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
Building org.eclipse.jface.databinding
dmd.exe F:\DLang\TangoD\dwt2\rsp
lib.exe F:/DLang/TangoD/dwt2/rsp > F:/DLang/TangoD/dwt2/olog.txt
F:\DLang\TangoD\dwt2>cd ..
F:\DLang\TangoD>cd..
F:\DLang>cd dex
F:\DLang\DEx>cd d1ex
F:\DLang\DEx\D1Ex>dsss build dwtwindow.d
dwtWindow.d => dwtWindow
F:/DLang/tangoD/dsss/bin\..\include\d\java\lang\util.di(297): Error: file "org.e
clipse.swt.internal.SWTMessages.properties" cannot be found, check -Jpath
F:/DLang/tangoD/dsss/bin\..\include\d\java\lang\util.di(297): Error: cannot eval
uate opCall("","org.eclipse.swt.internal.SWTMessages.properties") at compile tim
e
F:/DLang/tangoD/dsss/bin\..\include\d\java\lang\util.di(206): Error: template in
stance java.lang.util.getImportData!("org.eclipse.swt.internal.SWTMessages.prope
rties") error instantiating
F:/DLang/tangoD/dsss/bin\..\include\d\org\eclipse\swt\internal\Compatibility.di(
206): Error: cannot evaluate opCall("","org.eclipse.swt.internal.SWTMessages.pro
perties") at compile time
Command F:\DLang\tangoD\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.
F:\DLang\DEx\D1Ex>
May 26 2009
Build swtsnippets : F:\DLang\TangoD\dwt2>rake swtsnippets (in F:/DLang/TangoD/dwt2) Building swtsnippets[Snippet10] dmd.exe F:\DLang\TangoD\dwt2\rsp OPTLINK (R) for Win32 Release 8.00.1 Copyright (C) Digital Mars 1989-2004 All rights reserved. zlib.lib Warning 2: File Not Found zlib.lib org.eclipse.swt.win32.win32.x86 Warning 2: File Not Found org.eclipse.swt.win32.win32.x86 F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflateInit2_ F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflateEnd F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflate F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _deflateEnd F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _deflate --- errorlevel 5 rake aborted! compile error F:/DLang/TangoD/dwt2/rakefile:276:in `buildApp' (See full trace by running task with --trace) F:\DLang\TangoD\dwt2>
May 26 2009
It looks to me that the path's are configured incorrectly somewhere since you get the File not found error's. Verify that the imp\, lib\, obj\ and res\ folders are inside your dwt2\ folder after the compile of dwt2 (they should be there automatically). It also looks like it is some kind of problem with DMD's paths, since it should find the zlib.lib that resides inside it's own lib folder.
May 26 2009
You could also try to write the full path inside "dmd\bin\sc.ini" instead of the "% P%\..\"
May 26 2009
Sam Hu wrote:Build swtsnippets : F:\DLang\TangoD\dwt2>rake swtsnippets (in F:/DLang/TangoD/dwt2) Building swtsnippets[Snippet10] dmd.exe F:\DLang\TangoD\dwt2\rsp OPTLINK (R) for Win32 Release 8.00.1 Copyright (C) Digital Mars 1989-2004 All rights reserved. zlib.lib Warning 2: File Not Found zlib.lib org.eclipse.swt.win32.win32.x86 Warning 2: File Not Found org.eclipse.swt.win32.win32.x86 F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflateInit2_ F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflateEnd F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _inflate F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _deflateEnd F:\DLang\tangoD\dmd\windows\bin\..\lib\tango-user-dmd.lib(ZlibStream) Error 42: Symbol Undefined _deflate --- errorlevel 5 rake aborted! compile error F:/DLang/TangoD/dwt2/rakefile:276:in `buildApp' (See full trace by running task with --trace) F:\DLang\TangoD\dwt2>
Are you hitting this issue: http://d.puremagic.com/issues/show_bug.cgi?id=2776 ?
May 26 2009









Frank Benoit <keinfarbton googlemail.com> 