wg-perception / people

269 stars 197 forks source link

Error in catkin_make #77

Closed jnisa closed 5 years ago

jnisa commented 5 years ago

Hi,

When I catkin_make after I clone the repository, I get the following error: https://imgur.com/1Z3BAOi How can I solve this problem?

Thanks in advance

DLu commented 5 years ago

In addition to the comments on #78, please post which versions of ROS/CV you're using.

jnisa commented 5 years ago

Hi, Meanwhile I've tried to solve the problem and now I'm getting the following error, during the catkin_make,

[ 95%] Building CXX object people/leg_detector/CMakeFiles/leg_detector.dir/src/leg_detector.cpp.o
[ 96%] Building CXX object people/leg_detector/CMakeFiles/leg_detector.dir/src/calc_leg_features.cpp.o
[ 97%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/people_tracking_filter/people_tracker
[ 97%] Built target people_tracker
[ 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 OpenCV version installed is the 3.4.0

DLu commented 5 years ago

Closing to discuss on answers instead

blackjacket996 commented 2 years ago

Hi,I've got a same problem! Have you solved it ? I wanna a help. thks.

blackjacket996 commented 2 years ago

Hi! May I ask how to rolling it back?