RoboStack / ros-noetic

vinca configuration files for ros-noetic
https://robostack.github.io
464 stars 73 forks source link

rviz looking for OgreDynLib.cpp in the wrong place #324

Closed gokulhari closed 1 year ago

gokulhari commented 1 year ago

I installed using robostack, and I found the following issue when trying to start rviz:

[ INFO] [1674157656.417352067]: rviz version 1.14.14 [ INFO] [1674157656.417382377]: compiled against Qt version 5.12.9 [ INFO] [1674157656.417388838]: compiled against OGRE version 1.10.12 (Xalafu) [ INFO] [1674157656.426660251]: Forcing OpenGl version 0. [ERROR] [1674157656.651451240]: InternalErrorException: Could not load dynamic library /home/gokul/mambaforge/envs/ROS/lib/OGRE/RenderSystem_GL. System Error: libXrandr.so.2: cannot open shared object file: No such file or directory in DynLib::load at /home/conda/feedstock_root/build_artifacts/ogre_1666481244237/work/OgreMain/src/OgreDynLib.cpp (line 107) terminate called after throwing an instance of 'Ogre::InternalErrorException' what(): InternalErrorException: Could not load dynamic library /home/gokul/mambaforge/envs/ROS/lib/OGRE/RenderSystem_GL. System Error: libXrandr.so.2: cannot open shared object file: No such file or directory in DynLib::load at /home/conda/feedstock_root/build_artifacts/ogre_1666481244237/work/OgreMain/src/OgreDynLib.cpp (line 107) Aborted (core dumped)

The thing is that I have not installed conda, and rviz is trying to search for OgreDynLib.cpp inside a conda installation.

Tobias-Fischer commented 1 year ago

You need to install libxrandr with apt or similar. Which system are you on?

I don’t understand why you think you do not have conda installed? RoboStack is based on conda :)

gokulhari commented 1 year ago

Hi, thanks for the quick reply. I am using Ubuntu 22.04. Yes I got it running by doing a sudo apt-get install. Thank you!