Pdfium build не работает на windows

Согласно инструкции, я выполнил команду

gn gen --ide=vs --args="is_component_build=true" out\Default

Чтобы настроить сборку. Созданный из \Default кажется Ok. Однако, если я дам команду

ninja -C out\Default pdfium

Для сборки PDFium.dll будет много ошибок, связанных со стандартной библиотекой C/C++:

В каком файле инструментария я могу внести изменения, чтобы сборка работала на Win7? Существуют ли еще какие-либо инструкции по обновлению PDFium для Windows?

ninja.exe -C out\Default pdfium -l 8 
ninja: Entering directory `out\Default'
[1/1780] CXX obj/third_party/bigint/BigInteger.obj
FAILED: obj/third_party/bigint/BigInteger.obj 
../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe /nologo /showIncludes  "-imsvcc:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\atlmfc\include" "-imsvcc:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include" "-imsvcc:\progra~1\abc\sqllib\include" "-imsvcc:\progra~1\abc\sqllib\lib" "-imsvcc:\program files\abc\websphere mq\tools\c\include" "-imsvcc:\program files\abc\websphere mq\tools\cplus\include" -DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D"CR_CLANG_REVISION=\"325667-1\"" -D_HAS_EXCEPTIONS=0 -DCOMPONENT_BUILD -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -DDEPRECATEDENUMERATOR(x)=[[deprecated(x)]] -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=1 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=0x0A000000 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DOPJ_STATIC -DPNG_PREFIX -DPNG_USE_READ_MACROS -DPDF_ENABLE_V8 -I../.. -Igen -I../.. -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 /Gy /FS /bigobj /d2FastFail /Zc:sizedDealloc- -fmsc-version=1911 -m64 /Od /Ob0 /GF /Z7 -fstandalone-debug /MDd -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare /W3 /wd4800 /wd4267 /wd4996 -Wno-unused-variable /WX /utf-8 /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4702 -Wno-unknown-pragmas -Wno-microsoft-cast -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-null-pointer-arithmetic /utf-8 -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare /TP /GR- /wd4577 /c ../../third_party/bigint/BigInteger.cc /Foobj/third_party/bigint/BigInteger.obj /Fd"obj/third_party/bigint_cc.pdb"
In file included from ../../third_party/bigint/BigInteger.cc:7:
In file included from ../../third_party/bigint/BigInteger.hh:10:
In file included from ../../third_party/bigint/BigUnsigned.hh:10:
../../third_party/bigint/NumberlikeArray.hh(10,10):  fatal error: 'stdlib.h' file not found
#include <stdlib.h> // abort()
         ^~~~~~~~~~
1 error generated.
[2/1780] CXX obj/third_party/bigint/BigUnsigned.obj

0 ответов

Другие вопросы по тегам