Open traversaro opened 4 months ago
No, the glew think was just a big spurious correlation. The actual reason for the error is if you start gz sim in a working directory in a partition different from the one in which gz-rendering is installed.
This was interesting. The message actually signals that something is wrong with OGRE2_RESOURCE_PATH
, as reported in https://github.com/gazebosim/gz-rendering/issues/596 .
The problem is in https://github.com/gazebosim/gz-rendering/blob/9f397e12fb013a4ce94f629d1a65df0bbe41f675/ogre2/src/Ogre2RenderEngine.cc#L163, where the OGRE2_RESOURCE_PATH
is splitted using :
as a separator, while on Windows ;
should be used. So C:/this/is/the/ogre2/resource/path
gets actually converted to C
(that is not a valid path) and /this/is/the/ogre2/resource/path
, that indeed is a valid path, as long as the currently active partition is C:
, while it stops being a valid path once the active partition is something else.
Solution to issue cannot be found in the documentation.
Issue
gz sim -g fails on Windows with error:
Interestingly, as soon as glew 2.1.0 is installed, everything works fine. I guess if there is some hidden dependencies on glew.
Installed packages
Environment info