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

Bitcode support #5

Open
Studiosus opened this issue Sep 15, 2017 · 11 comments
Open

Bitcode support #5

Studiosus opened this issue Sep 15, 2017 · 11 comments

Comments

@Studiosus
Copy link

Hey! Many thanks for the project, it's great!
Wanted to ask is it possible to add bitcode support?

@vfr
Copy link
Owner

vfr commented Sep 18, 2017

Bitcode support is possible - one just needs to build PDFium with the right compiler flags and set the framework bitcode build option. I'll put together instructions for building PDFium from source for iOS shortly so you can do this.

@Neogene
Copy link

Neogene commented Oct 22, 2017

Thank you, +1 for tut on PDFium compiling, or please compile a bitcode enabled build.

@muhammad-zohaib-ehsan
Copy link

@vfr Any update on the instructions you mentioned above.It will be very helpful. Thanks

@paulocoutinhox
Copy link

paulocoutinhox commented May 24, 2018

Hi,

I made a repository with instructions to build it. It is working very well. But i need solve some problems related here:

paulocoutinhox/pdfium-lib#1

Thanks in any help.

@juliand665
Copy link

Sorry to bug you, @vfr, but you seem to be the only person on the internet that knows how to compile PDFium for iOS correctly. It would be incredibly helpful if you could write out how exactly you managed to compile the binary.

@paulocoutinhox
Copy link

Hi,

It is working. If anyone wanna, it is building on travis and all instructions is here:
https://github.com/prsolucoes/mobile-pdfium

Thanks.

@paulocoutinhox
Copy link

Hi,

I make a project to build pdfium master branch for iOS.

It is working fine for arm, arm64 and macos.

There is only one problem on ios simulator (os=ios and cpu=x64).

I post the issue on project here:
paulocoutinhox/pdfium-lib#5

Can anyone help me solve this pls.

Thanks.

@muyexi
Copy link

muyexi commented May 20, 2020

@prsolucoes I tried the prebuilt binary with bitcode enabled, got this error:

Undefined symbols for architecture arm64:
  "_FPDFDest_GetPageIndex", referenced from:
      -[UXReaderDocument actionForDest:] in UXReaderDocument.o
      -[UXReaderDocumentPage actionForLink:] in UXReaderDocumentPage.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea what's wrong?

@paulocoutinhox
Copy link

Hi,

You can get all here:
https://github.com/paulo-coutinho/pdfium-lib

Thanks.

@wonderffee
Copy link

@prsolucoes I tried the prebuilt binary with bitcode enabled, got this error:

Undefined symbols for architecture arm64:
  "_FPDFDest_GetPageIndex", referenced from:
      -[UXReaderDocument actionForDest:] in UXReaderDocument.o
      -[UXReaderDocumentPage actionForLink:] in UXReaderDocumentPage.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea what's wrong?

use FPDFDest_GetDestPageIndex instead of FPDFDest_GetPageIndex
from: pvginkel/PdfiumViewer#173

@muyexi
Copy link

muyexi commented Apr 30, 2022

@paulocoutinhox Can you enable Bitcode support for this repo? I just had a try but to no avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants