Closed RGBA-Research closed 1 year ago
Filed as internal issue #OSD-406
I've been able to repro this on my Ubuntu 20.04 system and I was able to workaround the build error by adding the following line to the top-level CMakeLists.txt to have executables link with the glx library:
@@ -492,6 +492,7 @@ elseif(OPENGL_FOUND)
${PROJECT_SOURCE_DIR}/glLoader)
set(OPENGL_LOADER_LIBRARIES
${OPENGL_gl_LIBRARY}
+ ${OPENGL_glx_LIBRARY}
${CMAKE_DL_LIBS})
We'll take a look at getting a proper fix merged. Recommend leaving GLEW support disabled. You're free to use GLEW in your own application, but it makes things cleaner to have OpenSubdiv itself not use GLEW. Thanks!
@davidgyu thank you for the quick reply and the workaround. It worked like a charm when building 3.4.4 and 3.5.0.
Great! Glad you have that working now!
Improved fix has been merged and verified in dev.
Hello, We're aiming to compile OSD 3.5.0 on Ubuntu 20 against CUDA 11.7 for a Quadro RTX 4000 GPU. After changing
compute_20
tocompute_75
inCMakeLists.txt
, we're hitting the followingglX*
related errors, whether GLEW and CUDA are on or off. Of course, we'd like CUDA on.The error:
Here's an example of the cmake command we've tried:
Thank you for having a look,