Qt3D 已被 Qt 5.5 正式支持。他们说Linux is supported .
我选择 assimp example , 及其 main.cpp包含 window.h 。
我在 Ubuntu 14.04.3 上。我该如何编译这个程序?
No such file or directory
是我收到的错误。
最佳答案
window.h
文件应位于Qt\Examples\Qt-5.5\qt3d\common
文件夹中,它与Windows 无关,仅与Q 窗口
。
此处有更多详细信息:https://forum.qt.io/topic/56554/qt-5-5-qt3d-window-h-file-in-the-examples
如果在您的项目中找不到此路径,您可以将其添加到 .pro 文件中:
INCLUDEPATH += "Qt/Examples/Qt-5.5/qt3d/common"
在此处阅读有关在 Qt Creator 中正确使用包含路径的更多信息:How to add include path in Qt Creator?
关于c++ - 由于 Qt3D 说支持 Linux,我应该如何处理 Linux 上缺少 window.h 的情况?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33754317/