paulocoutinhox / pdfium-lib

PDFium - Project to compile PDFium library to multiple platforms.

Home Page:https://pdfviewer.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

thomas-topway-it opened this issue · comments

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

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

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)

Hi,

You still have problems?

Thanks.

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)

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```  

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.

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

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)