我正在尝试从此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
如何解决此错误?
答案 0 :(得分:1)
正如评论中已经提到的,您需要确保您的编译器能够找到文件" SdkTrays.h "。
您声称此文件不是Ogre版本1.9的一部分,但该版本不正确。它可能不是您正在使用的非官方存储库的一部分。在我们的官方版本中,可以在这里找到: