Skip to content

[native_pdf_view] Build step for pdfium failed #242

Closed

Description

@CaroloFa

Hey, great package, thank you for your work!

Describe the bug
I have some troubles when building for Windows.
I get following error after calling flutter run -d windows:

CMake Error at flutter/ephemeral/.plugin_symlinks/native_pdf_renderer/windows/DownloadProject.cmake:179 (message):
  Build step for pdfium failed: 1

To Reproduce
Steps to reproduce the behavior:

  1. create new flutter project
  2. install native_pdf_view
  3. flutter run -d windows
  4. See error

Expected behavior
A Successful build

Screenshots

Smartphone (please complete the following information):

  • Desktop Windows-x64

Additional context

  • I'm developing on a Windows machine with Windows 10 SDK version 10.0.18362.0
  • Flutter (Channel beta, 2.8.0-3.1.pre,)
  • I ran the cmd as admin.

Activity

  1. milkyway044 commented on Nov 16, 2021

    @milkyway044

    +1

  2. Salam-pc commented on Nov 18, 2021

    @Salam-pc

    same here

  3. milkyway044 commented on Nov 19, 2021

    @milkyway044
  4. CaroloFa commented on Nov 24, 2021

    @CaroloFa
    Author

    @CaroloFa @Salam-pc work around: #233 (comment)

    Ty for letting us now, it builds successfully with that workaround. Sadly the swipe and zoom does not work, but that is probably another issue

  5. Ros4111 commented on Dec 7, 2021

    @Ros4111

    I am ussing:
    Flutter 2.5.3 Stable channel
    Windows 10
    Visual Studio Code

    I have the same problem trying to update my library from native_pdf_view 4.2 to 5.0
    The file CMakeLists.txt has a link to a file that doesnt exist:
    https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/4638/pdfium-windows-x64.zip

    Maybe the correct link is but I dont know how to fix that on my computer:
    https://github.com/bblanchon/pdfium-binaries/releases/latest/download/pdfium-win-x64.zip

  6. barbalex commented on Jan 6, 2022

    @barbalex

    #233 (comment) does not work in my case

    any other way?

    Correction: Actually my problem is with native_pdf_renderer. Enforcing the use of version 4.0.0 instead of 4.0.1 solved my issue.
    In pubspec.yaml:

    dependency_overrides:
      native_pdf_renderer: 4.0.0
  7. SergeShkurko commented on Mar 14, 2022

    @SergeShkurko
    Member

    Fixed in [pdfx] package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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