Using Qt3D with Qt5

I am trying to use the Qt3D library with Qt5.

I followed these steps:

  • I installed Qt5 (on Arch Linux 64bit) from this path: /Qt5.0.0

  • I cloned git://gitorious.org/qt/qt3d.git

  • I built qt3d ( /Qt5.0.0/5.0.0/gcc_64/lib/qmake

    , make

    , make install

    )

Now I have the correct files in the right places and if I manually add

   LIBS += -L/Qt5.0.0/5.0.0/gcc_64/lib/ -lQt53D
   INCLUDEPATH += /Qt5.0.0/5.0.0/gcc_64/include/Qt3D/
   DEPENDPATH += /Qt5.0.0/5.0.0/gcc_64/include/Qt3D/

      

to my .pro file. I can include Qt3D headers (for example qglabstractscene.h

).

Unfortunately, I still can't compile the project because the library code refers to itself as part of Qt3D:

#include <Qt3D/qt3dglobal.h>

      

Is there a way to understand Qt what INCLUDEPATH

is a Qt module? Any suggestion is appreciated, thanks!

+3


source to share


1 answer


The problem must be related to QtCreator.

Using qmake directly builds the library successfully on unsuccessful QtCreator error.

Adding



QT += 3d

      

works too

+2


source







All Articles