On Tue, 2017-04-11 at 13:05 +0200, Kshitij Kulshreshtha wrote:
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:/bra nches:/science/openSUSE_Tumbleweed/ 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: /science/openSUSE_Tumbleweed/ or https://build.opensuse.org/package/show/home:polyconvex:branches:scie nce/vtk
Many thanks for figuring this out and getting the package built. I think the way to have this up in the science, and indeed in Factory, is to have a linked package called vtk-opengl2. Typically one would have two spec files for the vtk package, one called vtk, as now, and the other called vtk-opengl2. The other spec file may be generated from the vtk.spec by applying a diff to it, just to keep the versions of the two consistent etc. See, e.g. how webkitgtk vs webkitgtk3 is handled: https://build.opensuse.org/package/show/openSUSE:Factory/webkitgtk Hope that helps. If you need any help doing this, or indeed if you would rather I do this for the vtk package, please feel free to let me know. Best wishes. -- Atri Bhattacharya Wed 12 Apr 00:12:45 CEST 2017 Sent from openSUSE Tumbleweed on my laptop. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org