Fails to compile rviz on Gentoo
Hello, I'm trying to install ros groovy on my gentoo system. I more or less followed the instructions on the tutorial and solver the dependencies problems so far.
But now I face a problem that is apparently not related to external libraries while compiling rviz:
[ 26%] Building CXX object src/rviz/CMakeFiles/rviz.dir/ogre_helpers/ogre_render_queue_clearer.cpp.o
/home/fox/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/line.cpp: In constructor 'rviz::Line::Line(Ogre::SceneManager*, Ogre::SceneNode*)':
/home/fox/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/line.cpp:54:10: error: **'uint32_t' does not name a type**
/home/fox/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/line.cpp:56:27: error: 'count' was not declared in this scope
/home/fox/ros_catkin_ws/src/rviz/src/rviz/ogre_helpers/line.cpp:56:27: note: suggested alternative:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4/bits/stl_algo.h:4582:5: note: 'std::count'
make[2]: [src/rviz/CMakeFiles/rviz.dir/ogre_helpers/line.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
make[1]: [src/rviz/CMakeFiles/rviz.dir/all] Error 2
make: [all] Error 2
Traceback (most recent call last):
File "./src/catkin/bin/../python/catkin/builder.py", line 717, in build_workspace_isolated
number=index + 1, of=len(ordered_packages)
File "./src/catkin/bin/../python/catkin/builder.py", line 497, in build_package
install, force_cmake, quiet, last_env, cmake_args, make_args + catkin_make_args
File "./src/catkin/bin/../python/catkin/builder.py", line 353, in build_catkin_package
run_command(make_cmd, build_dir, quiet)
File "./src/catkin/bin/../python/catkin/builder.py", line 198, in run_command
raise subprocess.CalledProcessError(proc.returncode, ' '.join(cmd))
CalledProcessError: Command '/home/fox/ros_catkin_ws/devel_isolated/robot_state_publisher/env.sh make -j4 -l4' returned non-zero exit status 2
<== Failed to process package 'rviz':
Command '/home/fox/ros_catkin_ws/devel_isolated/robot_state_publisher/env.sh make -j4 -l4' returned non-zero exit status 2
Reproduce this error by running:
==> /home/fox/ros_catkin_ws/devel_isolated/robot_state_publisher/env.sh make -j4 -l4
Command failed, exiting.
Here the problem is uint32_t
is not defined. I solved this problem by adding #include <boost/cstdint.hpp>
in the file line.cpp
. I'm not sure if that's the good way to go but it does the trick for this file but I encounter an other problem:
[ 14%] Building CXX object src/rviz/CMakeFiles/rviz.dir/time_panel.cpp.o
In file included from /home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_manager.h:38:0,
from /home/fox/ros_catkin_ws/src/rviz/src/rviz/selection_panel.cpp:33:
/home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_handler.h:169:25: error: **field 'interactive_object_' has incomplete type**
make[2]: [src/rviz/CMakeFiles/rviz.dir/selection_panel.cpp.o] Error 1
make[2]: Waiting for unfinished jobs....
In file included from /home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_manager.h:38:0,
from /home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_handler.cpp:39:
/home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_handler.h:169:25: error: field 'interactive_object_' has incomplete type
/home/fox/ros_catkin_ws/src/rviz/src/rviz/selection/selection_handler.cpp: In member function 'virtual ...