' IL / il.h'找不到文件,但它存在

时间:2014-02-19 14:32:50

标签: macos compilation makefile cegui

当尝试构建cegui时,无法找到上面提到的头文件,而/usr/local/include中显然存在。为什么会这样?

[ 29%] Built target CEGUIBase-0
[ 32%] Built target CEGUIOpenGLRenderer-0
[ 32%] Built target CEGUINullRenderer-0
[ 32%] Built target CEGUIExpatParser
[ 32%] Built target CEGUILibXMLParser
[ 32%] Building CXX object cegui/src/ImageCodecModules/DevIL/CMakeFiles/CEGUIDevILImageCodec.dir/ImageCodec.cpp.o
/Users/Adam/Downloads/cegui-0.8.3/cegui/src/ImageCodecModules/DevIL/ImageCodec.cpp:33:10: fatal error: 
      'IL/il.h' file not found
#include <IL/il.h>
         ^
1 error generated.

1 个答案:

答案 0 :(得分:0)

我想你没有在编译行中列出/usr/local/include。您是否已将-I/usr/local/include添加到CFLAGS中?或者,因为此输出看起来可能来自使用cmake生成器的makefile,您是否已通过include_directories添加它?如果它是一个cmake生成的makefile,你可以运行make VERBOSE=1来查看完整的编译行。