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

Starting rviz, failed to initialize ogre, cannot find RenderSystem_GL.so

asked 2011-02-25 05:28:48 -0600

Murph gravatar image

updated 2011-03-07 06:44:12 -0600

Found an answer. See my answer below (guess I can't accept my own)

Setting up things on my (gentoo) desktop.

Command line output just about says everything:

$ rosrun rviz rviz
Failed to initialize Ogre: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library RenderSystem_GL.  System Error: RenderSystem_GL.so: cannot open shared object file: No such file or directory in DynLib::load at /home/murph/ros/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreDynLib.cpp (line 91)
[ERROR] [1298662054.238455770]: Caught exception while loading: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library RenderSystem_GL.  System Error: RenderSystem_GL.so: cannot open shared object file: No such file or directory in DynLib::load at /home/murph/ros/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreDynLib.cpp (line 91)                                                                                                                                                  
murph@murph ~/ros $ find . | grep -i RenderSystem_GL.so
./visualization_common/ogre/ogre/lib/OGRE/RenderSystem_GL.so
./visualization_common/ogre/build/ogre_src_v1-7-1/build/lib/RenderSystem_GL.so

My hardware: 01:00.0 VGA compatible controller: ATI Technologies Inc RV620 [FirePro 2260]

And my drivers: x11-drivers/xf86-video-ati version 6.13.1

[edit] I found this: https://code.ros.org/gf/project/ros/m...

Which sounds similar. I copied RenderSystem_GL.so, Plugin_OctreeSceneManager.so, and Plugin_ParticleFX.so up a folder as indicator (one by one as they were pointed out as missing), but now it cannot find Plugin_CgProgramManager.so which I do not have anywhere.

[edit 2] When doing 'make' after 'make wipe' on the ogre subtree, I see this:

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ OpenGL ES: Support for the OpenGL ES 1.x render system <http: www.khronos.org="" opengles=""/>
+ cg: C for graphics shader language <http: developer.nvidia.com="" object="" cg_toolkit.html="">
+ POCO: POCO framework <http: pocoproject.org=""/>
+ tbb: Threading Building Blocks <http: www.threadingbuildingblocks.org=""/>
+ Doxygen: Tool for building API documentation <http: doxygen.org="">
+ CppUnit: Library for performing unit tests <http: cppunit.sourceforge.net="">
-----------------------------------------------------------------------------

Notice that cg is included there. So perhaps the configure scripts can't find my Cg libraries (they are installed)? I'm no cmake wizard, though.

edit retag flag offensive close merge delete

Comments

Could you update your question to include your graphics card and driver version.
tfoote gravatar image tfoote  ( 2011-02-25 06:05:44 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2011-03-07 06:17:01 -0600

Murph gravatar image

Looks like the ogre setup doesn't search the right locations for you Cg libraries on Gentoo. Set this before you run make wipe && make in the ogre subfolder.

export Cg_HOME=/opt/nvidia-cg-toolkit
Also, it seems that for some reason gentoo systems end up putting some of the .so files in the wrong folder, so we'll need to move them afterwards.
export Cg_HOME=/opt/nvidia-cg-toolkit 
cd ~/ros/visualization_common/ogre       <-- obviously change this location if required
make wipe && make
rosmake rviz
cp ogre/lib/OGRE/*.so ogre/lib/
rosrun rviz rviz

Of course, now it segfaults. But I'm sure that's something different.

edit flag offensive delete link more
0

answered 2011-03-06 04:10:20 -0600

Paul Vernaza gravatar image

IIRC, I was getting a similar error compiling rviz on my Mac, and installing Cg seems to have fixed it. I think Ogre may configure itself to not build that library if Cg (or maybe some other dependency) is not present, or something.

edit flag offensive delete link more

Comments

I have "nvidia-cg-toolkit-2.1.0017" installed.
Murph gravatar image Murph  ( 2011-03-07 03:39:41 -0600 )edit
Looks like a run-time link error. Maybe the library rpath is not getting set correctly? Try 'readelf -d ./visualization_common/ogre/ogre/lib/OGRE/RenderSystem_GL.so', and look for an RPATH line. It should be set to .../visualization_common/ogre/ogre/lib/.
Paul Vernaza gravatar image Paul Vernaza  ( 2011-03-07 05:23:17 -0600 )edit
0

answered 2012-01-11 12:19:49 -0600

smash0190 gravatar image

Also look at this answer. There are some path issues in plugin.cfg in the default setup: http://answers.ros.org/question/3500/rvizrviz_qt-ogre-dynlib_load-mac-lion

edit flag offensive delete link more
0

answered 2011-03-06 03:47:37 -0600

tfoote gravatar image

At a second glance it looks like you might not have build ogre. Did you run a rosmake of rviz? And if so try a make wipe && make in the ogre directory and then rerun rosmake rviz

edit flag offensive delete link more

Comments

Tried wipe/make/rosmake, get the same thing.
Murph gravatar image Murph  ( 2011-03-07 03:38:45 -0600 )edit

Question Tools

Stats

Asked: 2011-02-25 05:28:48 -0600

Seen: 4,320 times

Last updated: Jan 11 '12