mesonbuild / mesonbuild/wrapdb
SDL3_ttf and SDL3_image link error when using MSVC
Nobody has claimed this yet.
- Dominant language
- Meson
- Stars
- 118
- Forks
- 298
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 24
Description
When using MSVC it does not generate the library and fails to compile, solved by copying this from SDL3 meson.build
```
if get_option('default_library') == 'shared'
extra_args = ['-DDLL_EXPORT']
else
extra_args = []
endif
```
and adding `c_args: extra_args` in the `library()` part
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the SDL3_ttf and SDL3_image meson.build files with the SDL3 meson.build excerpt in the issue, focusing on each library() definition. Verify the change with an MSVC build; done means both libraries are generated and link without the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100