Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c++

linux

qt

qt3d

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

like image 565
CoffeeDay Avatar asked Mar 14 '23 03:03

CoffeeDay


1 Answers

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?

like image 62
demonplus Avatar answered Apr 06 '23 09:04

demonplus