Jump to page: 1 2
Thread overview
DWT2 built with DSSS
May 22, 2009
Sam Hu
May 22, 2009
Frank Benoit
May 23, 2009
Kristoffer
May 24, 2009
Sam Hu
May 24, 2009
Kristoffer
May 25, 2009
Sam Hu
May 25, 2009
Kristoffer
May 26, 2009
Sam Hu
May 26, 2009
Kristoffer
May 26, 2009
Sam Hu
May 26, 2009
Sam Hu
May 26, 2009
Sam Hu
May 26, 2009
Kristoffer
May 26, 2009
Kristoffer
May 26, 2009
Jacob Carlborg
May 22, 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 23, 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 24, 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.
> 
> 
No problem mate :)

I used some time to figure this out to :)
May 25, 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 26, 2009
Still not passed.pity -:)
May 26, 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 26, 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
« First   ‹ Prev
1 2