操作系统:Ubuntu 16.04
食人魔:v1.9
我正在尝试从这个 repository 编译代码.虽然它适用于 Ogre v1.9,但它给了我这个错误:
In file included from /home/cortana/Desktop/clean-project/src/BaseApplication.cpp:17:0:
/home/cortana/Desktop/clean-project/src/BaseApplication.h:34:22: fatal error: SdkTrays.h: No such file or directory
compilation terminated.
CMakeFiles/OgreApp.dir/build.make:62: recipe for target 'CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o' failed
make[2]: *** [CMakeFiles/OgreApp.dir/src/BaseApplication.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OgreApp.dir/all' failed
make[1]: *** [CMakeFiles/OgreApp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
我该如何修复这个错误?
最佳答案
如评论中所述,您需要确保您的编译器能够找到文件“SdkTrays.h”。
您声称此文件不是 Ogre 1.9 版的一部分,但这是不正确的。它可能不是您正在使用的非官方存储库的一部分。在我们的官方版本中,它可以在这里找到:
关于c++ - 编译 Ogre 代码时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39543072/