There is no pdfium.dll after building

1,397 views
Skip to first unread message

nübee

unread,
Mar 21, 2018, 1:02:43 PM3/21/18
to pdfium

I'm learning to build pdfium project. Following the instructions I get 57 dlls in my out\ directory. However I cannot find the pdfium.dll which is supposed to contain functions like FPDFAvail_GetDocument(), FPDFBitmap_GetBuffer() etc.

Could anyone of you share your successful experience with building pdfium library?

Dan Sinclair

unread,
Mar 21, 2018, 1:07:32 PM3/21/18
to jun ni, pdfium
How did you build pdfium? What options did you use in your gn args? Did you set complete_static_lib=true in the gn args?

dan



On Wed, Mar 21, 2018 at 1:02 PM nübee <jun.n...@gmail.com> wrote:

I'm learning to build pdfium project. Following the instructions I get 57 dlls in my out\ directory. However I cannot find the pdfium.dll which is supposed to contain functions like FPDFAvail_GetDocument(), FPDFBitmap_GetBuffer() etc.

Could anyone of you share your successful experience with building pdfium library?

--
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 post to this group, send email to pdf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/d47152d8-6ac1-4686-89be-2b545563245e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Wiley

unread,
Mar 21, 2018, 6:38:58 PM3/21/18
to pdfium
pdfium compiles as a static library (.lib) not a shared library (.dll). See https://bugs.chromium.org/p/pdfium/issues/detail?id=826

nübee

unread,
Mar 22, 2018, 3:53:18 AM3/22/18
to pdfium
I'm building the library on windows7 with help of visual studio 2017 community. According to the instructions I have simply given the following three commands:
1. gn gen out/mytestbuild
2.
devenv out\mytestbuild\all.sln
3.
ninja -C out\mytestbuild pdfium


Then there are errors during compilation:

In file included from ../../testing/image_diff/image_diff_png.cpp:12:
../..\testing/image_diff/image_diff_png.h(8,10):  fatal error: 'stdlib.h' file n
ot found

How could I improve my ninja files?

nübee

unread,
Mar 22, 2018, 3:55:33 AM3/22/18
to pdfium
I'm neubee with this project. Could you check my commands, and give any suggestions?

Dan Sinclair

unread,
Mar 22, 2018, 11:17:35 AM3/22/18
to jun ni, pdfium
It looks like your windows environment isn't setup correctly. The build can't find the standard headers? I'd suggest following the instructions in https://pdfium.googlesource.com/pdfium/+/master/README.md on how to build pdfium.

dan




--
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 post to this group, send email to pdf...@googlegroups.com.
Message has been deleted

nübee

unread,
Mar 26, 2018, 11:16:25 AM3/26/18
to pdfium
I have followed the instruction. After running the command "ninja -C out\mytestbuild pdfium", I run into another error:


ninja: Entering directory `out\mytestbuild'
[1/1] Regenerating ninja files
FAILED: build.ninja
../../../../../../../../../../../pdfiumpath/buildtools/win/gn.exe --root=../.. -q --complete_static_li
b=true --ide=vs gen .
ERROR
ninja: error: rebuilding 'build.ninja': subcommand failed




Why does it rebuild the project? I've googled awhile, but have not found a solution.

Dan Sinclair

unread,
Mar 26, 2018, 11:35:05 AM3/26/18
to jun ni, pdfium
Ninja will always regenerate the project files if needed. It does nothing if there are no changes. But, if you modify your gn args, you want ninja to regenerate the files for you otherwise it may build the wrong thing. I'm not sure why it failed in your case, I don't see an actual error message?

dan





--
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 post to this group, send email to pdf...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages