From 478fc3ecbd4110f471cb5a0ea7ad31c2637f89bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=95=E8=90=BD=E7=9A=84=E9=BB=91=E5=85=89?= <73220784+du-xinyi@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:15:59 +0800 Subject: [PATCH 1/5] Fixing compilation errors related to OpenGL --- modules/rgbd/src/dynafu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 0aa04546cb884e9c72877f0d78e6cd07e76f5006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=95=E8=90=BD=E7=9A=84=E9=BB=91=E5=85=89?= <73220784+du-xinyi@users.noreply.github.com> Date: Thu, 11 Jan 2024 23:15:21 +0800 Subject: [PATCH 2/5] Add OpenGL Extension Wrangler Library --- modules/rgbd/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt index 79e15624f1f..8b23adc8f00 100644 --- a/modules/rgbd/CMakeLists.txt +++ b/modules/rgbd/CMakeLists.txt @@ -7,5 +7,7 @@ if(NOT HAVE_EIGEN) endif() if(HAVE_OPENGL) + find_package(GLEW) + ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}") endif() From a1e6067ff3c2891e049524b93e9a9ffd7abdc734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=95=E8=90=BD=E7=9A=84=E9=BB=91=E5=85=89?= <73220784+du-xinyi@users.noreply.github.com> Date: Fri, 12 Jan 2024 19:48:20 +0800 Subject: [PATCH 3/5] Add glew library --- modules/rgbd/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt index 8b23adc8f00..9cafb78bd15 100644 --- a/modules/rgbd/CMakeLists.txt +++ b/modules/rgbd/CMakeLists.txt @@ -9,5 +9,5 @@ endif() if(HAVE_OPENGL) find_package(GLEW) - ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}") + ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" "${GLEW_LIBRARIES}") endif() From 758eae8cfc73c2a5f5b2d350d6b5f69b94d026d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=95=E8=90=BD=E7=9A=84=E9=BB=91=E5=85=89?= <73220784+du-xinyi@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:24:52 +0800 Subject: [PATCH 4/5] Update CMakeLists.txt --- modules/rgbd/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt index 9cafb78bd15..ca261d7c704 100644 --- a/modules/rgbd/CMakeLists.txt +++ b/modules/rgbd/CMakeLists.txt @@ -8,6 +8,5 @@ endif() if(HAVE_OPENGL) find_package(GLEW) - ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" "${GLEW_LIBRARIES}") endif() From 39b3608409644f7e48abd587a51a19e705575ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=95=E8=90=BD=E7=9A=84=E9=BB=91=E5=85=89?= <73220784+du-xinyi@users.noreply.github.com> Date: Sat, 13 Jan 2024 17:27:00 +0800 Subject: [PATCH 5/5] Add glew library --- modules/rgbd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/rgbd/CMakeLists.txt b/modules/rgbd/CMakeLists.txt index ca261d7c704..7673817d3ba 100644 --- a/modules/rgbd/CMakeLists.txt +++ b/modules/rgbd/CMakeLists.txt @@ -8,5 +8,6 @@ endif() if(HAVE_OPENGL) find_package(GLEW) + ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}" "${GLEW_LIBRARIES}") endif()