Rviz build fails under Osx, ROS fuerte
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 ...
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 Currently I can't compile the ros-undedrlay. I fixed a first error with
Ros Time
, but now it returns another error inBuilding CXX object rx/rxtools/CMakeFiles/python_rxtools.dir/rosout_panel_swig_generated.cpp.o
In order to fix the problems I followed first this http://answers.ros.org/question/43272/ros-install-problem-osx-1068/ ...and then this https://code.ros.org/trac/ros/ticket/4022