opencv_contrib-4.8.1-rgbd.patch 477 B

12345678910111213141516
  1. From: Paul Zander <negril.nx+gentoo@gmail.com>
  2. Fixes compilation when using GLVND.
  3. diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt
  4. index 79e1562..eaebc3a 100644
  5. --- a/modules/rgbd/CMakeLists.txt
  6. +++ b/modules/rgbd/CMakeLists.txt
  7. @@ -7,5 +7,5 @@ if(NOT HAVE_EIGEN)
  8. endif()
  9. if(HAVE_OPENGL)
  10. - ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
  11. + ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" GL)
  12. endif()