Build PDFium as static library on Linux, with use_custom_libcxx flag

24 views
Skip to first unread message

Александр Рыбалов

unread,
Oct 6, 2025, 12:19:23 PM (7 days ago) Oct 6
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 AM (7 days ago) Oct 7
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, Александр Рыбалов:
Reply all
Reply to author
Forward
0 new messages