On 2017-04-13 00:25, Kshitij Kulshreshtha wrote:
On 2017-04-12 00:18, Atri Bhattacharya wrote:
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.
Thank you for the pointer to webkitgtk3. I'll try to emulate that, however I believe we might also need to make the two packages conflict with each other. Since they provide the same shared libraries, one calling OpenGL 3.2 and the other calling OpenGL 2.1 functionality, so that any application can either link to one or the other. However both should not be present on a system simultaneously. Do you agree?
Best wishes Kshitij.
In fact in order to avoid confusion for users, whether they should install the vtk or the vtk-opengl2 package, why not we be consistent and call the two packages vtk-opengl3 and vtk-opengl2? Best wishes Kshitij -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org