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

osg missing?

asked 2012-06-06 22:53:19 -0500

apalomer gravatar image

Hi all!

I'm trying to use UWSim and did eveything on the webpage. The problem now is that when I do:

rosmake UWSim --rosdep-install

I get the following error:

  [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
  [rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  -- Configuring done
  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_TOOLCHAIN_FILE


  -- Build files have been written to: /home/albert/ros_electric/underwater_simulation/UWSim/build
  cd build && make -l2
  make[1]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[2]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[3]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[3]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[3]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[3]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[3]: Entering directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  Linking CXX executable ../bin/UWSim
  /usr/bin/ld: warning: libosg.so.65, needed by /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so, not found (try using -rpath or -rpath-link)
  /usr/bin/ld: warning: libosgUtil.so.65, needed by /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so, not found (try using -rpath or -rpath-link)
  /usr/bin/ld: warning: libosgDB.so.65, needed by /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so, not found (try using -rpath or -rpath-link)
  /usr/bin/ld: warning: libosgGA.so.65, needed by /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so, not found (try using -rpath or -rpath-link)
  /usr/bin/ld: warning: libOpenThreads.so.13, needed by /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so, not found (try using -rpath or -rpath-link)
  /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so: undefined reference to `OpenThreads::Mutex::Mutex()'
  /home/albert/ros_electric/underwater_simulation/osgOcean/lib/libosgOcean.so: undefined reference to `osgDB::readImageFile(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, osgDB::ReaderWriter::Options const*)'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/UWSim] Error 1
  make[3]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[2]: *** [CMakeFiles/UWSim.dir/all] Error 2
  make[2]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/albert/ros_electric/underwater_simulation/UWSim/build'

From which I asume osg lib is missing. I've checked on google how to install it but no result found.

Can somebody give me a hint on how to solve it??

Cheers!

edit retag flag offensive close merge delete

5 Answers

Sort by » oldest newest most voted
2

answered 2012-06-07 00:11:32 -0500

Mario Prats gravatar image

Did you recently upgrade your distro? You have installed openscenegraph 3.0, which should link against libosg.so.80. However, your osgOcean seems to be compiled against libosg.so.65. Have you tried to pre-clean your build?

rosmake --pre-clean UWSim

edit flag offensive delete link more

Comments

it worked! thanks mario

apalomer gravatar image apalomer  ( 2012-06-07 00:24:47 -0500 )edit

great! you're welcome

Mario Prats gravatar image Mario Prats  ( 2012-06-07 00:31:55 -0500 )edit
0

answered 2012-09-08 08:37:53 -0500

ee05073 gravatar image

Hi! I am trying to install UWSim on Precise 12.04 but just at step 2 I get this

rosdep install UWSim

ERROR: Rosdep cannot find all required resources to answer your query Missing resource UWSim ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/home/graca/fuerte_workspace/sandbox ROS path [2]=/opt/ros/fuerte/stacks ROS path [3]=/opt/ros/fuerte/share ROS path [4]=/opt/ros/fuerte/share/ros

and I don't know what to do! Might be something to do with the $ROS_PACKAGE_PATH but I did what described in tutorials... Can someone help?

edit flag offensive delete link more

Comments

do you have this line in your .bashrc file? export ROS_PACKAGE_PATH=/home/user/ros/ros-pkg:/another/path otherwise your don't haver your ros package path configured.

apalomer gravatar image apalomer  ( 2012-09-12 22:38:08 -0500 )edit
0

answered 2012-06-06 23:54:33 -0500

apalomer gravatar image

Rosdep

rosdep install UWSim
$ rosdep install UWSim
All required rosdeps installed successfully
dpkg -l openscenegraph
Desitjat=desconegUt/Instaŀla/supRimeix/Purga/retín(H)
| Estat=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Estat,Err: majúsc.=dolent)
||/ Nom                                     Versió                                 Descripció
+++-=======================================-=======================================-==============================================================================================
ii  openscenegraph                          3.0.0-2ubuntu1                          3D scene graph, utilities and examples (binaries)
edit flag offensive delete link more

Comments

Ubuntu 11.10 with an asus n55s I've to say that this kind of new laptops has problems with the graphics due to the dual graphics card.

apalomer gravatar image apalomer  ( 2012-06-07 00:10:54 -0500 )edit
0

answered 2012-06-06 23:35:56 -0500

Mario Prats gravatar image

Hi, could you please post the output of rosdep in case it gives some error?

rosdep install UWSim

Which distro and version are you using? Finally, please check if openscenegraph has been installed. If you are on a deb-based system:

dpkg -l openscenegraph

Should be automatically installed by rosdep, but it seems there are some libraries missing...

edit flag offensive delete link more
0

answered 2014-09-12 23:02:44 -0500

Cong Wang gravatar image

Hi,

I have some problems on using command "rosrun uwsim uwsim" to run uwsim following errors are showing:

Jack@Jack:~$ rosrun uwsim uwsim Starting UWSim...
. Setting localized world: 6.1e-05s
Loading URDF robot...
· robot/GIRONA500/g500_March11.osg: 2.67438s · robot/ARM5E/ARM5E_part0.osg: 0.082435s · robot/ARM5E/ARM5E_part1.osg: 0.119529s · robot/ARM5E/ARM5E_part2.osg: 0.127205s · robot/ARM5E/ARM5E_part3.osg: 0.439133s · robot/ARM5E/ARM5E_part4_base.osg: 0.420119s · robot/ARM5E/ARM5E_part4_jaw1.osg: 0.065359s · robot/ARM5E/ARM5E_part4_jaw2.osg: 0.058875s
· Linking links.../opt/ros/groovy/lib/uwsim/uwsim: line 20: 25729 Segmentation fault (core dumped) rosrun uwsim uwsim_binary --dataPath ~/.uwsim/data $@

Thank you for your help!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-06 22:53:19 -0500

Seen: 1,533 times

Last updated: Sep 12 '14