从scons调用的Doxygen在Win32平台上失败,原因是找不到



我正在处理的scons构建中的Doxygen目标出现问题。特别是,似乎找不到Doxygen应用程序。我不知道为什么会这样,也不知道我的问题。

所以背景:

S构造文件-

doc_build_target = environment.Doxygen( "./configuration.dxc" )environment.Alias( 'documentation', doc_build_target )

项目结构使用项目特定的site_scons目录

project
    site_scons
        site_tools
            doxygen
    SConstruct
    ...

doxygen模块已根据scons ToolIndex页面上的说明进行检索(http://www.scons.org/wiki/ToolsIndex?action=fullsearch&上下文=180&value=site_init.py&titlesearch=标题),从https://bitbucket.org/russel/scons_doxygen地点

确切的命令和scons响应如下:

D:project>scons documentation
scons: Reading SConscript files ...
**** Compiling in release mode...
scons: done reading SConscript files.
scons: Building targets ...
cd . && doxygen configuration.dxc
'doxygen' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [stagedochtml] Error 1
scons: building terminated because of errors.

我在系统路径环境变量中有doxygen应用程序路径。我已经通过手动执行doxygen来构建文档来确认这一点,一切都很好。此外,在手动生成文档(现在有HTML文件)后,scons确定在执行上述操作时不需要做任何事情。

我做错了什么?任何帮助都将不胜感激!

默认情况下,scons环境不包括环境变量(如系统路径变量)。为此,您需要将路径变量添加到scons环境对象中。

你可以在这里找到例子。

此外,如果按"os.environ"关键字搜索,您可以在scons手册页上找到更多解释。

最新更新