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

Compiling Problem can't find utils.h and marker_base.h #3

Open
DeniseBryson opened this issue Sep 7, 2018 · 1 comment
Open

Compiling Problem can't find utils.h and marker_base.h #3

DeniseBryson opened this issue Sep 7, 2018 · 1 comment

Comments

@DeniseBryson
Copy link

I'm trying to install the uwsim-package which needs visualization_osg.
I'm running Ubuntu 16.04 LTS and ros-kinetic.

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.

@yikangGu
Copy link

yikangGu commented Jan 5, 2020

I had the same issue. Recompiling it with sudo apt-get install libopenscenegraph-dev solved my problem. you can try it.

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

2 participants