[vlc-commits] [Git][videolan/vlc][master] meson: fix OpenGL Windows build
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Jul 4 10:41:45 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
83393726 by Steve Lhomme at 2026-07-04T12:21:46+02:00
meson: fix OpenGL Windows build
Regression from 85c9ce94bb1d1f520aafb615b0e4189c2e47a9d0.
In file included from ../../../vlc/modules/video_filter/gladjust.c:33:
In file included from ../../../vlc/modules/video_output/opengl/gl_api.h:33:
../../../vlc/modules/video_output/opengl/gl_common.h:45:13: fatal error: 'GL/glew.h' file not found
45 | # include <GL/glew.h>
| ^~~~~~~~~~~
1 error generated.
- - - - -
1 changed file:
- modules/video_output/opengl/meson.build
Changes:
=====================================
modules/video_output/opengl/meson.build
=====================================
@@ -6,6 +6,11 @@ if host_system == 'darwin'
opengl_headers_c_args += ['-DGL_SILENCE_DEPRECATION']
endif
+opengl32_lib = cc.find_library('opengl32', required: false)
+if have_win_desktop and opengl32_lib.found() and not missing_win_glew
+ opengl_headers_c_args += contrib_inc_args
+endif
+
gl_common_dep = declare_dependency(
sources: files(
'filter.c',
@@ -147,7 +152,6 @@ vlc_modules += {
}
# interop_dxva2
-opengl32_lib = cc.find_library('opengl32', required: false)
dxva2_dep = cc.find_library('dxva2', required: false)
vlc_modules += {
'name' : 'glinterop_dxva2',
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/833937264a466e083eef06286457403823e6312f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/833937264a466e083eef06286457403823e6312f
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list