HKUST-Aerial-Robotics / EPSILON

MIT License
564 stars 205 forks source link

Compile error in Opencv #10

Closed zmwhit closed 2 years ago

zmwhit commented 2 years ago

platform : ubuntu18.04 When compiling whole project you may find that

libhkust_pl_smm.so:对‘cv::fillPoly(cv::_InputOutputArray const&, cv::InputArray const&, cv::Scalar const&, int, int, cv::Point_)’未定义的引用

zmwhit commented 2 years ago

A feasible solution : Add opencv dependency in package "semantic_map_manager"

find_package(OpenCV REQUIRED) include_directories( ... ${OpenCV_INCLUDE_DIRS} ) target_link_libraries( ... ${OpenCV_LIBS} )

pch9520 commented 2 years ago

A feasible solution : Add opencv dependency in package "semantic_map_manager"

find_package(OpenCV REQUIRED) include_directories( ... ${OpenCV_INCLUDE_DIRS} ) target_link_libraries( ... ${OpenCV_LIBS} )

Helpful!

MasterIzumi commented 2 years ago

@zmwhit Thx. This issue has been fixed.