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

pdfx 2.6.0 does not build on Windows #494

Closed
strixcode opened this issue Mar 27, 2024 · 0 comments · Fixed by #496
Closed

pdfx 2.6.0 does not build on Windows #494

strixcode opened this issue Mar 27, 2024 · 0 comments · Fixed by #496
Assignees
Labels
bug Something isn't working

Comments

@strixcode
Copy link
Contributor

strixcode commented Mar 27, 2024

Describe the bug
The package does not build on Windows. The reason is it tries to download pdfium from github and this URL doesn't work anymore (404 error). The URL is https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/4634/pdfium-win-x64.tgz
The offending code is here:

set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-win-${ARCH}.tgz")

This seems to be fixed on main:
set(PDFIUM_URL "https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-win-${ARCH}.tgz")

To Reproduce
Steps to reproduce the behavior:
flutter build windows --release

Expected behavior
Application using pdfx should build on Windows.

Screenshots

[  +20 ms] -- Build files have been written to: C:/Projects/QliqSOFT/qliqflutter.mobile/build/windows/x64/pdfium-download
[ +110 ms] MSBuild version 17.6.3+07e294721 for .NET Framework
[ +607 ms]   Performing download step (download, verify and extract) for 'pdfium-download'
[  +30 ms]   -- Downloading...
[        ]      dst='C:/Projects/QliqSOFT/qliqflutter.mobile/build/windows/x64/pdfium-download/pdfium-download-prefix/src/pdfium-win-x64.tgz'
[        ]      timeout='none'
[        ]      inactivity timeout='none'
[        ]   -- Using src='https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/4634/pdfium-win-x64.tgz'
[ +481 ms]   -- [download 0% complete]
[   +4 ms]   CMake Error at pdfium-download/pdfium-download-prefix/src/pdfium-download-stamp/download-pdfium-download.cmake:170 (message):
[   +1 ms]     Each download failed!
[   +7 ms] CUSTOMBUILD : error : downloading 'https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/4634/pdfium-win-x64.tgz' failed
[C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\pdfium-download.vcxproj]
[   +1 ms]             status_code: 22
[        ]             status_string: "HTTP response code said error"
[        ]             log:
[        ]             --- LOG BEGIN ---
[        ]             timeout on name lookup is not supported
[        ]       Trying 140.82.121.4:443...
[        ]     Connected to github.com (140.82.121.4) port 443 (#0)
[        ]     schannel: disabled automatic use of client certificate
[        ]     ALPN: offers h2
[        ]     ALPN: offers http/1.1
[        ]     ALPN: server accepted h2
[        ]     Using HTTP2, server supports multiplexing
[        ]     Copying HTTP/2 data in stream buffer to connection buffer after upgrade:
[        ]     len=0
[        ]     h2h3 [:method: GET]
[        ]     h2h3 [:path:
[        ]     /bblanchon/pdfium-binaries/releases/download/chromium/4634/pdfium-win-x64.tgz]
[        ]     h2h3 [:scheme: https]
[        ]     h2h3 [:authority: github.com]
[        ]     h2h3 [user-agent: curl/7.87.0]
[        ]     h2h3 [accept: */*]
[        ]     Using Stream ID: 1 (easy handle 0x1f9d80e4b90)
[        ]     GET
[        ]     /bblanchon/pdfium-binaries/releases/download/chromium/4634/pdfium-win-x64.tgz
[        ]     HTTP/2
[        ]     Host: github.com
[        ]     user-agent: curl/7.87.0
[        ]     accept: */*
[        ]     schannel: remote party requests renegotiation
[        ]     schannel: renegotiating SSL/TLS connection
[        ]     schannel: SSL/TLS connection renegotiated
[        ]     schannel: remote party requests renegotiation
[        ]     schannel: renegotiating SSL/TLS connection
[        ]     schannel: SSL/TLS connection renegotiated
[        ]     HTTP/2 404
[        ]     server: GitHub.com
[        ]     date: Wed, 27 Mar 2024 11:43:40 GMT
[        ]     content-type: text/plain; charset=utf-8
[        ]     vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding,
[        ]     Accept, X-Requested-With
[        ]     cache-control: no-cache
[        ]     strict-transport-security: max-age=31536000; includeSubdomains; preload
[        ]     x-frame-options: deny
[        ]     x-content-type-options: nosniff
[        ]     x-xss-protection: 0
[        ]     referrer-policy: no-referrer-when-downgrade
[        ]     content-security-policy: default-src 'none'; base-uri 'self'; connect-src
[        ]     'self'; form-action 'self'; img-src 'self' data:; script-src 'self';
[        ]     style-src 'unsafe-inline'
[        ]     content-length: 9
[        ]     x-github-request-id: C3FD:5AD3C:19C37ECD:1A019CD9:6604066C
[        ] CUSTOMBUILD : The requested URL returned error : 404 [C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\pdfium-download.vcxproj]
[        ]     Connection #0 to host github.com left intact
[        ]             --- LOG END ---
[        ] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(248,5): error MSB8066: Custom build for
'C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-download.rule;C:\Projects\QliqSOFT\qliqflutter.mob
ile\build\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-update.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\C
MakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-patch.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74c
af\pdfium-download-configure.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-build.rule;C:\Pro
jects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-install.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\buil
d\windows\x64\pdfium-download\CMakeFiles\32a9dc25814549d5782043a9ddc74caf\pdfium-download-test.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\
9c1b25fb11145ce123032ab0940fe938\pdfium-download-complete.rule;C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\CMakeFiles\7eb0a7545a34b2a13c541e7d1737e8b8\pdfi
um-download.rule' exited with code 1. [C:\Projects\QliqSOFT\qliqflutter.mobile\build\windows\x64\pdfium-download\pdfium-download.vcxproj]
[  +10 ms] CMake Error at flutter/ephemeral/.plugin_symlinks/printing/windows/DownloadProject.cmake:179 (message):
[   +3 ms]   Build step for pdfium failed: 1
[        ] Call Stack (most recent call first):
[        ]   flutter/ephemeral/.plugin_symlinks/printing/windows/CMakeLists.txt:36 (download_project)
[        ] -- Configuring incomplete, errors occurred!

Smartphone (please complete the following information):

  • Device: PC
  • OS: Windows 11
  • Version: 23H2

Additional context
Add any other context about the problem here.

@strixcode strixcode added the bug Something isn't working label Mar 27, 2024
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

Successfully merging a pull request may close this issue.

2 participants