Skip to content

build: Windows NVENC twins collide on import-library and export-object outputs #1626

Closed

Description

@zackees

Bug

The Windows build gives obs-nvenc and obs-nvenc-with-rust the same import-library/export-object paths. Both have OUTPUT_NAME obs-nvenc; only LIBRARY_OUTPUT_DIRECTORY differs. This already isolates the MODULE DLL; its import/export artifacts still use the shared archive output directory.

Reproduction / evidence

Full native CI run https://github.com/obs-rust/obs-studio/actions/runs/39634088997/job/119340768888 (unrelated VST PR #1625):

  • 16:27:40 and 16:27:47: both links create build_x64/plugins/obs-nvenc/RelWithDebInfo/obs-nvenc.lib and obs-nvenc.exp.
  • obs-nvenc-with-rust.vcxproj then fails with LNK1104: cannot open file .../obs-nvenc.exp.
  • plugins/obs-nvenc/CMakeLists.txt sets the Rust twin's library directory but omits runtime/archive directories. Earlier successful native logs confirm the DLL paths are already separate; the collision is specifically the .lib/.exp pair.

Expected / scope

Keep the installed production plugin path/name unchanged. Put the Rust twin's archive artifacts in its existing dedicated library directory, preserving both DLL paths and parity filenames. Add RED coverage that evaluates the actual CMake artifact destinations and demonstrates distinct DLL/import-library paths for both variants, then GREEN and native Windows validation through the normal merge queue. No C test or public C header changes.

This blocks reliable native validation of #854; that claim is released while this is handled sequentially.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. zackees commented on Oct 21, 2026

    @zackees
    MemberAuthor

    Claiming: Windows NVENC twin artifact isolation. 1. Reproduce output collisions using the actual CMake target properties in a focused RED fixture. 2. Isolate runtime/archive outputs alongside the existing library output while preserving production paths and parity filenames. 3. Run native Windows app validation, PR CI and normal merge queue, then return to released #854. First draft PR today.

  3. changed the title [-]build: Windows NVENC twins collide on DLL and import-library outputs[/-] [+]build: Windows NVENC twins collide on import-library and export-object outputs[/+] on Oct 21, 2026
  4. added
    claimed
    on Oct 21, 2026
  5. zackees commented on Oct 21, 2026

    @zackees
    MemberAuthor

    Fixed by #1627 (merge e5a0f4f). The Rust twin now has a separate archive directory. Native Windows x64/ARM64 app builds passed; x64 linker logs show distinct .lib/.exp prefixes and unchanged DLL paths. CMake regression fixtures cover single/multi-config Windows and unchanged Linux/macOS module destinations. PR CI and merge-result CI 39638161435 passed. The extra full run had a canceled macOS ARM64 app job and is not claimed as full green. No remaining work for this Windows artifact issue.

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

    bugclaimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions