Build PDFium as static library on Linux, with use_custom_libcxx flag
60 views
Skip to first unread message
Александр Рыбалов
unread,
Oct 6, 2025, 12:19:23 PMOct 6
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
Hello!
I'm trying to build the PDFium library as a static library for my Linux project. I want a purely static library without any dependencies so I can include it in my project. However, on Linux, using use_custom_libcxx=false causes compilation errors. Therefore, I can build the library with just the custom libc++ library, but that means I'd have to also link my application to this custom libc++ library, which I don't want to do.
Please help me resolve this issue.
Александр Рыбалов
unread,
Oct 7, 2025, 5:40:42 AMOct 7
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pdfium
I solved the problem by downgrading the library version. I used the chromium/6000 branch and the depot_tools commit 7f5b53ff8ddd4b1c573b20693e669a9f14ab1a7f. I also needed to set DEPOT_TOOLS_UPDATE=0 in the environment variable to prevent gclient from updating depot_tools. Also, with this version, you need to use Python 3.9; later versions don't have the pipes library.
понедельник, 6 октября 2025 г. в 23:19:23 UTC+7, Александр Рыбалов:
Lei Zhang
unread,
Oct 15, 2025, 3:18:02 PMOct 15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Александр Рыбалов, pdfium
I'm glad you found a solution, but having to downgrade everything is
still not great. Can you share the complete list of GN args you are
using in your build?