Skip to content

Issue in compilation of the packages #2

@Saksham-Bhadani

Description

@Saksham-Bhadani

On trying to run catkin build command, i am getting the following error:
Errors << dobot_v4_bringup:make /home/********/dobot_ws/logs/dobot_v4_bringup/build.make.000.log In file included from /home/********/dobot_ws/src/TCP-IP-ROS-6AXis/dobot_v4_bringup/src/cr5_v4_robot.cpp:16: /home/********/dobot_ws/src/TCP-IP-ROS-6AXis/dobot_v4_bringup/include/dobot_v4_bringup/cr5_v4_robot.h:17:10: fatal error: nlohmann/json.hpp: No such file or directory 17 | #include <nlohmann/json.hpp> | ^~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [CMakeFiles/dobot_v4_bringup.dir/build.make:63: CMakeFiles/dobot_v4_bringup.dir/src/cr5_v4_robot.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1743: CMakeFiles/dobot_v4_bringup.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 cd /home/********/dobot_ws/build/dobot_v4_bringup; catkin build --get-env dobot_v4_bringup | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

Since i had to do some testing on the Rviz simulation, i removed the package temporarily removed the package that wasn't compiling, but still got the following error:
Errors << rosdemo_v3:cmake /home/********/dobot_ws/logs/rosdemo_v3/build.cmake.000.log CMake Error at /home/********/dobot_ws/src/TCP-IP-ROS-6AXis/rosdemo_v3/CMakeLists.txt:52 (add_executable): Target "rosdemo_v3" links to target "nlohmann_json::nlohmann_json" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

I modified dependencies in other packages relating to these, and was able to complete the build. But without the bring up files, I can not do the testing with the actual hardware.

I tried looking into the ROS dependencies and it seems like all the required rosdep for ROS noetic is installed. Please let me know if there is a fix for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions