catkin_make error | ROS Melodic and OpenCV 3.4.0
Hi,
After clonning the repository, given in the leg_detector ros.org page, to my catkin workspace and after performing the cakin_make I get the following error:
[ 98%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/face_detector/face_detector
[100%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/leg_detector/leg_detector
CMakeFiles/leg_detector.dir/src/leg_detector.cpp.o: In function `LegDetector::laserCallback(boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)':
leg_detector.cpp:(.text._ZN11LegDetector13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE[_ZN11LegDetector13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE]+0x4ca): undefined reference to `cv::ml::RTrees::getVotes(cv::_InputArray const&, cv::_OutputArray const&, int) const'
collect2: error: ld returned 1 exit status
people/leg_detector/CMakeFiles/leg_detector.dir/build.make:215: recipe for target '/home/joao-nisa/catkin_ws/devel/lib/leg_detector/leg_detector' failed
make[2]: *** [/home/joao-nisa/catkin_ws/devel/lib/leg_detector/leg_detector] Error 1
CMakeFiles/Makefile2:4646: recipe for target 'people/leg_detector/CMakeFiles/leg_detector.dir/all' failed
make[1]: *** [people/leg_detector/CMakeFiles/leg_detector.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target face_detector
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
I've installed the Melodic version of ROS and the version of OpenCV is the 3.4.0. Can anyone help me solving this problem?
Thanks in advance!