On 07.04.2017 21:59, Atri Bhattacharya wrote:
On Thu, 2017-04-06 at 15:58 +0200, Kshitij Kulshreshtha wrote:
Hello,
applications using vtk-7.1.0-1.3 on Tumbleweed currently crash on my machine with NVidia GeForce 9300. The error message says that vtk requires OpenGL version 3.2 but glxinfo shows
OpenGL version string: 2.1.2 NVIDIA 375.39 OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Is there any way of making vtk library work with older graphic cards that don't have OpenGL 3.2 support without having to recompile it from source?
Hi Kshitij, I don't think there is, unfortunately. As far as I understand, vtk defaults to compiling against OpenGL >= 3.0, but passing the following option -DOPENGL_ES_VERSION=2.0 \ to cmake should make it compile against GL = 2.0 and probably make it work on older graphics. Would you be kind enough to give the vtk package from my branch repository [1] a go, when it is ready (it is currently building)? I have modified the spec file to pass this option, so we will be able to find out if this makes it work on your system, and if it does, we might then try to get a vtk-gl2 package into science .
Thanks a bunch.
[1] http://download.opensuse.org/repositories/home:/badshah400:/branches:/scienc... or from obs https://build.opensuse.org/package/show/home:badshah400:branches:science/vtk
Hello Atri, Your package seems to have a build failure. I have successfully compiled and tested the package in my own branch [1]. The CMake option is a little bit different thant the one you suggested. Strangely the vtk package uses OpenGL version 3.2 if the rendering backend is "OpenGL2" but uses OpenGL version 2.1 if the rendering backend name is "OpenGL". The package at [1] works well on my system. How should we go about making a vtk-gl2 package [1] http://download.opensuse.org/repositories/home:/polyconvex:/branches:/scienc... or https://build.opensuse.org/package/show/home:polyconvex:branches:science/vtk Thanks. Kshitij -- Dr. Kshitij Kulshreshtha Institut für Mathematik, Universität Paderborn, Warburger Straße 100, 33098 Paderborn. Büro: TP21.1.21 Besucheradresse: Technologiepark 21 33098 Paderborn. Privatanschrift: Arnikaweg 62 33100 Paderborn. -- Dr. Kshitij Kulshreshtha Institut für Mathematik, Universität Paderborn, Warburger Straße 100, 33098 Paderborn. Büro: TP21.1.21 Besucheradresse: Technologiepark 21 33098 Paderborn. Privatanschrift: Arnikaweg 62 33100 Paderborn. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org