Skip to content

build: resolve explicit Qt SDK interfaces for Cargo native builds #1869

Closed

Description

@zackees

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.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Claiming: #1869 (picking up the #1868 handoff).

    Plan, one PR per unit:

    1. Explicit Qt SDK inputs: OBS_QT_HOST_PREFIX for host tools (moc/uic/rcc) and OBS_QT_TARGET_PREFIX for the target SDK, resolved from the SDK's own layout (qmake/qtpaths-style lib/, 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.
    2. Core/Gui/Widgets interfaces (Linux shared libs, Windows import libs and DLLs, macOS frameworks) behind src/platform/, checked against real SDKs in the existing lanes.

    The first PR is expected today.

  2. added
    claimed
    on Oct 23, 2026
  3. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    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-tool OBS_QT_MOC/UIC/RCC overrides), read from the SDK's exported CMake targets, with architecture, Qt 6 version and tool-version checks. Validated against the published obs-studio-libs qt6-6.11.1 Linux, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions