Hi Josh,
I actually deleted both versions of wx manually (technically I moved them to a temp folder so that the system would not find them).
Now, I just tried "sudo apt-get install --reinstall libwxgtk2.8-dev", 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":
[ 0%] Built target rospack_genmsg_libexe
[ 0%] Built target rosbuild_precompile
Scanning dependencies of target rviz
[ 1%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/plugin.o
[ 2%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/plugin_manager.o
[ 3%] Building CXX object src/rviz/CMakeFiles/rviz.dir/plugin/type_registry.o
...
[ 53%] Building CXX object src/rviz/CMakeFiles/rviz.dir/robot/robot.o
[ 54%] Building CXX object src/rviz/CMakeFiles/rviz.dir/selection/selection_manager.o
[ 55%] Building CXX object src/rviz/CMakeFiles/rviz.dir/generated/rviz_generated.o
Linking CXX shared library ../../lib/librviz.so
[ 55%] Built target rviz
Scanning dependencies of target executable
[ 57%] Building CXX object src/rviz/CMakeFiles/executable.dir/visualizer_app.o
Linking CXX executable ../../bin/rviz
/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)
/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)
/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)
/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)
/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)
/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)
/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)
/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)
/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)
/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)
/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'
/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'
/opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxScrollHelper::DoPrepareDC(wxDC&)@WXU_2.8'
... [hundreds of lines here]
/opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxOwnerDrawnComboBox::GetEventHashTable() const@WXU_2.8'
/opt/ros/cturtle/stacks/visualization/wxpropgrid/propgrid_install/lib/libwxcode_gtk2u_propgrid-2.8.so: undefined reference to `wxButton::SetDefault()@WXU_2.8'
/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'
collect2: ld returned 1 exit status
make[2]: *** [bin/rviz] Error 1
make[1]: *** [src/rviz/CMakeFiles/executable.dir/all] Error 2
make: *** [all] Error 2
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?
Benoit