FS#72249 - [ogre] RenderingAPIException and outdated build options
Attached to Project:
Community Packages
Opened by Ningit (ningit) - Monday, 27 September 2021, 09:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 07 October 2021, 14:06 GMT
Opened by Ningit (ningit) - Monday, 27 September 2021, 09:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 07 October 2021, 14:06 GMT
|
Details
Running any program linked with Ogre (even the sample
browser included in the ogre package) shows the following
fatal error in a fresh installation without any change in
the configuration:
terminate called after throwing an instance of 'Ogre::RenderingAPIException' what(): RenderingAPIException: Fail to make context current in setCurrent at /build/ogre/src/ogre-13.0.1/RenderSystems/GLSupport/src/EGL/OgreEGLContext.cpp (line 137) This is a problem of the Arch package and it can be solved by changing some build arguments in the PKGBUILD. I guess it is OGRE_BUILD_DEPENDENCIES=OFF that solves the issue, but I have removed some more arguments in the attached working PKGBUILD. Some variables passed to Cmake are no longer valid (OGRE_BUILD_COMPONENT_PLANAR_REFLECTIONS, OGRE_BUILD_COMPONENT_SCENE_FORMAT, OGRE_CONFIG_ENABLE_JSON, OGRE_INSTALL_SAMPLES_SOURCE, OGRE_USE_BOOST). Cmake shows a warning about this. The option OGRE_CONFIG_THREADS was set to a deprecated value. The options OGRE_CONFIG_THREAD_PROVIDE and OGRE_BUILD_COMPONENT_RTSHADERSYSTEM were passed their default values. Moreover, rapidjson and zziplib are no longer dependencies of Ogre, and tinyxml has been replaced by pugixml. Steps to reproduce: 1. Install Ogre with pacman -S ogre. 2. Run the just installed /opt/ogre/samples/SampleBrowser. 3. The error message above will be printed in the terminal. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 07 October 2021, 14:06 GMT
Reason for closing: Fixed
Thursday, 07 October 2021, 14:06 GMT
Reason for closing: Fixed
Now, when building either the modified PKGBUILD in the bug report or the original one, the compiler fails with errors about invalid conversions from NativeDisplayType to Display*. The same happens if I install the old versions of the (direct) dependencies that I had when the build worked.