make: *** No rule to make target `/usr/local/lib/librtabmap_core.so', needed by `/home/supdood/catkin_ws/devel/lib/rtabmap_ros/camera'. Stop.
make: *** [rtabmap_ros/CMakeFiles/camera.dir/all] Error 2
make: *** Waiting for unfinished jobs....
make: *** No rule to make target `/usr/local/lib/librtabmap_core.so', needed by `/home/supdood/catkin_ws/devel/lib/librtabmap_ros.so'. Stop.
I'm kinda stuck on what's wrong here =/
Any help would be appreciated
I've reproduced the bug by reinstalling rtabmap library at a different location. The cmake cache of catkin has kept the last location of the installed library (which is not there anymore), giving the missing target "librtabmap_core.so" error.
Solution: remove the build folder from the catkin workspace to make sure that all the cmake cache is clean: