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

"example-overlay" error VS 2017. #163

Open
SurrealNautilus opened this issue Jun 2, 2019 · 1 comment
Open

"example-overlay" error VS 2017. #163

SurrealNautilus opened this issue Jun 2, 2019 · 1 comment

Comments

@SurrealNautilus
Copy link

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?

error

@sebasobotka
Copy link

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....

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