既然Qt3D说支持Linux,我该如何处理Linux上缺少window.h的问题

Since Qt3D says Linux is supported, how should I deal with absence of window.h on Linux?

本文关键字:Linux 处理 window 问题 支持 Qt3D 何处理 既然      更新时间:2023-10-16

Qt3D已由Qt 5.5正式支持。他们说Linux是受支持的。

我选择了一个assimp示例,它的main.cpp包含window.h.

我在Ubuntu 14.04.3上。我应该如何编译这个程序?

No such file or directory是我正在接收的错误。

我在QtCreator 中输出的屏幕截图

window.h文件应该位于QtExamplesQt-5.5qt3dcommon文件夹中,它与Windows无关,只与QWindow有关。

更多详细信息请点击此处: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中正确使用include路径的信息:如何在Qt创建者中添加include路径?