Open Mapashito1 opened 8 months ago
Hello,
I managed to solved the issue by adding the following line in the file windows/CMakeLists.txt
of my project
set(BINARY_NAME, "APPNAME")
set(PDFIUM_VERSION, "5200", CACHE STRING "") # << Add this
I am using
printing: ^5.13.1
pdfx: ^2.6.0
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...
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?
I have opened this topic in pdfx forum too https://github.com/ScerIO/packages.flutter/issues/490