Skip to content

Windows ARM64 build fails to link: AVVideoDecoder has no implementation for that target #641

Description

@BenJule

After #640 fixed the NEON/SIMD compile errors, the nightly ARM64 build got past compilation entirely and now fails at link time:

libslic3r_gui.lib(wxMediaCtrl3.obj) : error LNK2001: unresolved external symbol "AVVideoDecoder::AVVideoDecoder(void)"
... (6 unresolved externals)
BambuStudio.dll : fatal error LNK1120: 6 unresolved externals

Root cause: CMakeLists.txt excludes AVVideoDecoder.cpp/.hpp from the source list entirely for MSVC ARM64 (no prebuilt libav there), but wxMediaCtrl3.cpp unconditionally #includes the header and uses the class - the header still compiles (it's just a class declaration), but there's no implementation to link against.

Fix: give AVVideoDecoder.cpp a stub implementation (no libav calls) guarded by the existing BAMBUSTUDIO_NO_AVVIDEODECODER define, and always include the file in the source list instead of excluding it. Camera/live-view just reports "no frame" on ARM64 instead of the whole binary failing to link.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions