leggedrobotics / darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
BSD 3-Clause "New" or "Revised" License
2.14k stars 1.17k forks source link

Issue running unittests on melodic #395

Open drorp5 opened 1 year ago

drorp5 commented 1 year ago

Describe the bug After succsefully building the project I tried to run the unittest as described but I encounter the error,

/home/administrator/catkin_ws/src/darknet_ros/darknet_ros/test/ObjectDetection.cpp:73: undefined reference to `cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)'

To Reproduce

  1. Checkout to branch melodic
  2. Build using catkin build darknet_ros -DCMAKE_BUILD_TYPE=Release
  3. Run unittests catkin build darknet_ros --no-deps --verbose --catkin-make-args run_tests

Expected behavior You will see the image above popping up.

System (please complete the following information): Linux administrator-SER0 5.4.0-131-generic #147~18.04.1-Ubuntu SMP Sat Oct 15 13:10:18 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ROS version: ROS melodic opencv3.2.0