<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title></title>
  </head>

  <body>
    <p style="margin: 0px;"><span>Hi Josh,</span></p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span>I actually deleted both versions of wx manually (technically I moved them to a temp folder so that the system would not find them).</span></p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span>Now, I just tried "</span>sudo apt-get install --reinstall libwxgtk2.8-dev<span>", and it worked fine, but it still seems like RVIZ does not see it. I can no longer run or compile RVIZ. Here's the log output of "rosmake rviz":</span></p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;">[  0%] Built target rospack_genmsg_libexe<br />
    [  0%] Built target rosbuild_precompile<br />
    Scanning dependencies of target rviz<br />
    [  1%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/plugin.o<br />
    [  2%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/plugin_manager.o<br />
    [  3%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/type_registry.o<br />
    <br />
    ...<br />
    <br />
    [ 53%] Building CXX object src/rviz/CMakeFiles/rviz.dir/robot/robot.o<br />
    [ 54%] Building CXX object src/rviz/CMakeFiles/rviz.dir/selection/selection_manager.o<br />
    [ 55%] Building CXX object src/rviz/CMakeFiles/rviz.dir/generated/rviz_generated.o<br />
    Linking CXX shared library ../../lib/librviz.so<br />
    [ 55%] Built target rviz<br />
    Scanning dependencies of target executable<br />
    [ 57%] Building CXX object src/rviz/CMakeFiles/executable.dir/visualizer_app.o<br />
    Linking CXX executable ../../bin/rviz<br />
    /usr/bin/ld: warning: libwx_gtk2u_richtext-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_aui-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_xrc-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_qa-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_html-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_adv-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_gtk2u_core-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_baseu_xml-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_baseu_net-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /usr/bin/ld: warning: libwx_baseu-2.8.so.0, needed by /opt/ros/cturtle/stacks/visualization_common/ogre_tools/lib/libogre_tools.so, not found (try using -rpath or -rpath-link)<br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxListBase::Find(wxListKey const&) const@WXU_2.8'<br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxBaseArrayInt::Index(int, bool) const@WXU_2.8'<br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxScrollHelper::DoPrepareDC(wxDC&)@WXU_2.8'<br />
    <br />
    ... [hundreds of lines here]<br />
    <br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxOwnerDrawnComboBox::GetEventHashTable() const@WXU_2.8'<br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxButton::SetDefault()@WXU_2.8'<br />
    /opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxScrollHelper::GetViewStart(int*, int*) const@WXU_2.8'<br />
    collect2: ld returned 1 exit status<br />
    make[2]: *** [bin/rviz] Error 1<br />
    make[1]: *** [src/rviz/CMakeFiles/executable.dir/all] Error 2<br />
    make: *** [all] Error 2<span> </span></p>

    <p style="margin: 0px;"><span><br />
    </span></p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Any idea why this keeps happening? Is there a way to remove all of these libraries and let ROS re-install only what it requires? Is there a better solution?</p>

    <p style="margin: 0px;"> </p>

    <p>Benoit</p>

    <p> </p>

    <div style="margin: 5px 0px 5px 0px; font-family: monospace;">
      On July 13, 2010 at 8:39 PM Josh Faust <jfaust@willowgarage.com> wrote:<br />
      <br />
      > Did you delete the one in /usr, or use apt to uninstall it?  If you manually<br />
      > deleted it, you'll have to force a reinstallation (sudo apt-get install<br />
      > --reinstall libwxgtk2.8-dev)<br />
      ><br />
      > Josh<br />
      ><br />
      > On Tue, Jul 13, 2010 at 5:50 AM, Benoit Larochelle <<br />
      > Benoit.Larochelle@dfki.de> wrote:<br />
      ><br />
      > >  I think that one of the problems is that I seem to have two versions of<br />
      > > wx, one in /usr and one in /usr/local, like Josh suggested.<br />
      > ><br />
      > > I manually deleted both versions of wx and I tried to reinstall it with<br />
      > > rosdep, but it found nothing. It just told me that there were no missing<br />
      > > components, but yet when I try to compile RVIZ, it complains because it<br />
      > > can't find the wx libraries. I tried re-installing wx from scratch, but<br />
      > > the compiler still cannot find the libraries.<br />
      > ><br />
      > > By the way, I'm running Ubuntu 9.10.<br />
      > ><br />
      > > Benoit<br />
      > >
    </div>
  </body>
</html>