Skip to content

macOS 26 build fails: constexpr wxMediaState casts rejected by AppleClang 21 #485

@BenJule

Description

@BenJule

RC macOS-26 Build BambuStudio fails:

wxMediaCtrl2.h:47: error: constexpr variable 'MEDIASTATE_BUFFERING' must be initialized by a constant expression
MediaPlayCtrl.h:92-95: error: constexpr variable 'MEDIASTATE_*' ...

AppleClang 21 (Xcode 26.4) treats the C-cast (wxMediaState)N as non-constexpr. Fix: static inline const (a fork patch that was dropped in the 2.7.1 update). macOS 15 / Linux / Windows are unaffected (older toolchains accept the cast).

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions