[ros-users] rviz on snow leopard

Christian Schluchter schluchc at ee.ethz.ch
Fri May 14 20:12:34 UTC 2010


You're right, there are many other dependencies I didn't have. I tried now the -r flag and some dependencies compiled but I stuck again, this time it is the py25-wxpython which doesn't compile giving the attached output.
Do you have some experience with that? I tried to get some help directly for the py25-wxpython issue but didn't get anything until now.
Did someone successfully install rviz on snow leopard?

Btw, we are using ros in a quadrotor (http://pixhawk.ethz.ch) built to compete in the EMAV competition. We currently use it only to visualize but we are thinking of using it as middleware as well replacing lcm.


rosdep install -r rviz
Failed to find rosdep glut for package rviz on OS:macports version:macports
Failed to find rosdep nvidia-cg for package rviz on OS:macports version:macports
WARNING: Rosdeps [u'glut', u'nvidia-cg'] could not be resolved
executing this script:
 set -o errexit
#Packages
sudo port install py25-wxpython
--->  Computing dependencies for py25-wxpython
--->  Building py25-wxpython
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-wxpython/work/wxPython-src-2.8.9.1/wxPython" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output:                  from include/wx/wxPython/wxPython.h:22,
                 from src/mac/_gdi_wrap.cpp:2736:
/opt/local/lib/wx/include/mac-unicode-release-2.8/wx/setup.h:962:1: warning: "SIZEOF_SIZE_T" redefined
In file included from /opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
                 from src/mac/_gdi_wrap.cpp:129:
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:830:1: warning: this is the location of the previous definition
src/mac/_gdi_wrap.cpp: In function 'void SWIG_Python_AddErrorMsg(const char*)':
src/mac/_gdi_wrap.cpp:864: warning: format not a string literal and no format arguments
In file included from src/mac/_gdi_wrap.cpp:2736:
include/wx/wxPython/wxPython.h: In function 'bool wxPyCoreAPI_IMPORT()':
include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string constant to 'char*'
include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string constant to 'char*'
src/mac/_gdi_wrap.cpp: In function 'wxPalette* new_wxPalette(const wxArrayInt&, const wxArrayInt&, const wxArrayInt&)':
src/mac/_gdi_wrap.cpp:2883: warning: comparison between signed and unsigned integer expressions
src/mac/_gdi_wrap.cpp:2883: warning: comparison between signed and unsigned integer expressions
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_Font_MacGetATSUFontID(PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:15850: error: 'class wxFont' has no member named 'MacGetATSUFontID'
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_PenList_AddPen(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32884: warning: 'AddPen' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:516)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_PenList_RemovePen(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:32922: warning: 'RemovePen' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:517)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_BrushList_AddBrush(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:33015: warning: 'AddBrush' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:526)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_BrushList_RemoveBrush(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:33053: warning: 'RemoveBrush' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:527)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_FontList_AddFont(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:33205: warning: 'AddFont' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:539)
src/mac/_gdi_wrap.cpp: In function 'PyObject* _wrap_FontList_RemoveFont(PyObject*, PyObject*, PyObject*)':
src/mac/_gdi_wrap.cpp:33243: warning: 'RemoveFont' is deprecated (declared at /opt/local/include/wx-2.8/wx/gdicmn.h:540)
error: command '/usr/bin/gcc-4.2' failed with exit status 1

Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.





On May 14, 2010, at 19:27 , Josh Faust wrote:

> 1.6.5 is the right version to install.  It looks like there are a number of rosdeps that you still don't have... try a "rosdep install -r rviz", which will continue despite errors.
> 
> Josh
> 
> On Fri, May 14, 2010 at 10:23 AM, Christian Schluchter <schluchc at ee.ethz.ch> wrote:
> Hi Josh
> 
> Thanks for your answer, the output is attached. I only installed ogre as framework using version 1.6.5. It seems like the newer version of ogre doesn't support the framework variant. Neither does CG, or am I wrong? I installed CG using the installer.
> 
> Cheers 
> Christian
> 
> 
> [ rosmake ] Checking rosdeps compliance for packages rviz.  This may take a few seconds.
> Failed to find rosdep glut for package rviz on OS:macports version:macports
> Failed to find rosdep nvidia-cg for package rviz on OS:macports version:macports
> WARNING: Rosdeps [u'glut', u'nvidia-cg'] could not be resolved
> [ rosmake ] rosdep check failed to find system dependencies: Did not detect packages: ['freeimage', 'graphviz', 'py25-pil', 'xorg-libXaw', 'xorg-libXxf86vm', 'py25-matplotlib', 'libzzip', 'mesa', 'wxwidgets', 'py25-wxpython']
> 
> [
> .
> . 
> .
> ]
> 
> [ rosmake ] Last 40 lines
> {-------------------------------------------------------------------------------
>         ogre_tools::OrbitCamera::getOrientation()       in orbit_camera.o
>         ogre_tools::OrbitCamera::move(float, float, float)in orbit_camera.o
>         ogre_tools::OrthoCamera::getOrientation()       in ortho_camera.o
>         ogre_tools::OrthoCamera::toString()      in ortho_camera.o
>         ogre_tools::OrthoCamera::toString()      in ortho_camera.o
>         ogre_tools::OrthoCamera::toString()      in ortho_camera.o
>         ogre_tools::OrthoCamera::toString()      in ortho_camera.o
>     "_wxEVT_LEFT_DOWN", referenced from:
>         __static_initialization_and_destruction_0(int, int)in wx_ogre_render_window.o
>     "wxWindowBase::Validate()", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>     "wxWindowBase::GetHelpTextAtPoint(wxPoint const&, wxHelpEvent::Origin) const", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>     "wxWindowBase::Navigate(int)", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>     "Ogre::Viewport::getCamera() const", referenced from:
>         ogre_tools::wxOgreRenderWindow::setCameraAspectRatio()       in wx_ogre_render_window.o
>     "_wxEVT_MOTION", referenced from:
>         __static_initialization_and_destruction_0(int, int)in wx_ogre_render_window.o
>     "Ogre::SimpleRenderable::visitRenderables(Ogre::Renderable::Visitor*, bool)", referenced from:
>         vtable for ogre_tools::PointCloudRenderablein point_cloud.o
>     "Ogre::Root::loadPlugin(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
>         ogre_tools::initializeOgre()       in initialization.o
>         ogre_tools::initializeOgre()       in initialization.o
>         ogre_tools::initializeOgre()       in initialization.o
>         ogre_tools::initializeOgre()       in initialization.o
>     "wxEvtHandler::ProcessEvent(wxEvent&)", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>     "wxEvtHandler::DoSetClientObject(wxClientData*)", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>     "wxControlBase::~wxControlBase()", referenced from:
>         ogre_tools::wxOgreRenderWindow::wxOgreRenderWindow(Ogre::Root*, wxWindow*, int, wxPoint const&, wxSize const&, long, wxValidator const&, bool)in wx_ogre_render_window.o
>     "wxWindowBase::DoIsExposed(int, int, int, int) const", referenced from:
>         vtable for ogre_tools::wxOgreRenderWindowin wx_ogre_render_window.o
>   ld: symbol(s) not found
>   collect2: ld returned 1 exit status
>   make[3]: *** [../lib/libogre_tools.dylib] Error 1
>   make[2]: *** [CMakeFiles/ogre_tools.dir/all] Error 2
>   make[1]: *** [all] Error 2
> -------------------------------------------------------------------------------}
> [ rosmake ] Output from build of package ogre_tools written to:
> [ rosmake ]    /Users/schluchc/.ros/rosmake/rosmake_output-20100514-191340/ogre_tools/build_output.log
> [rosmake-1] <<< ogre_tools <<< [FAIL] [ 16.02 seconds ]
> [ rosmake ] Halting due to failure in package ogre_tools. 
> [ rosmake ] Waiting for other threads to complete.
> [rosmake-0] <<< message_filters <<< [PASS] [ 3.16 seconds ]
> [ rosmake ] Summary output to directory
> [ rosmake ] /Users/schluchc/.ros/rosmake/rosmake_output-20100514-191340
> [ rosmake ] WARNING: Rosdep did not detect the following system dependencies as installed: Did not detect packages: ['freeimage', 'graphviz', 'py25-pil', 'xorg-libXaw', 'xorg-libXxf86vm', 'py25-matplotlib', 'libzzip', 'mesa', 'wxwidgets', 'py25-wxpython']
>  Consider using --rosdep-install option or `rosdep install rviz`
> 
> 
> 
> On May 14, 2010, at 19:05 , Josh Faust wrote:
> 
>> Getting rviz up on OSX is a bit tricky unfortunately.  Manually installing Cg and Ogre as frameworks should work though -- what is the output of a rosmake rviz?
>> 
>> Josh
>> 
>> On Fri, May 14, 2010 at 4:32 AM, Christian Schluchter <schluchc at ee.ethz.ch> wrote:
>> Hi everyone
>> 
>> Does anyone know how to run rviz on snow leopard? I followed the instructions on the page http://www.ros.org/wiki/ROS/OSX to install ogre but if I type rosdep install ogre_tools I get following output:
>> 
>> Failed to find rosdep nvidia-cg for package ogre_tools on OS:macports version:macports
>> ERROR: ABORTING: Rosdeps [u'nvidia-cg'] could not be resolved
>> 
>> If I directly try rosdep install rviz, I get the same for [u'glut']. I installed both glut (OgreSDK_v1.6.5 as framework) and nvidia-cg (Cg-3.0_April2010) manually but it seems like ros doesn't find them.
>> 
>> Any help would be very appreciated, thanks in advance,
>> Christian
>> 
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>> 
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
> 
> 
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
> 
> 
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100514/87029af0/attachment-0003.html>


More information about the ros-users mailing list