View previous topic :: View next topic |
Author |
Message |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Sun Jul 09, 2006 7:34 pm Post subject: Problem building dwt. |
|
|
Windows 2000
Dmd: v0.162
Build: 3.02 (without debug code)
Dwt: dwt-win32-0.36-20060421.rar
Quote: | 1) Copy files
extracts all files to \dmd directory. (overwrite the \dmd directory)
"\dmd" is where the DMD installed. |
When I open up dwt in 7zip, the first folder is dwt. The read me says to overwrite the \dmd directory, so I assume this is a badly named folder and extract the contents of the folder to \dmd.
Quote: | 2) Set import path
modify the sc.ini in \dmd\bin, to add the import path of dwt library
change
DFLAGS="-I?@P?\..\src\phobos"
to
DFLAGS="-I?@P?\..\src\phobos;c:\dmd\import" or
DFLAGS="-I?@P?\..\src\phobos;d:\dmd\import" if you install DMD in disk D |
Done.
Done. When I downloaded build, it was named "build_win_3.02.exe", so I renamed it to build, and then placed it in \bin, so it would work.
Quote: | 4) Build DWT library
navigate to \dmd\import\
run "make-dwt-lib.bat" then copy dwt.lib(release version) and
swtd.lib(debug version) to \dmd\lib |
The output of this is at the bottom of my post, for convienance. The readme says to move dwt.lib into the lib folder, however no dwt.lib is created. I did a search of my \dmd directory, not there. I already know from this point that anything else I try won't work, but I go ahead anyway.
Quote: | 5) Build DWT extra library
navigate to \dmd\import\
run "make-dwtextra-lib.bat" then copy dwtextra.lib(release version) and
swtextrad.lib(debug version) to \dmd\lib
|
To my surprise it actually makes a file called "dwtextrad.lib" in my lib folder. Notice the extra "d" in the name, which makes it different from what the readme specifies. Seeing as this is the "extra" library, I assume examples won't work, as the main library never got created.
Quote: | 6) Build Examples
navigate to \dmd\packages\dwt\examples\???
and run the "run-build.bat" file or "run-dmd.bat"
|
These don't work. *shock*
So my question is, why did the main dwt library not get built?
Here is the command output, for running "make-dwt-lib.bat"
Quote: | deleting old intermediate files ...
C:\dmd\import>del *.obj *.map *.rsp *.lsp *.ksp *.def /s /q
Could Not Find C:\dmd\import\*.obj
Build release version ...
C:\dmd\import>build -release -O -clean -inline -lib -full -allobj dwt\all.d -T.
.\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP
dwt\graphics\image.d(404): shadowing declaration dwt.graphics.image.Image.this.h
dcBmp is deprecated
-----------------------------------------
Build debug version ...
C:\dmd\import>build -debug -g -unittest -clean -lib -full -allobj dwt\all.d -T.
.\lib\dwtd.lib -version=OLE_COM -version=DRAG_DROP
dwt\graphics\image.d(404): shadowing declaration dwt.graphics.image.Image.this.h
dcBmp is deprecated
-----------------------------------------
you may need to copy "dwt.lib" "dwtd.lib" to \dmd\lib
C:\dmd\import>pause
Press any key to continue . . . |
_________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sun Jul 09, 2006 8:19 pm Post subject: |
|
|
Compile with -g |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Sun Jul 09, 2006 8:59 pm Post subject: |
|
|
I do not fully understand what you want me to do, so I added "-g" to in the .bat, to the part the build the release version, so I have this:
Quote: | @echo Build release version ...
build -release -g -O -clean -inline -lib -full -allobj dwt\all.d -T..\lib\dwt.lib
-version=OLE_COM -version=DRAG_DROP |
When I run it, nothing changes. _________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Mon Jul 10, 2006 9:14 am Post subject: |
|
|
My bad. I meant -d
Add it to the compiler arguments (or build arguments) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Mon Jul 10, 2006 3:31 pm Post subject: |
|
|
I replaced the -g with -d. :)
It created dwt.lib in the lib directory. So now I have have dwt.lib and dwtextrad.lib.
So I go to see if everything is finally working (nothing ever seems to work nicely). I run run-build.bat for Traytest, and I get the following:
Quote: | C:\dmd\packages\dwt\examples\traytest>build Traytest.d -release -O -gui -clean -
w -Xdwt -version=OLE_COM
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
C:\dm\bin\..\lib\SNN.lib(fputwc) Offset 099F4H Record Type 00C3
Error 1: Previous Definition Different : _putwc
C:\dmd\packages\dwt\examples\traytest>pause
Press any key to continue . . .
|
It does create Traytest.exe, however it is invalid.
So something is still not right. If you happen to know what it is, cool, if not, don't fret too much about it. I'm used to this. _________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Mon Jul 10, 2006 3:51 pm Post subject: |
|
|
I don't know what might be causing that. Sorry I can't be more helpful. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Mon Jul 10, 2006 4:29 pm Post subject: |
|
|
Thank you for your prompt help anyway. :)
By the way, what does -d actually do? I can't find it in build's switch list. _________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
jpelcis
Joined: 09 Mar 2006 Posts: 40
|
Posted: Mon Jul 10, 2006 6:46 pm Post subject: |
|
|
It's not part of Build. It's the switch that tells DMD to allow the use of deprecated features in a program. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
negerns
Joined: 08 Jul 2006 Posts: 13
|
Posted: Tue Jul 11, 2006 4:10 pm Post subject: |
|
|
Compiling DWT v0.32 with DMD 162:
1. Edit \dmd\import\make-dwt-lib.bat and add the "-d" parameter. The parameter will be passed to the dmd compiler which tells it to allow deprecated features. For more info on dmd compiler options type dmd --help.
Code: | build -release -d -O -clean -inline -lib -full -allobj dwt\all.d -T..\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP |
Don't forget to add the -d option to the debug build too.
2. Edit \dmd\import\dwt\extra\make-dwtextra-lib.bat and add the "-d" parameter.
Code: | build -release -d -O -clean -inline -lib -full -allobj all.d -T..\..\..\lib\dwtextra.lib -Xdwt -version=OLE_COM -version=DRAG_DROP -I..\..\ |
Don't forget to add the -d option to the debug build too.
I think that's it! [/list] |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
hotzenplotz
Joined: 25 Mar 2006 Posts: 15
|
Posted: Tue Jul 11, 2006 10:37 pm Post subject: |
|
|
Can you update the svn tree please? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
ideage
Joined: 12 Jul 2006 Posts: 63 Location: china
|
Posted: Wed Jul 12, 2006 5:29 am Post subject: Re: Problem building dwt. |
|
|
D:\D\Gui\dwt\import>make-dwt-lib
deleting old intermediate files ...
D:\D\Gui\dwt\import>del *.obj *.map *.rsp *.lsp *.ksp *.def /s /q
ÕÒ²»µ½ D:\D\Gui\dwt\import\*.obj
Build release version ...
D:\D\Gui\dwt\import>build -release -O -clean -inline -lib -full -allobj dwt\all
.d -T..\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP
'D:\dmd\bin\lib' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò
»òÅú´¦ÀíÎļþ¡£
-----------------------------------------
Build debug version ...
D:\D\Gui\dwt\import>build -debug -g -unittest -clean -lib -full -allobj dwt\all
.d -T..\lib\dwtd.lib -version=OLE_COM -version=DRAG_DROP
'D:\dmd\bin\lib' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò
»òÅú´¦ÀíÎļþ¡£
-----------------------------------------
you may need to copy "dwt.lib" "dwtd.lib" to \dmd\lib
D:\D\Gui\dwt\import>pause
Çë°´ÈÎÒâ¼ü¼ÌÐø. . .
give me help! thanks![img][/img] |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Thu Jul 13, 2006 6:14 pm Post subject: |
|
|
negerns: I did a clean install of d, downloaded and used dwt .32. Did not work, get a bunch of errors
Quote: | C:\dmd\import>build -release -d -clean -w -lib -full -allobj dwt\all.d -Tc:\dmd\
lib\dwt.lib -version=OLE_COM
dwt\internal\ole\win32\OAIDL.d(325): no identifier for declarator _VARIANT_BOOL
dwt\internal\ole\win32\OAIDL.d(325): semicolon expected, not 'bool'
dwt\internal\ole\win32\OAIDL.d(325): no identifier for declarator bool
dwt\custom\styledtext.d(294): identifier expected following '.', not 'scope'
dwt\custom\styledtext.d(304): identifier expected following '.', not 'scope'
dwt\custom\styledtext.d(532): identifier expected following '.', not 'scope'
dwt\custom\styledtext.d(536): identifier expected following '.', not 'scope'
dwt\printing\printerdata.d(63): no identifier for declarator int
dwt\printing\printerdata.d(63): semicolon expected, not 'scope'
dwt\printing\printerdata.d(63): Declaration expected, not 'scope'
...etc... |
I pretty much need someone to 7zip their dmd directory and send it to me. :\
ideage: Do you have other languages turned on in your computer. I can only guess "²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò »òÅú´¦ÀíÎļþ¡£ " is caused by a problem with using multiple languages on a computer. _________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
negerns
Joined: 08 Jul 2006 Posts: 13
|
Posted: Fri Jul 28, 2006 12:32 pm Post subject: |
|
|
Quote: | I did a clean install of d, downloaded and used dwt .32. |
What version of dmd and dwt did you install? If I understand it right, you must execute the batch files that came with dwt to build the libraries. That would be the make-dwt-lib.bat and make-dwtextra-lib.bat. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Logwad
Joined: 27 Dec 2004 Posts: 18
|
Posted: Fri Jul 28, 2006 5:59 pm Post subject: |
|
|
I used the ones you said to use. And yes, I did use the batch files, and added the arguements where suggested. :\ _________________ BZFlag.
You know you want to. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
negerns
Joined: 08 Jul 2006 Posts: 13
|
Posted: Sat Jul 29, 2006 3:25 pm Post subject: |
|
|
Here are the build options from the make-dwt-lib.bat:
Code: | build -release -d -O -clean -inline -lib -full -allobj dwt\all.d -T..\lib\dwt.lib -version=OLE_COM -version=DRAG_DROP
build -debug -d -g -unittest -clean -lib -full -allobj dwt\all.d -T..\lib\dwtd.lib -version=OLE_COM -version=DRAG_DROP |
I've noticed that in your previous post that there are missing arguments to the build application. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|