On Monday, 16 April 2018 at 04:24:23 UTC, dangbinghoo wrote:
I have noticed DWT moved to as a dub package. And said it easy
to startup.
So, I just cloned the DWT git repo. And did the same thing as
README.
But I got the following :
```
dub --single main.d
Performing "debug" build using /usr/bin/dmd for x86_64.
dwt:base 1.0.1+swt-3.4.1.commit.2.gd729d7d: target for
configuration "library" is up to date.
dwt 1.0.1+swt-3.4.1.commit.2.gd729d7d: target for configuration
"linux-gtk" is up to date.
main ~master: building configuration "application"...
Linking...
To force a rebuild of up-to-date targets, run again with
--force.
Running ./main
Program exited with code -11
```
the same result as I tried half year ago.
And let's see the gdub
```
$ dub --config=gdub --force
Invalid source/import path:
/home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/src
Invalid source/import path:
/home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/views
Performing "debug" build using /usr/bin/dmd for x86_64.
gdub 1.1.0+commit.1.ge3dcff7: building configuration "gdub"...
gdub/gdub.d(24,8): Error: module `all` is in file
'org/eclipse/swt/all.d' which cannot be read
import path[0] =
/home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/src
import path[1] = /usr/include/dlang/dmd
/usr/bin/dmd failed with exit code 1.
$ vim gdub/gdub.d
$ ls /home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/
base/ org.eclipse.swt.snippets/
README.markdown
build org.eclipse.swt.win32.win32.x86/
refactors.txt
build.d packageimport.rb
snippets-status.txt
org.eclipse.swt.gtk.linux.x86/ rakefile
win-res/
$ ls /home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/
base/ org.eclipse.swt.snippets/
README.markdown
build org.eclipse.swt.win32.win32.x86/
refactors.txt
build.d packageimport.rb
snippets-status.txt
org.eclipse.swt.gtk.linux.x86/ rakefile
win-res/
$ ls /home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/dwt/
base org.eclipse.swt.gtk.linux.x86 packageimport.rb
refactors.txt
build org.eclipse.swt.snippets rakefile
snippets-status.txt
build.d org.eclipse.swt.win32.win32.x86 README.markdown
win-res
$ ls /home/playpeng/.dub/packages/dwtlib-3.2.5/dwtlib/
build_dwtlib.bat build_dwtlib.sh dub.json examples
README.md travis.sh
build_dwtlib_m64.bat doc dwt LICENSE.TXT
tools
$ ls /home/playpeng/.dub/packages/dwtlib-3.2.5/
dwtlib dwtlib.lock
$
```