glXGetCurrentDisplay missing?

Hi,

I am trying to build the OpenSubdiv library on the Jetson Nano with CUDA.

Without enabling the CUDA option, library links and runs fine with the hardware accelerated OpenGL but when I enable CUDA, I get the following errors.

  cudaDeviceContext.cpp:(.text+0xcc): undefined reference to `glXGetCurrentDisplay'

Is the CUDA libraries for Jetson meant only for compute but not for display purposes ?

Cheers

Hi,
Is it possible certain X library in not installed? We don’t have experience of running OpenSubdiv on Jetson platforms, but it seems like it cannot find glXGetCurrentDisplay(). Probably ca work by adding -lcertainLibrary.

Building other parts of OpenSubdiv also requires X11 libraries and libraries like GLFW (OpenGL windowing framework) and those works fine so I was thinking that all the required X11 libraries are present.

I was also hoping that with nVidia work on Omniverse which leverages USD which link with OpenSubdiv, there might be some expertise in house.

I will continue investigating.

Cheers