mesonbuild / mesonbuild/wrapdb

SDL3 does not build with OpenGL when using VS Backend

Open
#2,378 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Meson
Stars
118
Forks
298
Avg merge
2d 2h
Merged PRs (30d)
24

Description

When building with the vs backend, opengl will not be built into SDL3. It will build in OpenGL support on Windows with MingW, and on Linux. I'm not quite sure what the issue is. I have tried including opengl as a required dependency, but that also leads to the same result. below is the meson.build file (project name ommitted). sdl3 is using the wrap provided, but gl is meant to be found on the system.

```
project('proj', 'cpp', default_options: ['default_library=static', 'backend_startup_project=proj'])

gl_dep = dependency('gl', method: 'system', required: true)
sdl3_dep = dependency('sdl3', required: true)

sources = [
'main.cpp'
]

executable('proj', sources, dependencies: [sdl3_dep, gl_dep])
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the meson.build example in the issue and reproduce the dependency behavior using the VS backend, comparing it with MinGW on Windows and Linux. Trace how the sdl3 and gl dependencies are resolved; done means OpenGL support is included when building SDL3 with the VS backend.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.