ninja: error: 'devel/lib/libgflags.so', needed by 'devel/lib/libgflags_catkin.so', missing and no known rule to make it

asked 2021-08-01 23:28:27 -0600

Rika gravatar image

updated 2021-08-02 01:24:32 -0600

Hi everyone, I'm trying to build my project in ubuntu 18.04 (ROS Melodic). The issue I'm facing at the moment is that my project builds just fine in terminal using catkin_make, but when I use vscode and cmake to build, I get this error. This is the whole error message that I get:

[main] Building folder: src 
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/user/catkin_ws_test/src/build --config Debug --target all -j 10 --
[build] ninja: error: 'devel/lib/libgflags.so', needed by 'devel/lib/libgflags_catkin.so', missing and no known rule to make it
[build] Build finished with exit code 1

Whats wrong here and how should I go about it?

edit retag flag offensive close merge delete