Skip to content

fix: MSYS2 build compatibility on Windows#1503

Open
7ayun wants to merge 1 commit into
ClassicOldSong:masterfrom
7ayun:fix/msys2-build-compatibility
Open

fix: MSYS2 build compatibility on Windows#1503
7ayun wants to merge 1 commit into
ClassicOldSong:masterfrom
7ayun:fix/msys2-build-compatibility

Conversation

@7ayun

@7ayun 7ayun commented May 24, 2026

Copy link
Copy Markdown

Summary

This PR fixes several build issues encountered when building Apollo on Windows using MSYS2 UCRT64.

Changes

cmake/dependencies/Boost_Sunshine.cmake
Remove the version constraint from . MSYS2 ships Boost 1.91.0 but the cmake script required exactly 1.89.0, causing the build to fall back to FetchContent unnecessarily. Removing allows any compatible version to be used.

src/video.cpp
Fix compile error in AMD H.264 encoder options: does not exist in struct. Hardcode profile as the constant value since the field is unavailable.

cmake/targets/common.cmake
Fix Web UI build failure on Windows: when CMake spawns Microsoft Windows [Version 10.0.26200.8457]
(c) Microsoft Corporation. All rights reserved.

C:\Users\re\Desktop\Workspace> subprocesses to run npm, the subprocesses cannot find in PATH. Adding instructs npm to automatically prepend the Node.js directory to PATH for all script invocations.

Test Environment

  • MSYS2 UCRT64
  • Boost 1.91.0 (mingw-w64-ucrt-x86_64-boost)
  • Node.js installed from nodejs.org (not MSYS2 package)

- Remove EXACT version constraint from Boost find_package to allow
  newer Boost versions (e.g. 1.91.0) installed via MSYS2
- Fix AMD H.264 encoder compile error: cfg.profile field does not
  exist in config_t struct, hardcode high profile instead
- Fix Web UI build failure on Windows: add npm_config_scripts_prepend_node_path=true
  env var so npm subprocesses can locate node.exe in PATH
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