Skip to content

Build the orca and speech-dispatcher Wine bridges on Windows - #126

Merged
ethindp merged 1 commit into
ethindp:masterfrom
trypsynth:fix/windows-manifest-lists-unix-bridges
Sep 18, 2026
Merged

ethindp merged 1 commit into
ethindp:masterfrom
trypsynth:fix/windows-manifest-lists-unix-bridges

Conversation

@trypsynth

@trypsynth trypsynth commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

prism_declare_backend matches PLATFORM against the platform being configured, so PLATFORM UNIX on orca and speech_dispatcher makes it return before it adds the source. On Windows neither file compiles, so the #elifdef _WIN32 Wine bridge half of each one never builds and nothing imports from the bridge DLLs. The Windows manifest does list both import libraries, which is why a static consumer gets LNK4199 for them.

Declaring both as UNIX WINDOWS builds the bridge halves. The pkg-config loop needed a guard too, since PkgConfig is only found on Unix and that loop now runs on a Windows configure.

Verified on an x64 MSVC static build: orca.obj and speech_dispatcher.obj are produced, they carry __imp_prism_orca_* and __imp_prism_speechd_*, and the linked exe delay loads all five DLLs from prism-static-windows.txt with no LNK4199.

@ethindp

ethindp commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

I do not get these warnings when I build it; is this an Aarch64 thing?

We build these import libraries because the bridges are wine components and therefore must be built to target winegcc, which is a special target. The winebridges are loaded in wine emulation (hence the check for wine_get_version in the bridges/win32 side of those backends) which is why we generate import libraries for them.

That said, the winebridges are (currently) x64 only, since winegcc (for some reason) does not support any other architectures (which I think is a wine bug but am not sure for certain).

@trypsynth

trypsynth commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor Author

You're right, they're Wine components, and I had the cause backwards.

The real bug is that both backends declare PLATFORM UNIX, so prism_declare_backend returns before adding the source on a Windows configure and the #elifdef _WIN32 half never compiles. That is why nothing imports from the bridges.

Repushed as that fix, with the build evidence in the description.

@trypsynth
trypsynth force-pushed the fix/windows-manifest-lists-unix-bridges branch from e258cdc to 49a11af Compare September 18, 2026 18:56
@trypsynth trypsynth changed the title Don't build Windows import libraries for the Unix-only bridges Build the orca and speech-dispatcher Wine bridges on Windows Sep 18, 2026
@trypsynth
trypsynth force-pushed the fix/windows-manifest-lists-unix-bridges branch from 49a11af to e366e09 Compare September 18, 2026 19:39
@ethindp
ethindp merged commit 4f662c8 into ethindp:master Sep 18, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants