OpenGL on Jetson NX

Can anybody tell me how to install OpenGL on my Xavier NX.
I used sudo apt-get install python3-opengl but it seems that my pyCUDA installation was compiled without GL extension support:

Traceback (most recent call last):
File “SobelFilter.py”, line 30, in
import pycuda.gl as cuda_gl
File “/usr/local/lib/python3.6/dist-packages/pycuda-2019.1.2-py3.6-linux-aarch64.egg/pycuda/gl/init.py”, line 5, in
raise ImportError(“PyCUDA was compiled without GL extension support”)
ImportError: PyCUDA was compiled without GL extension support

I am trying to run the sobel filter example on this website:
https://wiki.tiker.net/PyCuda/Examplesgoogle.com
I want to use it to speed up my code and replace the cv2.Sobel function

Thank you,
Luis

Update:
I was able to rebuild PyCUDA with the FLAG: CUDA_ENABLE_GL = True and OpenGL is running great now.