Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing and pdfx are incompatible in windows #490

Open
Mapashito1 opened this issue Feb 22, 2024 · 0 comments
Open

Printing and pdfx are incompatible in windows #490

Mapashito1 opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Mapashito1
Copy link

Mapashito1 commented Feb 22, 2024

Describe the bug
When I launch a windows build of my app with modules printing and pdfx, I have a compile problem.

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

The problem is variable PDFIUM_VERSION. In pdfx module the value is 4636 and in printing module the value is 5200. It tries to download pdfx variable value instead of printing variable value. I put a debug trace and it's easy to see...
image

To Reproduce
Launch a windows project with this in pubspec.yaml
printing: ^5.11.1
pdfx: ^2.6.0

Additional context
Temporaly, I can build a windows app if I make a flutter clean and comment out pdfx import in pubspec.yaml. Then it gives me a error because I use this module in my code but It has downloaded correct libraries. After, I put pdfx import back in pubspec.yaml and it works because printing module uses cache libraries.

Is it necessary "CACHE" variable for PDFIUM_VERSION?

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Versi¢n 10.0.22621.3155], locale es-ES)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.1)
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.86.2)
[√] Connected device (3 available)
[√] Network resources

• No issues found!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants