hugoam / kiui

Auto-layout Ui library, lightweight, skinnable and system agnostic, with an OpenGL backend
zlib License
749 stars 70 forks source link

linuxmint failed to build #38

Open codeyash opened 7 years ago

codeyash commented 7 years ago

Produces below error

from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Store/Store.h:10:0, from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Store/Array.h:10, from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Procedure.h:10, from /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Procedure.cpp:5: /home/yash/projects/gui/kiui/sub/toyobj/src/toyobj/Iterable/Iterable.h:46:195: error: invalid initialization of non-const reference of type ‘toy::Lref&’ from an rvalue of type ‘toy::Lref’ onst { this->iterate([callback, &type = this->elementType()](TypeObject& object) { return callback(Lref(object, object.type())); }); } ^ sub/toyobj/src/CMakeFiles/toyobj.dir/build.make:86: recipe for target 'sub/toyobj/src/CMakeFiles/toyobj.dir/toyobj/Procedure.cpp.o' failed make[2]: [sub/toyobj/src/CMakeFiles/toyobj.dir/toyobj/Procedure.cpp.o] Error 1 CMakeFiles/Makefile2:85: recipe for target 'sub/toyobj/src/CMakeFiles/toyobj.dir/all' failed make[1]: [sub/toyobj/src/CMakeFiles/toyobj.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

hugoam commented 7 years ago

It should be fixed now, but I should let you know that kiui is in the course of a long overhaul started a few months ago, which is mostly finished but there are still quite some issues to fix.

So kiui will continue to be quite unstable until a couple more months.

codeyash commented 7 years ago

Cutting edge vs Maturity I will choose cutting edge which always quite unstable. Your framework and this idea is cool.

Only if possible please remove third party dependencies wherever possible. This way people can easily pick yours.

Thanks :)

codeyash commented 7 years ago

No compile time error but not running. How can I build debug version to get proper error?

./toyui_example Segmentation fault

hugoam commented 7 years ago

This is probably because the error reporting is very lacking. I added some logging for the issue I suppose you're having in the last commit : I guess the resource path is pointing to a wrong location.

Check the console, probably the TOYUI_RESOURCE_PATH compiler define is not pointing to the data\ folder.