简体   繁体   English

在Ubuntu上“生成html文档”时glfw makefile失败

[英]glfw makefile fails upon “generating html documentation” on Ubuntu

I am trying to compile and install glfw 3.1.1 for Ubuntu 14.10. 我正在尝试为Ubuntu 14.10编译并安装glfw 3.1.1。 The cmake finished successfully, however, when I go to execute the makefile through make it fails at the following: cmake成功完成,但是,当我通过make执行makefile时,它在以下情况失败:

[ 98%] Building C object tests/CMakeFiles/windows.dir/windows.c.o
Linking C executable windows
[ 98%] Built target windows
Scanning dependencies of target docs
[100%] Generating HTML documentation
Error: tag HTML_HEADER: header file `/home/dennis/Documents/LearningOpenGL/glfw-3.1.1/docs/header.html' does not exist
docs/CMakeFiles/docs.dir/build.make:52: recipe for target 'docs/CMakeFiles/docs' failed
make[2]: *** [docs/CMakeFiles/docs] Error 1
CMakeFiles/Makefile2:1184: recipe for target 'docs/CMakeFiles/docs.dir/all' failed
make[1]: *** [docs/CMakeFiles/docs.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

At first I thought that it is failing an optional step but then I realized that I can't compile my test project as it complains about the glfw header: 起初我以为它没有通过可选步骤,但是后来我意识到我无法编译我的测试项目,因为它抱怨glfw标头:

main.cpp:2:24: fatal error: GLFW/glfw3.h: No such file or directory
 #include <GLFW/glfw3.h>

Thanks 谢谢

Found the answer! 找到了答案! I had to disable the "build documentation" option in the cmake gui. 我必须在cmake gui中禁用“构建文档”选项。

It seems you just skip compiling the doc instead of fix it. 看来您只是跳过编译文档而不是对其进行修复。

Simply go to docs/CMakeFiles/docs.dir , modify the file build.make . 只需转到docs/CMakeFiles/docs.dir ,修改文件build.make

For the build target docs/CMakeFiles/docs: , change the doxygen command from: 对于构建目标docs/CMakeFiles/docs:将doxygen命令从以下位置更改:

doxygen.exe

to

doxygen.exe .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM