ros-perception / ar_track_alvar

AR tag tracking library for ROS
www.ros.org/wiki/ar_track_alvar
141 stars 129 forks source link

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

Open CesMak opened 6 years ago

CesMak commented 6 years ago

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 commented 6 years ago

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>