Ask Your Question
0

Fails to compile rviz on Gentoo

asked 2013-06-19 01:56:23 -0600

focs gravatar image

updated 2014-04-20 14:09:21 -0600

ngrennan gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-19 04:57:05 -0600

focs gravatar image

Apart from the file line.cpp I had to edit three more files. To sumup:

line.cpp: add #include <boost/cstdint.hpp>
interactive_object.h: add #include <boost/weak_ptr.hpp>
interactive_marker.h: add #include <boost/thread.hpp>
map_display.h: add #include <boost/thread/mutex.hpp>

After this changes rviz compiled ok. Should I submit the bug somewhere?

edit flag offensive delete link more

Comments

2

Most of the bugs have just been fixed in https://github.com/ros-visualization/rviz/pull/648

dgossow gravatar imagedgossow ( 2013-06-19 06:03:26 -0600 )edit
1

I'll take care of the line.cpp fix. Thanks for reporting this.

dgossow gravatar imagedgossow ( 2013-06-19 06:04:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-19 01:56:23 -0600

Seen: 242 times

Last updated: Jun 19 '13