Closed danini-the-panini closed 8 years ago
UPDATE After playing around a bit, I found that manually passing in the location of the nvidia libGL.so
fixed the problem,
OpenGL.load_lib('libGL.so', '/usr/lib/nvidia-361')
$ ruby report_env.rb
Version: 4.5.0 NVIDIA 361.42
Extensions:
...
So, the problem is now that ruby-opengl does not seem to automatically pick up the correct location of libGL.so
like other opengl programs. Perhaps special consideration needs to be made for proprietary drivers?
The method 'load_lib' does not provide any automatic search feature. Users must give 'load_lib' appropriate path strings manually.
And, sorry, I don't use Linux as a desktop environment now and can't examine your problem. This might help:
No problem, thank you for clearing that up for me. :+1:
I am running Ubuntu 16.04 with a ASUS GTX670 DirectCU II, using drivers from package
nvidia-361
, and I am running into the following issue on both version 1.6.0 and the master branch:However, running glxgears works fine, and I have been playing the steam version of ARK with no issues.
It looks like the opengl bindings are trying to load a software rasterizer instead of the nvidia drivers.
I checked, and I definitely have a DRI device:
glxinfo reports the following:
Ruby version:
I think it has something to do with loading 32-bit drivers (it seems I only have 64-bit drivers installed), but that doesn't make sense since Ruby has been compiled for 64-bit architecture.
I'm not sure if this is a problem with ruby-opengl or my system, but any assistance would be much appreciated.