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

Compilation error in yocto_gltf.cpp #16

Closed
jngl opened this issue Apr 27, 2017 · 3 comments
Closed

Compilation error in yocto_gltf.cpp #16

jngl opened this issue Apr 27, 2017 · 3 comments

Comments

@jngl
Copy link

jngl commented Apr 27, 2017

with gcc 5.4 I have this error :

jngl@jngl-G551JM:~/Developpement/libs/yocto-gl/cmake$ make -j4
Scanning dependencies of target yocto
[  4%] Building CXX object CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_trace.cpp.o
[  9%] Building CXX object CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_cmd.cpp.o
[ 13%] Building CXX object CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_obj.cpp.o
[ 18%] Building CXX object CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_gltf.cpp.o
/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_gltf.cpp:3166:55: error: no matching member function for call to 'push_back'
            for (auto child : node->children) { stack.push_back({child, xf}); }
                                                ~~~~~~^~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_vector.h:913:7: note: candidate function not viable: cannot convert initializer list argument to
      'const value_type' (aka 'const std::tuple<int, std::array<float, 16> >')
      push_back(const value_type& __x)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_vector.h:931:7: note: candidate function not viable: cannot convert initializer list argument to 'value_type'
      (aka 'std::tuple<int, std::array<float, 16> >')
      push_back(value_type&& __x)
      ^
[ 22%] Building CXX object CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_sym.cpp.o                                                                                         
1 error generated.
CMakeFiles/yocto.dir/build.make:110 : la recette pour la cible « CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_gltf.cpp.o » a échouée
make[2]: *** [CMakeFiles/yocto.dir/home/jngl/Developpement/libs/yocto-gl/yocto/yocto_gltf.cpp.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
CMakeFiles/Makefile2:179 : la recette pour la cible « CMakeFiles/yocto.dir/all » a échouée
make[1]: *** [CMakeFiles/yocto.dir/all] Erreur 2
Makefile:83 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

@xelatihy
Copy link
Owner

xelatihy commented May 3, 2017

I'll look into this. Normally I compile on clang or gcc > 6.0. I'll see whether it is feasible to support gcc 5.x without significant changes.

@xelatihy
Copy link
Owner

xelatihy commented May 3, 2017

This is a c++11 issue in gcc < 6, How important is support for c++11? I looked at all of yocto and c++14 helps a lot. I could switch many c++14 features off, but I am not sure what is the real gain. What do you think?

@xelatihy
Copy link
Owner

xelatihy commented Jul 8, 2017

The development branch copmpiles as C++11 on clang. I will close this.

@xelatihy xelatihy closed this as completed Jul 8, 2017
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