mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 05:17:19 +00:00
deps: disable FFmpeg VideoToolbox/AudioToolbox HW-accel on macOS
The static libavcodec.a/avutil.a compiled the auto-detected videotoolbox/audiotoolbox objects, which reference VideoToolbox framework symbols (_VTDecompressionSession*). The app link line happened to satisfy them transitively, but the orca_stubgen module link (CI-only) failed with undefined symbols. The player decodes in software (swscale), so disable both HW-accel paths to keep the static libs self-contained. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
deps/FFMPEG/FFMPEG.cmake
vendored
5
deps/FFMPEG/FFMPEG.cmake
vendored
@@ -27,7 +27,10 @@ else ()
|
|||||||
"--extra-ldflags=-mmacosx-version-min=${DEP_OSX_TARGET}"
|
"--extra-ldflags=-mmacosx-version-min=${DEP_OSX_TARGET}"
|
||||||
)
|
)
|
||||||
# Static FFmpeg: nothing to bundle into the .app, no rpath handling.
|
# Static FFmpeg: nothing to bundle into the .app, no rpath handling.
|
||||||
set(_link_cmd --enable-static --disable-shared)
|
# Disable the VideoToolbox/AudioToolbox HW-accel paths: the player decodes
|
||||||
|
# in software (swscale), and the auto-detected HW objects would drag in
|
||||||
|
# system frameworks that the static libs would then depend on.
|
||||||
|
set(_link_cmd --enable-static --disable-shared --disable-videotoolbox --disable-audiotoolbox)
|
||||||
if (IS_CROSS_COMPILE)
|
if (IS_CROSS_COMPILE)
|
||||||
set(_cross_cmd --enable-cross-compile)
|
set(_cross_cmd --enable-cross-compile)
|
||||||
set(_pic_cmd --enable-pic)
|
set(_pic_cmd --enable-pic)
|
||||||
|
|||||||
Reference in New Issue
Block a user