c++ - 编译 Ogre 代码时出错

标签 c++ ubuntu ogre

操作系统: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 版的一部分,但这是不正确的。它可能不是您正在使用的非官方存储库的一部分。在我们的官方版本中,它可以在这里找到:

SdkTrays.h in official Ogre 1.9

关于c++ - 编译 Ogre 代码时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39543072/

相关文章:

c++ - CMake 似乎忽略了 CMAKE_OSX_DEPLOYMENT_TARGET

c++ - 格雷码加法

php - Ubuntu sed 创建重复的行而不是只返回一个替换的行

Blender 2.6.1 导出到 ogre

c++ - 无法创建 OgreBullet Trimesh

c++ - 枚举类的 static_cast 的时间复杂度

c++ - Pybind11:将元组列表从Python传递到C++

python - 使用 Firefox 驱动程序在 Ubuntu LTS 上运行 Headless Webdriver 测试

mysql - 安装 "Empty value for ' 端口时出现 phpmyadmin 错误。”

c++ - OGRE 异常(7:InternalErrorException):在 FreeImageCodec::decode 中解码图像时出错