Search code examples
c++linuxqtqt3d

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


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


Solution

  • 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?