Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85263

Include headers for QtQuick3D C++ Types are broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.0
    • Quick: 3D
    • None
    • Linux (tested), Windows(tested), probably Mac and all plataforms
    • Linux/Other display system, Windows

    Description

      It seems its not possible to define custom geometry for quick3D models, as described in https://doc.qt.io/qt-5/qquick3dgeometry.html
      Include headers for QQuick3DGeometry, QQuick3D and QQuick3DObject are broken. I didnt test it  on Mac but probably doenst work there also. 

       

      Qt Creator panel Issues:

      /home/joao/qt5projects/GeometryQuick3DSample/line.h:5: error: QQuick3DGeometry: No such file or directory
       #include <QQuick3DGeometry>
                ^~~~~~~~~~~~~~~~~~
      /home/joao/qt5projects/GeometryQuick3DSample/line.h:5: error: 'QQuick3D' file not found
      /home/joao/qt5projects/GeometryQuick3DSample/line.h:6: error: 'QQuick3DObject' file not found
      /home/joao/qt5projects/GeometryQuick3DSample/line.h:7: error: 'QQuick3DGeometry' file not found
      /home/joao/qt5projects/GeometryQuick3DSample/line.h:9: error: expected class name
      

       

      Compile output:

       

      08:36:56: Running steps for project GeometryQuick3DSample...
      08:36:56: Configuration unchanged, skipping qmake step.
      08:36:56: Starting: "/usr/bin/make" -j12
      g++ -c -pipe -g -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../GeometryQuick3DSample -I. -I../../Qt/5.15.0/gcc_64/include -I../../Qt/5.15.0/gcc_64/include/QtQuick -I../../Qt/5.15.0/gcc_64/include/QtGui -I../../Qt/5.15.0/gcc_64/include/QtQmlModels -I../../Qt/5.15.0/gcc_64/include/QtQml -I../../Qt/5.15.0/gcc_64/include/QtNetwork -I../../Qt/5.15.0/gcc_64/include/QtCore -I. -isystem /usr/include/libdrm -I../../Qt/5.15.0/gcc_64/mkspecs/linux-g++ -o line.o ../GeometryQuick3DSample/line.cpp
      /home/joao/Qt/5.15.0/gcc_64/bin/moc -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /home/joao/qt5projects/build-GeometryQuick3DSample-Desktop_Qt_5_15_0_GCC_64bit-Debug/moc_predefs.h -I/home/joao/Qt/5.15.0/gcc_64/mkspecs/linux-g++ -I/home/joao/qt5projects/GeometryQuick3DSample -I/home/joao/Qt/5.15.0/gcc_64/include -I/home/joao/Qt/5.15.0/gcc_64/include/QtQuick -I/home/joao/Qt/5.15.0/gcc_64/include/QtGui -I/home/joao/Qt/5.15.0/gcc_64/include/QtQmlModels -I/home/joao/Qt/5.15.0/gcc_64/include/QtQml -I/home/joao/Qt/5.15.0/gcc_64/include/QtNetwork -I/home/joao/Qt/5.15.0/gcc_64/include/QtCore -I. -I/usr/include/c++/7 -I/usr/include/x86_64-linux-gnu/c++/7 -I/usr/include/c++/7/backward -I/usr/lib/gcc/x86_64-linux-gnu/7/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include ../GeometryQuick3DSample/line.h -o moc_line.cpp
      In file included from ../GeometryQuick3DSample/line.cpp:1:0:
      ../GeometryQuick3DSample/line.h:5:10: fatal error: QQuick3DGeometry: No such file or directory
       #include <QQuick3DGeometry>
                ^~~~~~~~~~~~~~~~~~
      compilation terminated.
      Makefile:894: recipe for target 'line.o' failed
      make: *** [line.o] Error 1
      make: *** Waiting for unfinished jobs....
      08:36:56: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project GeometryQuick3DSample (kit: Desktop Qt 5.15.0 GCC 64bit)
      When executing step "Make"
      08:36:56: Elapsed time: 00:00.
      

       

       

      Attachments

        1. GeometryQuick3DSample.zip
          5 kB
          Joao de Deus Sena Morgado
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            janichol Andy Nichols
            johngod Joao de Deus Sena Morgado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes