4

Qt3D has been officially supported by Qt 5.5. They say that Linux is supported.

I choose an assimp example, and its main.cpp contains window.h .

I am on Ubuntu 14.04.3. How am I supposed to compile this program?

No such file or directory is the error which I am receiving.

Screenshot of my output in QtCreator

CoffeeDay
  • 203
  • 1
  • 11
  • 4
    Have you tried to compile it? I think you've gotten [window.h](http://doc.qt.io/qt-5/qtmacextras-embeddedqwindow-window-h.html) confused with [Windows.h](https://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx), the latter being available on the Windows platform only. – Mohamad Elghawi Nov 17 '15 at 10:21
  • could you please add the exact text of your error to your post? – demonplus Nov 17 '15 at 10:24
  • Ok, I found some info. This file should be in Qt\Examples\Qt-5.5\qt3d\common, could you please check do you have this folder and this file in it? – demonplus Nov 17 '15 at 10:34
  • I think you just need to add appropriate include into your .pro file – demonplus Nov 17 '15 at 10:39

1 Answers1

7

window.h file should be located in Qt\Examples\Qt-5.5\qt3d\common folder, it doesn't related to Windows, only to QWindow.

More details here: https://forum.qt.io/topic/56554/qt-5-5-qt3d-window-h-file-in-the-examples

If this path is not found in your project, you may add this to .pro file:

INCLUDEPATH += "Qt/Examples/Qt-5.5/qt3d/common"

Read more about correct using of include paths in Qt Creator here: How to add include path in Qt Creator?

Community
  • 1
  • 1
demonplus
  • 5,613
  • 12
  • 49
  • 68