hugoam/kiui

linuxmint failed to build

codeyash opened this issue · 4 comments

  • clone repo
  • git submodule update --init --recursive
  • mkdir build
  • cd build
  • cmake ..
  • cmake --build . --config Release or make

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

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.

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 :)

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

./toyui_example
Segmentation fault

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.