opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

Fixing compilation errors related to OpenGL

Open du-xinyi opened this issue 1 year ago • 4 comments

Fixes https://github.com/opencv/opencv_contrib/issues/3596

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • [x] I agree to contribute to the project under Apache 2 License.
  • [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • [x] The PR is proposed to the proper branch
  • [x] There is a reference to the original bug report and related work
  • [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.
  • [x] The feature is well documented and sample code can be built with the project CMake

du-xinyi avatar Jan 11 '24 15:01 du-xinyi

@du-xinyi Please share your issue description. I just build OpenCV with contrib and enabled OpenGL. It works just fine and passed tests on Ubuntu.

asmorkalov avatar Jul 15 '24 14:07 asmorkalov

@du-xinyi请分享您的问题描述。我刚刚使用 contrib 构建了 OpenCV 并启用了 OpenGL。它运行良好并通过了 Ubuntu 上的测试。

I encountered an issue related to GL when compiling on Ubuntu 20.04. The detailed error message is available at this link. The missing function is located in gl/glew.h.

du-xinyi avatar Jul 15 '24 16:07 du-xinyi

I made experiments with Ubuntu 18.04, 20.04 and 24.04. Only Ubuntu 24.04 provides QT6 package (6.4.2). All the combinations were built just fine and passed tests. Looks like your QT build is not complete.

asmorkalov avatar Jul 17 '24 09:07 asmorkalov

我使用 Ubuntu 18.04、20.04 和 24.04 进行了实验。只有 Ubuntu 24.04 提供了 QT6 包 (6.4.2)。所有组合都构建得很好,并通过了测试。看来您的 QT 构建不完整。

I built qt using qt's online installer. glGenRenderbuffersEXT These functions are not currently in '/usr/include/GL/gl.h', but the missing functions can be found in '/usr/include/GL/glew.h'

du-xinyi avatar Jul 17 '24 17:07 du-xinyi