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

file Android installation: "install-build-deps-android.sh" not found after following all general steps #50

Closed
thomas-topway-it opened this issue Oct 16, 2021 · 10 comments

Comments

@thomas-topway-it
Copy link

Follow the steps listed under
"How to compile (general)"

The first point at https://github.com/paulo-coutinho/pdfium-lib/blob/master/docs/BUILD_ANDROID.md
says to execute the file

./build/android/pdfium/build/install-build-deps-android.sh

however this file is missing after following successfully all "general steps" listed here

https://github.com/paulo-coutinho/pdfium-lib

System:
Centos 7, python3

@paulocoutinhox
Copy link
Owner

Hi,

You van check here all steps that is working on CI:
https://github.com/paulo-coutinho/pdfium-lib/blob/master/.github/workflows/android.yml

and the Docker file to understand what is missing:
https://github.com/paulo-coutinho/pdfium-lib/blob/master/docker/android/Dockerfile

The Dockerfile is useful because it use exactly the linux version that Google documentation needs here:
https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md#system-requirements

@thomas-topway-it
Copy link
Author

hello Paulo,
thanks for the feedback.
Is there a way to build it without docker ?

I'm checking this library mainly for the following issue

barteksc/PdfiumAndroid#83

using a prebuilt library I get an out of memory error, so my idea was to check the pdfium library itself from source and to do the changes if possible.
Do you have any hint about that ? (otherwise, a way to compile pdfium for android without docker would be sufficient)
(Thomas)

@paulocoutinhox
Copy link
Owner

paulocoutinhox commented Oct 16, 2021 via email

@paulocoutinhox
Copy link
Owner

Hi,

You still have problems?

Thanks.

@thomas-topway-it
Copy link
Author

hello Paulo,
thanks for your feedback.
I'm not sure how to approach the files mentioned by you (docker and yml). I would like to avoid to use docker, just to install everything on my system (centos 7).
Have you tried to reproduce the error ?
That is: follow the 3 points on your readme.md (under "How to compile (general)"), then the point 2 on "Build for Android" is not applicable because the file/directory pdfium-lib/build/android/pdfium/build/install-build-deps-android.sh is missing.
Perhaps the section "general steps" might include all the necessary steps (without using docker or looking in other conf. files, unless they can be simply executed) in order to have all necessary files ?
Kind regards
(Thomas)

@paulocoutinhox
Copy link
Owner

I fixed docs for next version. Can you test now?

1. Execute all **general** steps

2. Get PDFium:  
```python3 make.py run build-pdfium-android```  

3. Patch:  
```python3 make.py run patch-android```  

4. PDFium android dependencies
```./build/android/pdfium/build/install-build-deps-android.sh```

5. Compile:  
```python3 make.py run build-android```  
  
6. Install libraries:  
```python3 make.py run install-android```  

7. Test:  
```python3 make.py run test-android```  

@paulocoutinhox
Copy link
Owner

Hi,

I launched a new version (4692).

To test, you can access:
https://pdfviewer.github.io/

Can you check the docs/code to see if your problem still happen?

You can donate, if you want, to help the project.

Thanks.

@paulocoutinhox
Copy link
Owner

Im closing due to inactivity. Feel free to create a new issue or reopen this.

@thomas-topway-it
Copy link
Author

hello Paulo,
thank you, I switched to another project in the meantime.
I searched for your email on the sites above
Site: www.prsolucoes.com
Blog: www.pcoutinho.com
but one of them does not work and the other has not contact information / interaction.
(Thomas)

@paulocoutinhox
Copy link
Owner

My email: [email protected]

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

2 participants