uji-ros-pkg / underwater_simulation

UWSim-NET, the Underwater Simulator
97 stars 64 forks source link

Compiling failure: Can't find osg_utils.h and marker_base.h #69

Closed DeniseBryson closed 6 years ago

DeniseBryson commented 6 years ago

I'm trying to install the uwsim-package which needs visualization_osg. Ubuntu 16.04 LTS and ros-kinetic. I created the .rosinstall file as described and got all the files from the repositories but now I'm having issues with some header files which exist but are not in the right place according to the compiler.

All in all I want to install uwsim which needs the following packages: ~~ traversing 11 packages in topological order: ~~ - osg_markers ~~ - osg_utils ~~ - osg_interactive_markers ~~ - underwater_sensor_msgs ~~ - underwater_vehicle_dynamics ~~ - uwsim_bullet (plain cmake) ~~ - uwsim_osgocean (plain cmake) ~~ - uwsim_osgworks (plain cmake) ~~ - uwsim_osgbullet (plain cmake) ~~ - uwsim ~~ - visualization_osg

When I run catkin_make_isolated, while compiling osg_interactive_markers I get the following error:

[ 37%] Building CXX object CMakeFiles/osg_interactive_markers.dir/src/interactive_marker.cpp.o [ 50%] Building CXX object CMakeFiles/osg_interactive_markers.dir/src/interactive_marker_display.cpp.o /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/src/interactive_marker.cpp:32:33: fatal error: osg_utils/osg_utils.h: No such file or directory compilation terminated. CMakeFiles/osg_interactive_markers.dir/build.make:110: recipe for target 'CMakeFiles/osg_interactive_markers.dir/src/interactive_marker.cpp.o' failed make[2]: [CMakeFiles/osg_interactive_markers.dir/src/interactive_marker.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/src/interactive_marker_control.cpp:32:0: /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/include/osg_interactive_markers/interactive_marker_control.h:39:37: fatal error: osg_markers/marker_base.h: No such file or directory compilation terminated. CMakeFiles/osg_interactive_markers.dir/build.make:134: recipe for target 'CMakeFiles/osg_interactive_markers.dir/src/interactive_marker_control.cpp.o' failed make[2]: [CMakeFiles/osg_interactive_markers.dir/src/interactive_marker_control.cpp.o] Error 1 In file included from /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/include/osg_interactive_markers/interactive_marker.h:35:0, from /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/include/osg_interactive_markers/interactive_marker_display.h:35, from /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/src/interactive_marker_display.cpp:32: /home/ros/Programme/WaterGlider/Workspace/src/src/visualization_osg/osg_interactive_markers/include/osg_interactive_markers/interactive_marker_control.h:39:37: fatal error: osg_markers/marker_base.h: No such file or directory compilation terminated. CMakeFiles/osg_interactive_markers.dir/build.make:86: recipe for target 'CMakeFiles/osg_interactive_markers.dir/src/interactive_marker_display.cpp.o' failed make[2]: [CMakeFiles/osg_interactive_markers.dir/src/interactive_marker_display.cpp.o] Error 1 CMakeFiles/Makefile2:153: recipe for target 'CMakeFiles/osg_interactive_markers.dir/all' failed make[1]: [CMakeFiles/osg_interactive_markers.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: [all] Error 2 <== Failed to process package 'osg_interactive_markers': Command '['/home/ros/Programme/WaterGlider/Workspace/devel_isolated/osg_utils/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running: ==> cd /home/ros/Programme/WaterGlider/Workspace/build_isolated/osg_interactive_markers && /home/ros/Programme/WaterGlider/Workspace/devel_isolated/osg_utils/env.sh make -j4 -l4

Command failed, exiting.

I could remove these errors with moving osg_utils/osg_utils.h and osg_markers/marker_base.h around. But then I had reference issues, about some functions. Not sure what is wrong here.

I tried sourcing the three different setup.bash files I could find: workspace/devel_isolated/osg_interactive_markers/setup.bash workspace/devel_isolated/osg_markers/setup.bash workspace/devel_isolated/osg_utils/setup.bash

DeniseBryson commented 6 years ago

catkin_make_isolated --install works a lot better than catkin_make_isolated. Sorry for that.