pdfium.lib invalid or corrupt file

120 views
Skip to first unread message

Sam Andy

unread,
Jun 2, 2018, 12:32:23 AM6/2/18
to pdfium
After building pdfium.lib successfully, I created a console app and tried to link to this library but unfortunately I got the C:\google\repo\pdfium\out\release\obj\pdfium.lib : fatal error LNK1136: invalid or corrupt file

OS :windows
IDE : VS2017 pro

# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
use_goma = false  # Googlers only. Make sure goma is installed and running first.
is_debug = false  # Enable debugging features.
pdf_use_skia = false  # Set true to enable experimental skia backend.
pdf_use_skia_paths = false  # Set true to enable experimental skia backend (paths only).
pdf_enable_xfa = false  # Set false to remove XFA support (implies JS support).
pdf_enable_v8 = false  # Set false to remove Javascript support.
pdf_is_standalone = true  # Set for a non-embedded build.
pdf_is_complete_lib = true
is_component_build = false # Disable component build (must be false)
is_official_build = true
clang_use_chrome_plugins = false  # Currently must be false.

Martin Sandsmark

unread,
Jun 4, 2018, 5:22:07 AM6/4/18
to Sam Andy, pdfium
Hi!


On 2 June 2018 at 06:32, Sam Andy <khalidj...@gmail.com> wrote:
> After building pdfium.lib successfully, I created a console app and tried to
> link to this library but unfortunately I got the
> C:\google\repo\pdfium\out\release\obj\pdfium.lib : fatal error LNK1136:
> invalid or corrupt file

FWIW, here's the appveyor config I use to generate windows builds:
https://github.com/sandsmark/pdfium/blob/master/appveyor.yml

I'm in the middle of trying to get it to work with our own
application, but it seems to at least generate valid .lib files.


You can download the artifacts from here (click on a build and then
"artifacts"):
https://ci.appveyor.com/project/sandsmark/pdfium/history

E. g. release build for 32 bit, the zip file also contains the .lib:
https://ci.appveyor.com/project/sandsmark/pdfium/build/96/job/933kxt6n3k9bpqvi/artifacts


--
Martin Sandsmark
Chief Technical Officer
+47 980 33 988

https://remarkable.com
Pilestredet 75c, 0354 Oslo - Norway
Reply all
Reply to author
Forward
0 new messages