How to build program with DWT2 and DMD2?
JohnnyK
johnnykinsey at comcast.net
Wed Aug 7 07:04:46 PDT 2013
On Wednesday, 7 August 2013 at 09:49:50 UTC, Jacob Carlborg wrote:
> On 2013-08-07 11:48, Jacob Carlborg wrote:
>
>> RDMD works like this: all flags passed before the D file will
>> be passed
>> to the compiler. All flags passed after the D file will be
>> passed to the
>> compiled application when it's run.
>
> You can also pass --build-only if you don't want to run the
> resulting binary.
Well now I get these errors
C:\Users\<myusername>\Documents\My
Projects\Programming\DStuff\dwthelloworld>rdmd -I
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src
-IC:\GITClones\dwt\base\src
hello.d
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages.properties") error instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_ar.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_ar.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_cs.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_cs.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_da.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_da.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_de.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_de.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_el.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_el.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_es.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_es.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_fi.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_fi.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_fr.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_fr.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_hu.properties
C:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src\org\eclipse\swt\internal\Co
mpatibility.d(332): Error: template instance
java.lang.util.getImportData!("org.
eclipse.swt.internal.SWTMessages_hu.properties") error
instantiating
C:\GITClones\dwt\base\src\java\lang\util.d(595): Error: need
-Jpath switch to im
port text file org.eclipse.swt.internal.SWTMessages_it.properties
Failed: "dmd"
"-IC:\GITClones\dwt\org.eclipse.swt.win32.win32.x86\src" "-IC:\GIT
Clones\dwt\base\src" "-v" "-o-" "hello.d" "-I."
C:\Users\<myusername>\Documents\My
Projects\Programming\DStuff\dwthelloworld>
BTW I got git to work with NTLMaps also there is a separate zip
file for each module no issue. Sorry I did not get a chance to
try this on my Linux box yesterday. BTW I did copy the hello.d
file over to the snippets folder and used the same command line
that compiles regular snippets to compile this and it worked just
fine. So basically I put hello.d in the
C:\GITClones\dwt\org.eclipse.swt.snippets\src\org\eclipse\swt\snippets
and used the following command to compile it rdmd build
swtsnippets[hello] from the C:\GITClones\dwt directory. This
built a executable called Swthello.exe in C:\GITClones\dwt\bin
directory. So I know the code compiles and runs without issue.
I just don't know the magic that build.d is performing so that I
can replicate it outside the dwt directory structures. I read
through build.d and it seems kind of over complicating but I
guess the complexity is obviously needed because I can't seem to
get it to compile any other way. The rsp file that build.d uses
has 30 lines that it sends to dmd. Poor dmd... ;) Oh well maybe
will just need more time working with dmd and it's toolset before
I take on something this big. Rome wasn't built in a day but
then again the Romans did not have D with build.d either.
More information about the Digitalmars-d-dwt
mailing list