Thread overview
Building DWT2 with DMD 2.062 on Windows 7 64 bit
Feb 19, 2013
Lubos Pintes
Feb 19, 2013
Jacob Carlborg
Feb 19, 2013
Lubos Pintes
Feb 19, 2013
Jacob Carlborg
Feb 19, 2013
Lubos Pintes
Feb 19, 2013
Alexandr Druzhinin
Feb 19, 2013
Jacob Carlborg
Feb 19, 2013
Lubos Pintes
Feb 19, 2013
Alexandr Druzhinin
Mar 30, 2013
John Colvin
February 19, 2013
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.
February 19, 2013
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
February 19, 2013
I built the build.d, and then issued two commands:
build base (OK)
build swt (Errors I tried to describe)
Dňa 19. 2. 2013 13:08 Jacob Carlborg  wrote / napísal(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
>
>

February 19, 2013
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
February 19, 2013
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
February 19, 2013
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
February 19, 2013
Same result. I also tried build clean before build base swt.
Dňa 19. 2. 2013 13:34 Jacob Carlborg  wrote / napísal(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" ?
>

February 19, 2013
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

February 19, 2013
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.

March 30, 2013
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.