I’m new here and I can’t execute CUDA SDK code samples that use OpenGL. For instance starting the fluidsGL example results in error:
[fluidsGL] - [OpenGL/CUDA simulation] starting…
OpenGL device is Available
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 137 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x3a00002
Serial number of failed request: 50
Current serial number in output stream: 50
I think OpenGL is not installed on my machine because if I try: “glxinfo | grep rendering” I get suggestion from Ubuntu to install: “sudo apt-get install mesa-utils”
I did it and now on glxinfo request I get the same error like if I execute fluidsGL.
Does anyone have any ideas how can I get OpenGL working?
The driver and SDK seems to be correctly installed, because another samples work well and all checks from “NVIDIA CUDA C Getting started guide for Linux” I passed successfully.
Here is a description what I’ve done:
I have i7 Intel processor and two GTX 460.
I’ve installed following packages:
The PATH and LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib: are set. The latter in .bashrc and in /etc/ld.so.conf.d/cuda.conf.
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
sudo rm libGL.so
sudo ln -s libGL.so.1 libGL.so