Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
创建pdfiumdll_Dll_Pdfium - Fatal编程技术网

创建pdfiumdll

创建pdfiumdll,dll,pdfium,Dll,Pdfium,我正试图使用Visual Studio 2013(如中所示)为pdfium创建一个dll,但当我下载pdfium项目时,我设置DEPOT\u TOOLS\u WIN\u TOOLCHAIN=0,因为现在默认情况下,他们使用DEPOT\u TOOLS中的TOOLCHAIN 但在构建过程中,我仍然会遇到一个错误: 错误LNK2019:函数“public:class CFX\u WideString\u thiscall CPDFDoc\u Environment::FFI\u PostRequest

我正试图使用Visual Studio 2013(如中所示)为
pdfium
创建一个dll,但当我下载
pdfium
项目时,我设置
DEPOT\u TOOLS\u WIN\u TOOLCHAIN=0
,因为现在默认情况下,他们使用DEPOT\u TOOLS中的TOOLCHAIN

但在构建过程中,我仍然会遇到一个错误:

错误LNK2019:函数“public:class CFX\u WideString\u thiscall CPDFDoc\u Environment::FFI\u PostRequestURL(wchar\u t const*、wchar\u t const*、wchar\u t const*、wchar\u t const*)中引用的未解析外部符号\u FPDF\u BStr\u Init)(?FFI_PostRequestURL@CPDFDoc_Environment@@QAE?AVCFX_宽字符串@@PB_W0000@Z)..\pdfium\fpdfxfa.lib(fpdfxfa_app.obj)pdfium

类似于
\u FPDF\u BStr\u Clear

错误LNK2019:函数“public:class CFX\u WideString”中引用了未解析的外部符号\u FPDF\u BStr\u Clear\u thiscall CPDFDoc\u Environment::FFI\u PostRequestURL(…)

我明白了,这可能是xfa的问题,所以我尝试在没有它的情况下构建pdfium。我从该解决方案中所有项目的预处理器定义中删除了
PDF\u ENABLE\u xfa
,但后来我发现没有该定义,fxcodec和fxcrt无法构建。 当我离开那个项目的定义时,我可以成功地构建pdfium项目,但当我在我的应用程序中使用它时,它失败了


然后,我尝试以不同的顺序进行操作并获得了dll,但没有使用FPDFSDK_导出定义。当我添加它时,会出现这些错误。

您不需要编辑构建命令来禁用XFA。当您运行
gn args out/Debug
时,您可以添加
pdf\u enable_XFA=false
条目。您还可以使用
pdf\u enabl禁用V8e_v8=假

最近添加了一个选项,用于为PDFium构建完整的库(尚未使用V8或XFA进行测试)。如果添加
pdf\u is\u complete\u lib=true
并进行构建,则只需链接生成的libpdfium即可