bblanchon / pdfium-binaries

📰 Binary distribution of PDFium
802 stars 168 forks source link

compile in mips CPu #93

Open 19940610mxh666 opened 1 year ago

19940610mxh666 commented 1 year ago

Hi, I want to compile pdfium under MIPS platform. What changes do I need to make? Thanks .

bblanchon commented 1 year ago

Hi @19940610mxh666,

I don't known. You should address your questions to the pdfium community.

BTW, which MIPS processor are you targeting?

Best regards, Benoit

mara004 commented 1 year ago

PDFium Bug 1626 seems to suggest that it's possible somehow?

19940610mxh666 commented 1 year ago

Thank you for your reply. The processors I use are 龙芯3A4000(mips),龙芯3A3000(mips) and 龙芯3A5000(longarch).

19940610mxh666 commented 1 year ago

PDFium Bug 1626 seems to suggest that it's possible somehow?

Thanks for the tip

19940610mxh666 commented 1 year ago

Thank you for your reply. The processors I use are 龙芯3A4000(mips),龙芯3A3000(mips) and 龙芯3A5000(longarch).

@bblanchon

mara004 commented 1 year ago

gn help target_cpu lists the following:

Possible values

  - "x86"
  - "x64"
  - "arm"
  - "arm64"
  - "mipsel"
  - "mips64el"
  - "s390x"
  - "ppc64"
  - "riscv32"
  - "riscv64"
  - "e2k"
  - "loong64"

So I suppose the 3A3000 and 3A4000 will be mips64el and the 3A5000 loong64. But presumably just setting target_cpu in the GN configuration won't be sufficient and additional configuration / dependencies might be needed for cross-compilation?

19940610mxh666 commented 1 year ago

gn help target_cpu lists the following:

Possible values

  - "x86"
  - "x64"
  - "arm"
  - "arm64"
  - "mipsel"
  - "mips64el"
  - "s390x"
  - "ppc64"
  - "riscv32"
  - "riscv64"
  - "e2k"
  - "loong64"

So I suppose the 3A3000 and 3A4000 will be mips64el and the 3A5000 loong64. But presumably just setting target_cpu in the GN configuration won't be sufficient and additional configuration / dependencies might be needed for cross-compilation?

Thank you very much for your tips. I will do some tests according to these tips.

mara004 commented 1 year ago

@19940610mxh666 Did you succeed? If so, which steps did you use, and do you think it would be possible to add here?