RPM-Robotics-Lab / file_player_mulran

File Player for MulRan Dataset
121 stars 36 forks source link

Build issues - opencv - ROS Noetic #10

Closed ram-bhaskara closed 1 year ago

ram-bhaskara commented 2 years ago

Hi,

I'm unable to build the source using catkin_make. I'm using ROS Noetic (Ubuntu 20.04). The first issue was catkin_make failed to build opencv/cv.h and opencv/highgui.h (screenshot below) image

I followed a recommended fix but it did not help. I now have a lot more build errors - majority are from member functions (screenshot below). Did you come across these problems? Any suggestions?

image

huawei-sai commented 1 year ago

Solution

  1. The first issue related to OpenCV occurs because file_player_mulran is compatible with OpenCV 3.x versions while your system might be having OpenCV 4,x version. You have solved it using this solution https://answers.ros.org/question/398357/catkin_make-failed-to-build-opencv/
  2. Another solution could be that to install OpenCV 3.x as most SLAM or other packages might be using OpenCV 3.x and that would make life more easier as there wont be any need to make those changes in files from other packages, for example SC-LeGO-LOAM.
  3. The second error is caused because latest versions of PCL requires c++14 standard to be defined in the CMakeLists for successful compilation. You can add this set(CMAKE_CXX_STANDARD 14) to the CMakeLists.txt of the file_mulran_player and it should solve the issue.
minwoo0611 commented 1 year ago

Sorry for the late responding.

As many people tackle the same issue, we make a new branch to solve the compile error.

Thank you for giving the solution!