www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Building DWT2 with DMD 2.062 on Windows 7 64 bit

reply Lubos Pintes <lubos.pintes gmail.com> writes:
Hi,
Just checked out fresh repository and tried to build. Base builds fine 
but swt doesn't.
Unfortunately, I am unable to record error log.  It is something about 
java.lang.util.di, on line 385, opCall cannot be interpreted at compile 
time because it has no source code.
And also that template getImportData cannot be instantiated.
Sorry for ugly report. I looked into build.d. It could create the 
elog.txt, but it doesn't.
In fact, there is no elog.txt creation. At least on win 7.
Feb 19 2013
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2013-02-19 11:47, Lubos Pintes wrote:
 Hi,
 Just checked out fresh repository and tried to build. Base builds fine
 but swt doesn't.
 Unfortunately, I am unable to record error log.  It is something about
 java.lang.util.di, on line 385, opCall cannot be interpreted at compile
 time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create the
 elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
Is this when you build the library or when building an application that uses the library? It sounds like you're missing the -J flag. It should point to: https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/tree/master/res -- /Jacob Carlborg
Feb 19 2013
parent reply Lubos Pintes <lubos.pintes gmail.com> writes:
I built the build.d, and then issued two commands:
build base (OK)
build swt (Errors I tried to describe)
Da 19. 2. 2013 13:08 Jacob Carlborg  wrote / napsal(a):
 On 2013-02-19 11:47, Lubos Pintes wrote:
 Hi,
 Just checked out fresh repository and tried to build. Base builds fine
 but swt doesn't.
 Unfortunately, I am unable to record error log.  It is something about
 java.lang.util.di, on line 385, opCall cannot be interpreted at compile
 time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create the
 elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
Is this when you build the library or when building an application that uses the library? It sounds like you're missing the -J flag. It should point to: https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/tree/master/res
Feb 19 2013
parent reply Jacob Carlborg <doob me.com> writes:
On 2013-02-19 13:14, Lubos Pintes wrote:
 I built the build.d, and then issued two commands:
 build base (OK)
 build swt (Errors I tried to describe)
Could you try "build base swt" ? -- /Jacob Carlborg
Feb 19 2013
parent Lubos Pintes <lubos.pintes gmail.com> writes:
Same result. I also tried build clean before build base swt.
Da 19. 2. 2013 13:34 Jacob Carlborg  wrote / napsal(a):
 On 2013-02-19 13:14, Lubos Pintes wrote:
 I built the build.d, and then issued two commands:
 build base (OK)
 build swt (Errors I tried to describe)
Could you try "build base swt" ?
Feb 19 2013
prev sibling next sibling parent reply Alexandr Druzhinin <drug2004 bk.ru> writes:
19.02.2013 17:47, Lubos Pintes пишет:
 Hi,
 Just checked out fresh repository and tried to build. Base builds fine
 but swt doesn't.
 Unfortunately, I am unable to record error log.  It is something about
 java.lang.util.di, on line 385, opCall cannot be interpreted at compile
 time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create the
 elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
How did you checked out fresh repository? I had the same problem exactly untill did the following: $ git pull $ git submodule update --init --recursive in my case it solved all my troubles and I have DWT compiled with dmd 2.062 on Win7 64bit
Feb 19 2013
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2013-02-19 13:55, Alexandr Druzhinin wrote:

 How did you checked out fresh repository? I had the same problem exactly
 untill did the following:
 $ git pull
 $ git submodule update --init --recursive

 in my case it solved all my troubles and I have DWT compiled with dmd
 2.062 on Win7 64bit
When cloning the repository use the "recursive" flag: $ git clone --recursive git://github.com/d-widget-toolkit/dwt.git -- /Jacob Carlborg
Feb 19 2013
prev sibling parent reply Lubos Pintes <lubos.pintes gmail.com> writes:
I did exactly the same thing. And to be sure, I just tried it again. 
Nothing changed...
Dňa 19. 2. 2013 13:55 Alexandr Druzhinin  wrote / napísal(a):
 19.02.2013 17:47, Lubos Pintes пишет:
 Hi,
 Just checked out fresh repository and tried to build. Base builds fine
 but swt doesn't.
 Unfortunately, I am unable to record error log.  It is something about
 java.lang.util.di, on line 385, opCall cannot be interpreted at compile
 time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create the
 elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
How did you checked out fresh repository? I had the same problem exactly untill did the following: $ git pull $ git submodule update --init --recursive in my case it solved all my troubles and I have DWT compiled with dmd 2.062 on Win7 64bit
Feb 19 2013
parent Alexandr Druzhinin <drug2004 bk.ru> writes:
19.02.2013 20:26, Lubos Pintes пишет:
 I did exactly the same thing. And to be sure, I just tried it again.
 Nothing changed...
 Dňa 19. 2. 2013 13:55 Alexandr Druzhinin  wrote / napísal(a):
 19.02.2013 17:47, Lubos Pintes пишет:
 Hi,
 Just checked out fresh repository and tried to build. Base builds fine
 but swt doesn't.
 Unfortunately, I am unable to record error log.  It is something about
 java.lang.util.di, on line 385, opCall cannot be interpreted at compile
 time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create the
 elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
How did you checked out fresh repository? I had the same problem exactly untill did the following: $ git pull $ git submodule update --init --recursive in my case it solved all my troubles and I have DWT compiled with dmd 2.062 on Win7 64bit
I'm sorry, updating removed some other errors. What about subject - I used dirty hack - I replace some file(s). For example I replace java\lang\util.di by util.d - to provide compiler by source code it needs.
Feb 19 2013
prev sibling parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 19 February 2013 at 10:47:25 UTC, Lubos Pintes wrote:
 Hi,
 Just checked out fresh repository and tried to build. Base 
 builds fine but swt doesn't.
 Unfortunately, I am unable to record error log.  It is 
 something about java.lang.util.di, on line 385, opCall cannot 
 be interpreted at compile time because it has no source code.
 And also that template getImportData cannot be instantiated.
 Sorry for ugly report. I looked into build.d. It could create 
 the elog.txt, but it doesn't.
 In fact, there is no elog.txt creation. At least on win 7.
I have a pull request that should fix that: https://github.com/d-widget-toolkit/base/pull/10 It's ugly but works.
Mar 29 2013