从 scons 调用的 Doxygen 在 Win32 平台上失败,因为未找到
我正在处理的 scons 构建中的 Doxygen 目标有问题。特别是,似乎没有找到 doxygen 应用程序。我不知道为什么会出现这种情况,因此我的问题是这样的。
所以背景:
SConstruct 文件 -
doc_build_target =environment.Doxygen(“./configuration.dxc”)
environment.Alias( '文档', doc_build_target )
项目结构使用项目特定的 site_scons
目录
project
site_scons
site_tools
doxygen
SConstruct
...
doxygen 模块已按照 scons ToolIndex 页面 (http: //www.scons.org/wiki/ToolsIndex?action=fullsearch&context=180&value=site_init.py&titlesearch=Titles),来自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: *** [stage\doc\html] Error 1
scons: building terminated because of errors.
我在系统路径环境变量中有 doxygen 应用程序路径。我已经通过手动执行 doxygen 来构建文档来确认这一点,并且一切正常。此外,在手动生成文档后(HTML 文件现已存在),scons 发现执行上述操作时无需执行任何操作。
我做错了什么?任何帮助将不胜感激!
I have a problem with a Doxygen target in a scons build I'm working on. In particular, the doxygen application appears not to be found. I don't know why this is the case and thus my question.
So the background:
SConstruct file -
doc_build_target = environment.Doxygen( "./configuration.dxc" )
environment.Alias( 'documentation', doc_build_target )
The project structure uses a project specific site_scons
directory
project
site_scons
site_tools
doxygen
SConstruct
...
The doxygen module has been retrieved per the instructions on the scons ToolIndex page (http://www.scons.org/wiki/ToolsIndex?action=fullsearch&context=180&value=site_init.py&titlesearch=Titles), from the https://bitbucket.org/russel/scons_doxygen site.
The exact command and scons response is as follows:
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: *** [stage\doc\html] Error 1
scons: building terminated because of errors.
I have the doxygen application path in the system path environmental variable. I've confirmed this by manually executing doxygen to build the documentation and everything works fine. Furthermore, after manually generating the documentation - with HTML files now in existence - scons identifies that nothing needs to be done upon performing the above.
What am I doing wrong? Any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下 scons 环境不包含环境变量(例如系统路径变量)。为此,您需要将路径变量添加到 scons 环境对象。
您可以在此处找到示例。
另外,如果通过“os.environ”关键字搜索,您可以在 scons 手册页上找到更多解释。
By default scons environment not includes environment variables (such are system path variable). To do it you need add path variable to scons environment object.
You can find example here.
Also, more explaining you can found on scons man page if search by 'os.environ' keyword.