外部实体“.../htmlhelp.xsl”失败

Failed to external entity ".../htmlhelp.xsl"

我正在按照官方文档中的教程构建 Wireshark 的开发版本来创建解析器

我收到两个警告和四个错误。这四个错误似乎来自 this link 无法加载的事实。错误是:

Build FAILED.
   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) ->
   "C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj" (default target) (118) ->
   (CustomBuild target) -> 
     CUSTOMBUILD : warning : failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]


   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (65) ->
   "C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj" (default target) (119) ->
     CUSTOMBUILD : warning : failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl" [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]


   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj.metaproj" (default target) (15) ->
   "C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj" (default target) (118) ->
   (CustomBuild target) -> 
     CUSTOMBUILD : I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]
     CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/custom_layer_chm.xsl line 8 element import [C:\Development\wsbuild64\docbook\developer_guide_chm.vcxproj]


   "C:\Development\wsbuild64\Wireshark.sln" (default target) (1) ->
   "C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj.metaproj" (default target) (65) ->
   "C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj" (default target) (119) ->
     CUSTOMBUILD : I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]
     CUSTOMBUILD : compilation error : file /Development/wireshark/docbook/custom_layer_chm.xsl line 8 element import [C:\Development\wsbuild64\docbook\user_guide_chm.vcxproj]

2 Warning(s)
4 Error(s)
Time Elapsed 00:00:07.72

当我直接转到 URL 时,我被带到了一个空白页面。通过在线目录,我可以转到 here,但单击 "htmlhelp.xsl" 会使我返回到空白页面。

然而,尽管 VS 2015 CMD 显示构建失败,但构建了一个可执行版本 Wireshark,我可以使用它或多或少的全部功能。

我的主要问题是由于 LNK 错误,我一直在构建 C++ 解析器时出错(Lua 解析器工作正常)。我在想,因为构建是 "incomplete",问题可能是由丢失的文件等引起的。

希望这对遇到类似问题的人有所帮助。

由于公司的代理设置,无法访问文件。我一直在使用 IE,但无法加载文件。

但是,当我使用 Mozilla Firefox 时,我能够下载该文件。我将 XSL 导入地址更改为包含下载文件的本地目录,导入错误已修复。