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

How can I build pdfium on arm64 platform?(Debian glibc 2.28) #135

Closed
MyChuan opened this issue Oct 8, 2023 · 5 comments
Closed

How can I build pdfium on arm64 platform?(Debian glibc 2.28) #135

MyChuan opened this issue Oct 8, 2023 · 5 comments

Comments

@MyChuan
Copy link

MyChuan commented Oct 8, 2023

step 1, I'm run the sh by command "./build.sh -b chromium/5670 linux arm64".
step 2, the error is "E: 软件包 libc6-i386 没有可安装候选
E: 无法定位软件包 gcc-9-multilib
E: 无法定位软件包 g++-9-aarch64-linux-gnu
E: 无法按照正则表达式 g++-9-aarch64-linux-gnu 找到任何软件包
E: 软件包 gcc-9-aarch64-linux-gnu:i386 没有可安装候选",
then i comment it out.
step 3, the error is "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree." when it reaches gclient sync -r origin/chromium/5670 --no-history --shallow, but i can get the codes from gclient, then i copy it in this place.
step 4, the error is "gn gen /root/zbc/projects/pdfium-binaries/pdfium-binaries/pdfium/out
Traceback (most recent call last):
File "/root/zbc/projects/pdfium-binaries/pdfium-binaries/depot_tools/gn.py", line 14, in
import gclient_paths
File "/root/zbc/projects/pdfium-binaries/pdfium-binaries/depot_tools/gclient_paths.py", line 24, in
def FindGclientRoot(from_dir, filename='.gclient'):
File "/usr/lib/python3.7/functools.py", line 477, in lru_cache
raise TypeError('Expected maxsize to be an integer or None')
TypeError: Expected maxsize to be an integer or None
"
How can i resolve the problems? Looking forward to your help.

@MyChuan MyChuan changed the title How can I build pdfium on arm64 platform? How can I build pdfium on arm64 platform?(Debian glibc 2.28) Oct 8, 2023
@bblanchon
Copy link
Owner

Hi @MyChuan,

I had the same error today with the Windows build.
I assumed it was because the Python version was too old, so I updated the runner.
Guess what? It worked!

Try to upgrade to Python >= 3.9

Best regards,
Benoit

@MyChuan
Copy link
Author

MyChuan commented Oct 9, 2023

Hi @MyChuan,

I had the same error today with the Windows build. I assumed it was because the Python version was too old, so I updated the runner. Guess what? It worked!

Try to upgrade to Python >= 3.9

Best regards, Benoit

OK,let me try it, thank you!

@MyChuan
Copy link
Author

MyChuan commented Oct 9, 2023

Hi @MyChuan,

I had the same error today with the Windows build. I assumed it was because the Python version was too old, so I updated the runner. Guess what? It worked!

Try to upgrade to Python >= 3.9

Best regards, Benoit

I get another error,“/root/zbc/projects/pdfium-binaries/pdfium-binaries/.gclient_entries missing, .gclient file in parent directory /root/zbc/projects/pdfium-binaries/pdfium-binaries might not be the file you want to use.
Traceback (most recent call last):
File "/root/zbc/projects/pdfium-binaries/pdfium-binaries/depot_tools/gn.py", line 93, in
sys.exit(main(sys.argv))
File "/root/zbc/projects/pdfium-binaries/pdfium-binaries/depot_tools/gn.py", line 88, in main
return subprocess.call([gn_path] + args[1:])
File "/usr/local/python39/lib/python3.9/subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/python39/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/python39/lib/python3.9/subprocess.py", line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
”.
I can confirm where this file exists, and contents is ""
image
,what can i do next?

@bblanchon
Copy link
Owner

Hi @MyChuan,

I don't know.
The build works on Ubuntu, and it's all that matters to me.
As I said in #90:

The goal of the project is to provide PDFium binaries, nothing more.
The build scripts in this repository are just a side-product of this process.
Those scripts only need to run on GitHub-hosted runners, and I have no intention of making them portable.

To build PDFium on unsupported Linux distributions, please follow the official instructions.

Thank you for your understanding.

Best regards,
Benoit

@MyChuan
Copy link
Author

MyChuan commented Oct 11, 2023

Hi @MyChuan,

I don't know. The build works on Ubuntu, and it's all that matters to me. As I said in #90:

The goal of the project is to provide PDFium binaries, nothing more.
The build scripts in this repository are just a side-product of this process.
Those scripts only need to run on GitHub-hosted runners, and I have no intention of making them portable.
To build PDFium on unsupported Linux distributions, please follow the official instructions.

Thank you for your understanding.

Best regards, Benoit

I get, thank you all the same!

@bblanchon bblanchon closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2023
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