"example-overlay" error VS 2017.
SurrealNautilus opened this issue · 1 comments
HI! I'm using OpenFrameworks v0.10.1 in Visual Studio 2017. When I want to try the example: "example-overlay". I find the following error:
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ apps \ myapps \ example-overlay \ src \ FaceOverlay.h (53): error C2039: 'xy': is not a member of 'glm :: tvec3 < float, 0> '(compiling source file src \ main.cpp)
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ libs \ glm \ include \ glm \ detail \ type_vec.hpp (243): note: see declaration of 'glm :: tvec3 <float, 0>' (compiling source file src \ main.cpp)
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ apps \ myapps \ example-overlay \ src \ FaceOverlay.h (53): error C2660: 'FaceOverlay :: determinant': function does not take 1 arguments (compiling source file src \ main.cpp)
1> Distance.cpp
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ apps \ myapps \ example-overlay \ src \ FaceOverlay.h (53): error C2039: 'xy': is not a member of 'glm :: tvec3 < float, 0> '(compiling source file src \ ofApp.cpp)
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ libs \ glm \ include \ glm \ detail \ type_vec.hpp (243): note: see declaration of 'glm :: tvec3 <float, 0>' (compiling source file src \ ofApp.cpp)
1> c: \ of_v0.10.1_vs2017 \ of_v0.10.1_vs2017 \ apps \ myapps \ example-overlay \ src \ FaceOverlay.h (53): error C2660: 'FaceOverlay :: determinant': function does not take 1 arguments (compiling source file src \ ofApp.cpp)
Does anyone know why?
change it to:
determinant(glm::vec2(left), glm::vec2(right), glm::vec2(avg)) < 0)...
or change arguments in determinant method to glm3 and then call just left, right....