Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linuxmint failed to build #38

Open
codeyash opened this issue May 11, 2017 · 4 comments
Open

linuxmint failed to build #38

codeyash opened this issue May 11, 2017 · 4 comments

Comments

@codeyash
Copy link

  • 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

@hugoam
Copy link
Owner

hugoam commented May 12, 2017

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
Copy link
Author

codeyash commented May 12, 2017

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
Copy link
Author

codeyash commented May 12, 2017

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

./toyui_example
Segmentation fault

@hugoam
Copy link
Owner

hugoam commented May 13, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants