Skip to content

frontend: Link pdh for the GPU status on Windows - #1238

Merged
zackees merged 1 commit into
masterfrom
fix/gpu-status-pdh
Oct 17, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/gpu-status-pdh

Conversation

@zackees

@zackees zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member

Master's Windows x64 build fails at the final link of obs64.exe (full run 39033323680):

obs_gpu_status_frontend.lib(...) : error LNK2019: unresolved external symbol __imp_PdhOpenQueryW ...

PdhOpenQueryW is one of five unresolved PDH functions.

Cause: #1228 reads the Windows GPU engine counters through PDH. The crate declares #[link(name = "pdh")], but a Rust static library's link directives don't reach the final MSVC link.

Fix: frontend/cmake/feature-gpu-status.cmake links pdh on Windows, next to the static library.

Verification:

  • ./lint passes.
  • Nothing local can run the Windows link, so the full run after merge checks it.

#1228 reads the Windows GPU engine counters through PDH; the crate's
#[link(name = "pdh")] doesn't reach the final link of a Rust staticlib, so
obs64.exe failed with LNK2019 on PdhOpenQueryW and four more (master full run
39033323680). The frontend links pdh on Windows next to the staticlib.
@zackees
zackees merged commit af6ba05 into master Oct 17, 2026
@zackees
zackees deleted the fix/gpu-status-pdh branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant