Issue About pdfium compile(there is no libpdfium.so file)

83 views
Skip to first unread message

Sacrifices Veritas

unread,
Jul 25, 2023, 3:55:28 AM7/25/23
to pdfium
Compile pdfium 5907, the compilation process follows the steps in the (https://pdfium.googlesource.com/pdfium/#get-the-code) web page.
The compilation is successful, but there is no libpdfium.so file
The following are my compilation parameters
   1 # Set build arguments here. See `gn help buildargs`.
   2 target_os = "android"
   3 target_cpu = "arm64"
   4 is_debug=false
   5 pdf_use_skia=false
   6 pdf_enable_xfa=false
   7 pdf_enable_v8=false
   8
   9 is_component_build=false
  10 pdf_is_standalone = true
  11 pdf_is_complete_lib = true

I don't understand why after the compilation is complete, there is no libpdfium.so file, but other .so type files are compiled successfully.


Whether pdfium compilation can be written separately, instead of referring to Chromium's compilation process
""
Prerequisites
PDFium uses the same build tooling as Chromium. See the platform-specific Chromium build instructions to get started, but replace Chromium's “Get the code” instructions with PDFium's.

Chromium Linux build instructions
Chromium Mac build instructions
Chromium Windows build instructions
""

K. Moon

unread,
Jul 25, 2023, 1:17:34 PM7/25/23
to Sacrifices Veritas, pdfium
We don't explicitly support building PDFium as a dynamic library. It may or may not work for you (by setting is_component_build=true), but if you have any problems, we can't offer any support.

--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/6b3b058c-5a59-4da8-bae0-254a7189af27n%40googlegroups.com.

geisserml

unread,
Jul 25, 2023, 3:55:04 PM7/25/23
to pdfium
is_component_build=true works to get a libpdfium.so file but then you also need to carry around the support libraries it depends on (libabsl.so, libicuuc.so, etc.)
That's why I prefer to use the shared library patch from pdfium-binaries [1], which results in a standalone libpdfium.so bundle.
This also saves space: the component build artifact with all support libraries takes 9.8 MiB, compared to just 5.6 MiB of the standalone shared library artifact.

geisserml

unread,
Jul 25, 2023, 3:55:29 PM7/25/23
to pdfium
Reply all
Reply to author
Forward
0 new messages