Error Using Eigen 'sqrt' While Compiling ROS PCL
I'm trying to re-install ROS in order to get a clean configuration to solve some other issues, and the build is failing when it gets to the 'pcl' package. It seems to just repeat this error:
In file included from /home/abouchard/ros_catkin_ws/src/pcl/common/include/pcl/common/vector_average.h:40:0,
from /home/abouchard/ros_catkin_ws/src/pcl/common/test/test_vector_average.cpp:42:
/home/abouchard/ros_catkin_ws/src/pcl/common/include/pcl/common/eigen.h: In function ‘void pcl::computeRoots(const Matrix&, Roots&)’:
/home/abouchard/ros_catkin_ws/src/pcl/common/include/pcl/common/eigen.h:168:30: error: ‘sqrt’ is not a member of ‘Eigen::internal’
The specific line numbers and such vary, of course, but they all have to do with a call to a sqrt function, and the namespace is either Eigen or pcl. I've Googled the error to little avail, and I am loathe to change the code much since I'm assuming there was some reason to call out a sqrt function other than the one in the 'math' library.
I found the documentation for the 'internal' namespace in Eigen, and it doesn't appear to have a sqrt function. However, looking at the file causing the issue (eigen.h), it seems to make some custom declarations of the sqrt function, but just for the pcl namespace.