diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt index 79e15624f1f..7673817d3ba 100644 --- a/modules/rgbd/CMakeLists.txt +++ b/modules/rgbd/CMakeLists.txt @@ -7,5 +7,7 @@ if(NOT HAVE_EIGEN) endif() if(HAVE_OPENGL) - ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}") + find_package(GLEW) + + ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" "${GLEW_LIBRARIES}") endif() diff --git a/modules/rgbd/src/dynafu.cpp b/modules/rgbd/src/dynafu.cpp index 3cef71f3e0e..a4d0e286931 100644 --- a/modules/rgbd/src/dynafu.cpp +++ b/modules/rgbd/src/dynafu.cpp @@ -23,7 +23,7 @@ # define WIN32_LEAN_AND_MEAN # include #endif -# include +# include #endif // GL Extention definitions missing from standard Win32 gl.h