2015-04-05 95 views
1

我正在嘗試爲Ubuntu 14.10編譯和安裝glfw 3.1.1。 CMake的成功完成,但是,當我去執行的makefile通過make失敗在以下幾點:glfw makefile在Ubuntu上生成html文檔時失敗

[ 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頭:

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

感謝

回答

1

找到了答案!我必須禁用cmake gui中的「構建文檔」選項。

0

看來你只是跳過編譯文檔,而不是修復它。

只需轉到docs/CMakeFiles/docs.dir,修改文件build.make

doxygen.exe 

doxygen.exe . 

對於構建目標docs/CMakeFiles/docs:,從改變doxygen的命令