Problem getting Cimgui to work

Thomas earthwormjimmy at gmx.at
Wed Dec 6 19:04:52 UTC 2017


On Wednesday, 6 December 2017 at 18:27:20 UTC, drug wrote:
> probably this can help you
> https://github.com/drug007/timespatial
> this project uses cimgui by means of derelict-imgui

Hi, thank you. I tried it and first it seemed to work, but after 
I entered "dub build config=demo" following error messages 
occured:

Fetching taggedalgebraic 0.10.7 (getting selected version)...
Fetching msgpack-d 1.0.0-beta.6 (getting selected version)...
Fetching d2sqlite3 0.9.8 (getting selected version)...
Fetching gfm 6.1.4 (getting selected version)...
Fetching dstats 1.0.3 (getting selected version)...
Fetching emsi_containers 0.5.3 (getting selected version)...
Fetching color 0.0.5 (getting selected version)...
Performing "debug" build using dmd for x86_64.
d2sqlite3 0.9.8: building configuration "with-lib"...
derelict-util 2.0.6: target for configuration "library" is up to 
date.
derelict-imgui ~master: building configuration "library"...
DerelictImgui/source/derelict/imgui/funcs.d(38,12): Deprecation: 
module std.c.stdarg is deprecated - Import core.stdc.stdarg 
instead
dstats 1.0.3: building configuration "library"...
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(1056,8): Deprecation: dstats.summary.reduce is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(1056,8): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(1106,38): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(1109,31): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(2119,20): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(2226,15): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/regress.d(2233,12): Deprecation: dstats.alloc.max is not visible from module regress
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1458,24): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1461,24): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1501,9): Deprecation: dstats.summary.swap is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1502,23): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1799,24): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1802,24): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(1821,9): Deprecation: dstats.summary.swap is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(3594,20): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(3596,20): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(3637,31): Deprecation: dstats.summary.min is not visible from module tests
../../.dub/packages/dstats-1.0.3/dstats/source/dstats/tests.d(3646,9): Deprecation: dstats.summary.swap is not visible from module tests
emsi_containers 0.5.3: building configuration "library"...
gfm:math 6.1.4: building configuration "library"...
derelict-gl3 1.0.23: target for configuration "library" is up to 
date.
gfm:opengl 6.1.4: building configuration "library"...
derelict-sdl2 1.9.7: building configuration "library"...
gfm:sdl2 6.1.4: building configuration "library"...
msgpack-d 1.0.0-beta.6: building configuration "library"...
taggedalgebraic 0.10.7: building configuration "library"...
timespatial 0.0.3+commit.167.gd82e6dd: building configuration 
"demo"...
DerelictImgui/source/derelict/imgui/funcs.d(38,12): Deprecation: 
module std.c.stdarg is deprecated - Import core.stdc.stdarg 
instead
/usr/include/dlang/dmd/std/conv.d(4502,34): Error: cannot cast 
expression chunk.idx.idx of type TreeMap!(uint, DataSet, 
Mallocator, "a<b", false, 64LU) to void*
/usr/include/dlang/dmd/std/conv.d(4604,21): Error: template 
instance std.conv.emplace!(DataSource, DataSourceHeader) error 
instantiating
/usr/include/dlang/dmd/std/experimental/allocator/package.d(672,52):        instantiated from here: emplace!(DataSource, DataSourceHeader)
demo/app.d(208,55):        instantiated from here: 
make!(DataSource, StatsCollector!(Region!(Mallocator, 16u, 
cast(Flag)false), 262143LU, 262143LU)*, DataSourceHeader)
source/data_index.d(143,27):        instantiated from here: 
processElement!(Tuple!(int, "index", TaggedAlgebraic!(Base), 
"value"))
source/data_index.d(136,14):        ... (1 instantiations, -v to 
show) ...
source/data_index.d(391,25):        instantiated from here: 
__ctor!(Tuple!(int, "index", TaggedAlgebraic!(Base), "value")[])
demo/app.d(91,20):        instantiated from here: 
DataIndex!(Tuple!(int, "index", TaggedAlgebraic!(Base), 
"value")[], DataSourceHeader, DataSetHeader, DataElement, 
ProcessElement)
/usr/include/dlang/dmd/std/experimental/allocator/package.d(689,49): Error: forward reference to inferred return type of function call 'function ()
{
alloc.deallocate(m);
}
()'
/usr/include/dlang/dmd/std/conv.d(4502,34): Error: cannot cast 
expression chunk.idx of type DynamicArray!(DataElement, 
Mallocator, false) to void*
/usr/include/dlang/dmd/std/conv.d(4604,21): Error: template 
instance std.conv.emplace!(DataSet, DataSetHeader) error 
instantiating
/usr/include/dlang/dmd/std/experimental/allocator/package.d(672,52):        instantiated from here: emplace!(DataSet, DataSetHeader)
demo/app.d(219,49):        instantiated from here: make!(DataSet, 
StatsCollector!(Region!(Mallocator, 16u, cast(Flag)false), 
262143LU, 262143LU)*, DataSetHeader)
source/data_index.d(143,27):        instantiated from here: 
processElement!(Tuple!(int, "index", TaggedAlgebraic!(Base), 
"value"))
source/data_index.d(136,14):        ... (1 instantiations, -v to 
show) ...
source/data_index.d(391,25):        instantiated from here: 
__ctor!(Tuple!(int, "index", TaggedAlgebraic!(Base), "value")[])
demo/app.d(91,20):        instantiated from here: 
DataIndex!(Tuple!(int, "index", TaggedAlgebraic!(Base), 
"value")[], DataSourceHeader, DataSetHeader, DataElement, 
ProcessElement)
/usr/include/dlang/dmd/std/experimental/allocator/package.d(689,49): Error: forward reference to inferred return type of function call 'function ()
{
alloc.deallocate(m);
}
()'
source/default_viewer.d(83,20): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(83,20): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(84,23): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(96,20): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(96,20): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(97,23): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(814,27): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
source/default_viewer.d(814,27): Deprecation: struct 
std.datetime.StopWatch is deprecated - Use 
std.datetime.stopwatch.StopWatch.
dmd failed with exit code 1.


More information about the Digitalmars-d-learn mailing list