pdfium-binaries icon indicating copy to clipboard operation
pdfium-binaries copied to clipboard

PDFium binaries for debug projects

Open aimi617 opened this issue 2 years ago • 5 comments

Where can I download latest C++ PDFium binaries for debug projects? As I understand all latest binaries for Release only.

aimi617 avatar Apr 06 '22 19:04 aimi617

Hi @aimi617,

I used to distribute Debug builds, but the build times were really long, and nobody used them. Why don't you use the Release build? If you need to debug the code inside PDFium, you're probably better off compiling the library yourself.

Best regards, Benoit

bblanchon avatar Apr 07 '22 07:04 bblanchon

I need to debug the codes of my proprietary project (not PDFium) working with acrofields, that's why I need PDFium debug .dll with .lib. and cannot use Release binaries to trace the codes.

aimi617 avatar Apr 07 '22 08:04 aimi617

I'm not sure restoring the debug builds is wise, but I'll leave this issue open to see how many people request it. Meanwhile, please try version 4005, which is the latest to have the debug build.

bblanchon avatar Apr 07 '22 12:04 bblanchon

Thanks, I'll test that build.

aimi617 avatar Apr 07 '22 14:04 aimi617

One possibility would be to build release-with-debug-symbols, and distribute the debug symbols separately?

That said, my exceptions turned out to be all be one of two things:

  • not calling FPDF_InitLibrary()
  • pdfium is absolutely not threadsafe, even if working with different FPDFDOCUMENTs in different files

fredemmott avatar Sep 17 '22 15:09 fredemmott

I'm closing this issue because I don't think I'll ever add the debug builds. The release builds are already taking more than 3 hours (32 hours of CPU time), so I cannot imagine how long it would take to add the debug builds. Note that my build.sh support a -d flag to compile in debug mode, so it shouldn't be too hard to build it yourself.

bblanchon avatar Aug 04 '23 07:08 bblanchon