RGBDSLAM_V2: Undefined reference
Hello,
I'm trying to use RGBDSLAM_V2 on ARM and get this strange error when I run catkin_make:
...
[ 90%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/transformation_estimation.o
[ 92%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/header.o
[ 94%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/covariance_estimation.o
[ 96%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/feature_adjuster.o
[ 98%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/aorb.o
[100%] Building CXX object rgbdslam_v2/CMakeFiles/rgbdslam.dir/src/features.o
In file included from /opt/ros/hydro/include/opencv2/flann/kmeans_index.h:50:0,
from /opt/ros/hydro/include/opencv2/flann/all_indices.h:38,
from /opt/ros/hydro/include/opencv2/flann/flann_base.hpp:44,
from /opt/ros/hydro/include/opencv2/flann/flann.hpp:50,
from /opt/ros/hydro/include/opencv/cv.h:69,
from /home/pb1/catkin_ws/src/rgbdslam_v2/src/features.cpp:16:
/opt/ros/hydro/include/opencv2/flann/logger.h:73:9: note: the mangling of 'va_list' has changed in GCC 4.4
Linking CXX executable /home/pb1/catkin_ws/devel/lib/rgbdslam/rgbdslam
CMakeFiles/rgbdslam.dir/src/misc.o: In function `g2o2QMatrix(g2o::SE3Quat)':
/home/pb1/catkin_ws/src/rgbdslam_v2/src/misc.cpp:81: undefined reference to `QMatrix4x4::QMatrix4x4(double const*)'
CMakeFiles/rgbdslam.dir/src/graph_manager.o: In function `QMatrix4x4 eigenTF2QMatrix<Eigen::Transform<double, 3, 1, 0> >(Eigen::Transform<double, 3, 1, 0> const&)':
/home/pb1/catkin_ws/src/rgbdslam_v2/src/misc.h:44: undefined reference to `QMatrix4x4::QMatrix4x4(double const*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/pb1/catkin_ws/devel/lib/rgbdslam/rgbdslam] Error 1
make[1]: *** [rgbdslam_v2/CMakeFiles/rgbdslam.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
Any idea how to fix this? I'd really appreciate it. Before doing this, I did change the typedef of qreal
in Qt from float to double on my system - could that be causing any issues here?
Thanks!