Skip to content

Fix Windows FFmpeg pkg-config paths#10771

Open
tangkelu wants to merge 2 commits into
bambulab:masterfrom
tangkelu:fix/ffmpeg-pkgconfig-paths
Open

Fix Windows FFmpeg pkg-config paths#10771
tangkelu wants to merge 2 commits into
bambulab:masterfrom
tangkelu:fix/ffmpeg-pkgconfig-paths

Conversation

@tangkelu
Copy link
Copy Markdown

Summary

Fix Windows FFmpeg pkg-config metadata so PkgConfig::LIBAV does not expose relative include paths.

Problem

The installed FFmpeg .pc files on Windows can contain a relative prefix like prefix=./dist, which causes pkg-config to return relative paths such as ./dist/include.

Those paths are propagated into PkgConfig::LIBAV, and CMake then fails while configuring libslic3r_gui because INTERFACE_INCLUDE_DIRECTORIES contains a relative path.

Fix

  • Rewrite FFmpeg .pc files on Windows to use the actual installed prefix
  • Add a defensive normalization step for PkgConfig::LIBAV in src/slic3r/CMakeLists.txt

Result

Windows desktop builds no longer fail at configure time due to relative FFmpeg pkg-config include paths.

@BambulabRobot BambulabRobot requested a review from MackBambu May 26, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant