paulocoutinhox / pdfium-lib

PDFium - Project to compile PDFium library to multiple platforms.
https://pdfviewer.github.io/
MIT License
925 stars 90 forks source link

the iOS project can not run #95

Open aaluyi opened 1 year ago

aaluyi commented 1 year ago

Describe the bug Hello developer, when I added Pdfium.framework to sample-apple/Sample/Vendor, I tried to build the project, and 'fpdf_doc.h' file was reported not found in the PDFiumDocument.h file. Then I changed #import "fpdf_doc.h" to #import <Pdfium/fpdfview.h>, 'fpdf_text.h' file not found and 'fpdf_transformpage.h' file not found are displayed in the PDFiumPage.m file. How can I solve this problem.

System (please complete the following information):

aaluyi commented 1 year ago
  1. I'm from https://github.com/TechTeamer/ios-xc-pdfium for the framework, this framework is only fpdfview header files, but exactly what I need, I commented out the code related to fpdf_text.h and fpdf_transformpage.h in the demo, and the demo was ready to run
  2. I also tried to compile a new framework using python, and the execution of "python3 make.py build-pdfium-ios" and "python3 make.py patch-ios" was successful. But when executing "python3 make.py build-ios", "ERROR at //skia/BUILD.gn:174:14: Undefined identifier ", I can not solve this problem, but in the locally generated build->ios->pdfium->public there are fpdf_text.h and fpdf_transformpage.h these two header files, drag these two header files into the project, The original project is now operational
aaluyi commented 1 year ago
截屏2023-08-02 17 06 08

I want to compile a framework myself, may I ask how to solve this problem?

paulocoutinhox commented 1 year ago

Hi,

I need update to latest stable branch, maybe some changes was made in the reference file you show.

paulocoutinhox commented 1 year ago

Hi,

I have updated to latest version.

Can you test now?

coderliu007 commented 1 year ago

I'm executing Build for iOS Step four Compile: python3 make.py build-ios Report an error

ERROR Unresolved dependencies. //third_party/nasm:nasm(//build/toolchain/mac:clang_x64) needs //build/config/mac:strip_all(//build/toolchain/mac:clang_x64)

image What's the question, thank you very much

paulocoutinhox commented 10 months ago

Hi,

I have updated everything.

You can now use the latest version.

Thanks.

paulocoutinhox commented 2 months ago

Hi,

Project was updated to latest version.

If your problem was solved, can you close the issue pls?

Thanks.