Skip to content

pdfx plugin fails to build on Windows after updating to Visual Studio 2026 #601

@Julio-Hostmundo

Description

@Julio-Hostmundo

Describe the bug After updating Visual Studio to version 2026 (released
a few days ago), the Flutter package pdfx fails during the build process
for both debug and release modes. The error occurs when attempting to
build the pdfium dependency used by the plugin.

The error shown is:

CMake Error at flutter/ephemeral/.plugin_symlinks/pdfx/windows/DownloadProject.cmake:171 (message):
  CMake step for pdfium failed: 1
Call Stack (most recent call first):
  flutter/ephemeral/.plugin_symlinks/pdfx/windows/CMakeLists.txt:20 (download_project)

To Reproduce 1. Update Visual Studio to version 2026. 2. Open a Flutter
project that uses the pdfx package. 3. Run flutter run -d windows or
flutter build windows. 4. The CMake error appears during the
configuration/compilation of pdfium.

Expected behavior The project should run or build normally, downloading
and configuring pdfium as expected, without CMake or Visual Studio
environment failures.

Screenshots If applicable, attach terminal screenshots showing the
error.

Device: - OS: Windows 11 - Version: Visual Studio 2026
(latest update)

Additional context - The error occurs only after updating to Visual
Studio 2026. - Previous VS versions worked correctly with the pdfx
plugin. - Likely related to changes in CMake, MSVC toolchain, or Visual
Studio configuration affecting pdfium compilation. - May involve the
plugin’s use of DownloadProject.cmake, which could rely on older
behaviors of Visual Studio or CMake.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions