ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Rviz build fails under Osx, ROS fuerte

asked 2012-06-03 07:03:40 -0500

LucaGhera gravatar image

updated 2012-06-03 13:41:35 -0500

Kevin gravatar image

Hi all,

I'm trying to compile Rviz under Osx Lion. I'm using Homebrew as package manager and I'm following the instruction reported on the ROS wiki.

After having fixed some problems during the compilation, I can't fix the following one. Please find below the compilation log.

How can I fix it?

To be noticed that if I try to run rviz it starts.

Thanks!

mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
[rosbuild] Building package rviz
[rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/fuerte/share/common-lisp/ros/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake
WARN, found multiple boost versions '[(1, 49, 0, '/usr/local', '/usr/local/include', True, True), (1, 49, 0, '/usr/local', '/usr/local/include', True, True), (1, 49, 0, '/usr/local', '/usr/local/include', True, True)]', using latestWARN, found multiple boost versions '[(1, 49, 0, '/usr/local', '/usr/local/include', True, True), (1, 49, 0, '/usr/local', '/usr/local/include', True, True), (1, 49, 0, '/usr/local', '/usr/local/include', True, True)]', using latestCMake Warning at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:595 (message):
  GTest not found; C++ tests will fail to build.
Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:124 (rosbuild_add_gtest_build_flags)
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:625 (_rosbuild_add_gtest)
  src/test/CMakeLists.txt:1 (rosbuild_add_gtest)


CMake Warning at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:595 (message):
  GTest not found; C++ tests will fail to build.
Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:124 (rosbuild_add_gtest_build_flags)
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:625 (_rosbuild_add_gtest)
  src/test/CMakeLists.txt:17 (rosbuild_add_gtest)


[rosbuild] Couldn't find source file /Users/luca/Software/ros/fuerte/ros-stacks/visualization/rviz/build/src/test/moc_ros_spinner.cxx; assuming that it is in /Users/luca/Software/ros/fuerte/ros-stacks/visualization/rviz/src/test and will be generated later
CMake Warning at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:595 (message):
  GTest not found; C++ tests will fail to build.
Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:124 (rosbuild_add_gtest_build_flags)
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:625 (_rosbuild_add_gtest)
  src/test/CMakeLists.txt:48 (rosbuild_add_gtest)


[rosbuild] Couldn't find source file /Users/luca/Software/ros/fuerte/ros-stacks/visualization/rviz/build/src/test/moc_connect_test.cxx; assuming that it is in /Users/luca/Software/ros/fuerte/ros-stacks/visualization/rviz/src/test and will be generated later
CMake Warning at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:595 (message):
  GTest not found; C++ tests will fail to build.
Call Stack (most recent call first):
  /opt/ros/fuerte/share/ros/core/rosbuild/private.cmake:124 (rosbuild_add_gtest_build_flags)
  /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:625 (_rosbuild_add_gtest)
  src/test/CMakeLists.txt:66 (rosbuild_add_gtest)


[rosbuild] Couldn't find source ...
(more)
edit retag flag offensive close merge delete

Comments

1

Despite this error, rviz is built and will run as expected now, but try the solution below and let us know how it goes.

WilliamWoodall gravatar image WilliamWoodall  ( 2012-10-04 09:04:35 -0500 )edit

@WilliamWoodall Currently I can't compile the ros-undedrlay. I fixed a first error with Ros Time, but now it returns another error in Building CXX object rx/rxtools/CMakeFiles/python_rxtools.dir/rosout_panel_swig_generated.cpp.o

LucaGhera gravatar image LucaGhera  ( 2012-10-04 21:59:49 -0500 )edit
LucaGhera gravatar image LucaGhera  ( 2012-10-05 02:44:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-04 08:51:46 -0500

hawesie gravatar image

It seems like whatever is generating the file rviz/build/sip/rviz_sip/Makefile is not putting "-framework" before Carbon and Collada15Dom when generating the LFLAGS. If you edit that file and change "Carbon" to "-framework Carbon" and "Collada15Dom" to "-framework Collada15Dom" in the LDFLAGS definition you'll get past this stage.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2012-06-03 07:03:40 -0500

Seen: 443 times

Last updated: Oct 04 '12