Repository navigation
Description
Task
Continue #1332 with explicit Qt SDK interfaces for Cargo native builds. Handoff draft: #1868, branch infra/1332-qt-sdk-interfaces, documentation commit 64f9d36b5.
The draft contains a detailed handoff only. There is no unmerged SDK implementation or RED test to resume. Completed milestones #1805, #1844, #1853, and #1856 are already merged; CMake remains authoritative.
Problem
The canonical graph supports Qt generation and runtime environment handling, but rust/obs-build/src/qt.rs still selects tools through explicit OBS_QT_* overrides or Qt6Core pkg-config libexecdir. Generic package discovery in libobs::add_package does not establish native Windows Qt import-library/runtime-DLL or macOS framework interfaces for the complete Cargo application. Cross builds need separate host tools and target SDK inputs.
Scope and acceptance
- Define explicit target SDK and host tool inputs; prevent ambient host pkg-config from silently selecting target libraries.
- Resolve canonical Core/Gui/Widgets interfaces and transitive dependencies, including headers, definitions, compiler/linker options, artifacts and runtime plugin/library paths.
- Validate real SDK versions, architecture, debug/release configuration, CRT, library naming and layout. Keep platform behavior under src/platform/; do not guess paths or use CMake as a substitute build authority.
- Bind moc/uic/rcc to host tools without process-wide environment mutation.
- Add RED then GREEN coverage in the existing application test binary. Prove real Qt generation and the unchanged remux queue test through Cargo and CMake consumers.
- Validate native Windows/macOS SDK behavior through existing lanes. No new workflow files; record evidence and unsupported configurations explicitly.
- Update the shared build documentation and report remaining build: replace CMake with Cargo and cc::Build, preserving the complete OBS application #1332 gaps without claiming parent completion.
Entry points and research links are in docs/rust-port/cargo-build-handoff.md on #1868. Full application orchestration, packaging, cache measurements, saved-profile runtime proof and eventual CMake retirement remain parent work, beyond this unit.
Handoff constraints
The outgoing agent is stopping at the user's request; this issue is available for the next agent to claim. Work one unit at a time in the existing checkout, without Git worktrees. Preserve the unrelated local plugins/obs-browser mismatch. Follow repository testing and coordination policies; use soldr cargo and uv run/uvx. Preserve C tests/public headers and the eight test categories. No admin merges.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 23, 2026
Claiming: #1869 (picking up the #1868 handoff).
Plan, one PR per unit:
OBS_QT_HOST_PREFIXfor host tools (moc/uic/rcc) andOBS_QT_TARGET_PREFIXfor the target SDK, resolved from the SDK's own layout (qmake/qtpaths-stylelib/,include/,libexec/bin). Ambient pkg-config is not used once a prefix is given. RED tests in the existing application test binary first, then GREEN.src/platform/, checked against real SDKs in the existing lanes.The first PR is expected today.
fix(build): normalize Qt SDK paths to the host's separators (#1869)
style(build): rustfmt Qt SDK tests (#1869)
test(build): RED explicit Qt SDK interface contracts (#1869)
build: resolve explicit Qt SDK interfaces for Cargo native builds (#1869
fix(build): normalize Qt SDK paths to the host's separators (#1869)
style(build): rustfmt Qt SDK tests (#1869)
test(build): RED explicit Qt SDK interface contracts (#1869)
build: resolve explicit Qt SDK interfaces for Cargo native builds (#1869
fix(build): normalize Qt SDK paths to the host's separators (#1869)
style(build): rustfmt Qt SDK tests (#1869)
test(build): RED explicit Qt SDK interface contracts (#1869)
build: resolve explicit Qt SDK interfaces for Cargo native builds (#1869
fix(build): normalize Qt SDK paths to the host's separators (#1869)
style(build): rustfmt Qt SDK tests (#1869)
test(build): RED explicit Qt SDK interface contracts (#1869)
build: resolve explicit Qt SDK interfaces for Cargo native builds (#1869
fix(build): normalize Qt SDK paths to the host's separators (#1869)
style(build): rustfmt Qt SDK tests (#1869)
zackees commentedon Oct 23, 2026
Fixed by #1877 (merged via the merge queue). Cargo native builds now resolve Qt from an explicit SDK:
OBS_QT_TARGET_PREFIX/OBS_QT_HOST_PREFIX(plus per-toolOBS_QT_MOC/UIC/RCCoverrides), read from the SDK's exported CMake targets, with architecture, Qt 6 version and tool-version checks. Validated against the published obs-studio-libsqt6-6.11.1Linux, Windows and macOS SDKs, and end to end on Linux with no system Qt. Docs: docs/rust-port/cc-build.md (Explicit Qt SDK inputs). Follow-up for native Windows/macOS compile-and-run: #1878.build: resolve explicit Qt SDK interfaces for Cargo native builds (ob…