Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in compilation of the packages #2

Open
Saksham-Bhadani opened this issue Feb 27, 2024 · 0 comments
Open

Issue in compilation of the packages #2

Saksham-Bhadani opened this issue Feb 27, 2024 · 0 comments

Comments

@Saksham-Bhadani
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant