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

Policy "CMP0046" is not known to this version of CMake. #56

Open
CesMak opened this issue Jun 12, 2018 · 1 comment
Open

Policy "CMP0046" is not known to this version of CMake. #56

CesMak opened this issue Jun 12, 2018 · 1 comment

Comments

@CesMak
Copy link

CesMak commented Jun 12, 2018

Hey when compiling this package I get:
Policy "CMP0046" is not known to this version of CMake.

However If I uncomment that line in the CMake Lists file:

I get alot more errors:

:44:71: fatal error: opencv2/calib3d/calib3d_c.h: No such file or directory
#include <opencv2/calib3d/calib3d_c.h> //Compatibility with OpenCV 3.x

@CesMak
Copy link
Author

CesMak commented Jun 12, 2018

found solution myself:

uncomment this line in the CMakeLists.txt containing the CMP0046

Next in the Util.h file do this:

//#include <opencv2/calib3d/calib3d_c.h> //Compatibility with OpenCV 3.x
#include <opencv2/calib3d/calib3d.hpp>

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

1 participant