ros-perception / depthimage_to_laserscan

Converts a depth image to a laser scan for use with navigation and localization.
253 stars 170 forks source link

No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0' #41

Closed Tengyun-Mo closed 4 years ago

Tengyun-Mo commented 5 years ago

My platform is Jetson TX2 with jetpack 4.2, ros melodic. When I use catkin_make to make depthimage_to_laserscan, there is an error.

make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0', needed by '/home/sikong/catkin_ws/devel/lib/libDepthImageToLaserScan.so'. Stop.

Tengyun-Mo commented 5 years ago

I try to run thissudo apt-get install ros-melodic-depthimage-to-laserscanto solve the issue,but I still get the error.I don't find libopencv_objdetect.so.3.2.0 under the file /usr/lib/aarch64-linux-gnu/,I guess it will be fixed by copying libopencv_objdetect.so.3.2.0 to /usr/lib/aarch64-linux-gnu/.Who can show me the libopencv_objdetect.so.3.2.0,I will very appreciate it,thanks.

haosen9527 commented 4 years ago

you need again Compile Opencv 3.2.0: cmake .. make sudo make install

clalancette commented 4 years ago

Yes, @haosen9527 generally has it right. Usually this means that OpenCV wasn't installed correctly.

As an FYI, on Ubuntu 18.04, you need to have the package libopencv-objdetect3.2 installed for this to work.

I'm going to close this out, but feel free to keep commenting or re-open if you still are having problems.

atmagopal commented 3 years ago

Commenting just to post the solution I found in https://github.com/AprilRobotics/apriltag_ros/issues/66#issuecomment-578309418 for the exact same issue

sudo apt install libopencv3.2

This installs the missing libraries, including libopencv_objdetect.so.3.2.0.