www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - Building DWT

reply chrisalex <chrisalex yahoo.com> writes:
I followed the instructions on the git readme, I copied the res 
and imp folders to /usr/include/d/, and I added these dflags to 
dub

"dflags" : ["-J/usr/include/d/res", "-I/usr/include/d/imp"]
However, when I try to compile anything using DWT, I get these undefined reference errors (this is just trying to import it)
.dub/build/application-debug-linux.posix-x86_64-dmd_2070-4CF3803ADC5BBCCDFE1B352AFA5EC835/dwtte
t.o:(.rodata+0x98): undefined reference to
`_D3org7eclipse3swt7widgets7Display12__ModuleInfoZ'
--- errorlevel 1
.dub/build/application-debug-linux.posix-x86_64-dmd_2070-4CF3803ADC5BBCCDFE1B352AFA5EC835/dwtte
t.o:(.rodata+0xa0): undefined reference to
`_D3org7eclipse3swt7widgets5Shell12__ModuleInfoZ'
I'm thinking that I need the static libraries for the dependencies listed on the readme, but I run into errors trying to build those packages in arch linux because of my graphics drivers, and there are a hefty amount of them. Any insight would be appreciated, thanks.
Apr 07 2016
next sibling parent chrisalex <chrisalex yahoo.com> writes:
The same thing happens with GtkD
Apr 07 2016
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2016-04-08 02:08, chrisalex wrote:
 I followed the instructions on the git readme, I copied the res and imp
 folders to /usr/include/d/, and I added these dflags to dub

 "dflags" : ["-J/usr/include/d/res", "-I/usr/include/d/imp"]
However, when I try to compile anything using DWT, I get these undefined reference errors (this is just trying to import it)
 .dub/build/application-debug-linux.posix-x86_64-dmd_2070-4CF3803ADC5BBCCDFE1B352AFA5EC835/dwttest.o:(.rodata+0x98):
 undefined reference to
 `_D3org7eclipse3swt7widgets7Display12__ModuleInfoZ'
 --- errorlevel 1
 .dub/build/application-debug-linux.posix-x86_64-dmd_2070-4CF3803ADC5BBCCDFE1B352AFA5EC835/dwttest.o:(.rodata+0xa0):
 undefined reference to `_D3org7eclipse3swt7widgets5Shell12__ModuleInfoZ'
I'm thinking that I need the static libraries for the dependencies listed on the readme, but I run into errors trying to build those packages in arch linux because of my graphics drivers, and there are a hefty amount of them. Any insight would be appreciated, thanks.
How do you build your application that uses DWT? -- /Jacob Carlborg
Apr 08 2016