On Monday, 2 February 2015 at 11:18:30 UTC, Mike James wrote:
Hi Vadim,

When I follow the Build and Run Demo App using DUB I get the following...

C:\D\dmd2\src>git clone https://github.com/buggins/dlangui.git
Cloning into 'dlangui'...
remote: Counting objects: 13291, done.
remote: Compressing objects: 100% (186/186), done.
remote: Total 13291 (delta 113), reused 0 (delta 0)
Receiving objects: 100% (13291/13291), 8.78 MiB | 538.00 KiB/s, done.
Resolving deltas: 100% (10144/10144), done.

C:\D\dmd2\src>cd dlangui

C:\D\dmd2\src\dlangui>dub run dlangui:example1 --build=release
Building package dlangui:example1 in C:\D\dmd2\src\dlangui\examples\example1\
Fetching derelict-util 1.9.1 (getting selected version)...
Placing derelict-util 1.9.1 to C:\Users\mikej\AppData\Roaming\dub\packages\...
Building dlib 0.4.1 configuration "library", build type release.
Running dmd...
Building derelict-util 1.9.1 configuration "library", build type release.
Running dmd...
Building derelict-ft 1.0.1 configuration "library", build type release.
Running dmd...
Building derelict-sdl2 1.9.1 configuration "library", build type release.
Running dmd...
Building derelict-gl3 1.0.12 configuration "library", build type release.
Running dmd...
Building dlangui:dlanguilib 0.4.35+commit.4.gf902ceb configuration "library", build type release.
Running dmd...
src\dlangui\graphics\resources.d(152): Error: file "btn_background.xml\x0d" cannot be found or not in a path specified with -J src\dlangui\graphics\resources.d(153): Error: data.length cannot be evaluated at compile time src\dlangui\graphics\resources.d(166): Error: template instance dlangui.graphics.resources.embedResource!"res/btn_background.xml\x0d" error instantiating src\dlangui\graphics\resources.d(173):

Is the setup missing extra directories?

Regards, -=mike=-

Hello,

Works for me - I cannot reproduce the problem.
It looks like -J parameters are not passed properly to compiler.
For embedding of resources into executable, -J include paths must be set for directories views, views/res, views/res/mdpi, views/res/i18.
When I'm running dub with -v switch, I see
-Jviews -Jviews/res -Jviews/res/mdpi -Jviews/res/i18 in DMD command line

Probably, it depends on DUB version.
My one is 0.9.22 Sep 16 2014 (downloaded from code.dlang.org/downloads)

Best regards,
     Vadim

Reply via email to