glfw makefile 在 Ubuntu "generating html documentation" 时失败
glfw makefile fails upon "generating html documentation" on Ubuntu
我正在尝试为 Ubuntu 14.10 编译和安装 glfw 3.1.1。 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
起初我以为这是一个可选步骤失败,但后来我意识到我无法编译我的测试项目,因为它抱怨 glfw header:
main.cpp:2:24: fatal error: GLFW/glfw3.h: No such file or directory
#include <GLFW/glfw3.h>
谢谢
找到答案了!我不得不在 cmake gui 中禁用 "build documentation" 选项。
看来你只是跳过了编译文档而不是修复它。
只需转到 docs/CMakeFiles/docs.dir
,修改文件 build.make
。
对于构建目标 docs/CMakeFiles/docs:
,更改 doxygen 命令
来自:
doxygen.exe
到
doxygen.exe .
我正在尝试为 Ubuntu 14.10 编译和安装 glfw 3.1.1。 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
起初我以为这是一个可选步骤失败,但后来我意识到我无法编译我的测试项目,因为它抱怨 glfw header:
main.cpp:2:24: fatal error: GLFW/glfw3.h: No such file or directory
#include <GLFW/glfw3.h>
谢谢
找到答案了!我不得不在 cmake gui 中禁用 "build documentation" 选项。
看来你只是跳过了编译文档而不是修复它。
只需转到 docs/CMakeFiles/docs.dir
,修改文件 build.make
。
对于构建目标 docs/CMakeFiles/docs:
,更改 doxygen 命令
来自:
doxygen.exe
到
doxygen.exe .