Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo SDK Support › Qt Quick 3d View3D Example not building

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25367

    Piyush

    Hello All,

     

    I just installed default fresh felgo.

     

    Qt Quick 3d View3D Example not building here is error as below,

     

     

    g++ -c -pipe -g -Wall -Wextra -fPIC -D_REENTRANT -DQT_QML_DEBUG -DQT_QUICK3D_LIB -DQT_QUICK3DRUNTIMERENDER_LIB -DQT_QUICK_LIB -DQT_OPENGL_LIB -DQT_QUICK3DUTILS_LIB -DQT_SHADERTOOLS_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QMLINTEGRATION_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../view3d -I. -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3D/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3D/6.4.1/QtQuick3D -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DRuntimeRender/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DRuntimeRender/6.4.1/QtQuick3DRuntimeRender -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DUtils/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DUtils/6.4.1/QtQuick3DUtils -I../../../../Felgo/Felgo/gcc_64/include/QtQuick/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQuick/6.4.1/QtQuick -I../../../../Felgo/Felgo/gcc_64/include -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3D -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DRuntimeRender -I../../../../Felgo/Felgo/gcc_64/include/QtQuick -I../../../../Felgo/Felgo/gcc_64/include/QtOpenGL -I../../../../Felgo/Felgo/gcc_64/include/QtShaderTools/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtShaderTools/6.4.1/QtShaderTools -I../../../../Felgo/Felgo/gcc_64/include/QtGui/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtGui/6.4.1/QtGui -I../../../../Felgo/Felgo/gcc_64/include/QtQuick3DUtils -I../../../../Felgo/Felgo/gcc_64/include/QtShaderTools -I../../../../Felgo/Felgo/gcc_64/include/QtGui -I../../../../Felgo/Felgo/gcc_64/include/QtQmlModels/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQmlModels/6.4.1/QtQmlModels -I../../../../Felgo/Felgo/gcc_64/include/QtQmlModels -I../../../../Felgo/Felgo/gcc_64/include/QtQml/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtQml/6.4.1/QtQml -I../../../../Felgo/Felgo/gcc_64/include/QtQml -I../../../../Felgo/Felgo/gcc_64/include/QtQmlIntegration -I../../../../Felgo/Felgo/gcc_64/include/QtNetwork -I../../../../Felgo/Felgo/gcc_64/include/QtCore/6.4.1 -I../../../../Felgo/Felgo/gcc_64/include/QtCore/6.4.1/QtCore -I../../../../Felgo/Felgo/gcc_64/include/QtConcurrent -I../../../../Felgo/Felgo/gcc_64/include/QtCore -I. -I../../../../Felgo/Felgo/gcc_64/mkspecs/linux-g++ -o main.o ../view3d/main.cpp
    ../view3d/main.cpp: In function ‘int main(int, char**)’:
    ../view3d/main.cpp:57:40: warning: ‘Qt::AA_EnableHighDpiScaling’ is deprecated: High-DPI scaling is always enabled. This attribute no longer has any effect. [-Wdeprecated-declarations]
    57 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    | ^~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../../../../Felgo/Felgo/gcc_64/include/QtCore/qbytearray.h:9,
    from ../../../../Felgo/Felgo/gcc_64/include/QtCore/qstringview.h:8,
    from ../../../../Felgo/Felgo/gcc_64/include/QtCore/qchar.h:651,
    from ../../../../Felgo/Felgo/gcc_64/include/QtCore/qstring.h:14,
    from ../../../../Felgo/Felgo/gcc_64/include/QtCore/qcoreapplication.h:8,
    from ../../../../Felgo/Felgo/gcc_64/include/QtGui/qguiapplication.h:8,
    from ../../../../Felgo/Felgo/gcc_64/include/QtGui/QGuiApplication:1,
    from ../view3d/main.cpp:51:
    ../../../../Felgo/Felgo/gcc_64/include/QtCore/qnamespace.h:439:9: note: declared here
    439 | AA_EnableHighDpiScaling Q_DECL_ENUMERATOR_DEPRECATED_X(
    | ^~~~~~~~~~~~~~~~~~~~~~~
    ../view3d/main.cpp:60:56: error: ‘idealSurfaceFormat’ is not a member of ‘QQuick3DViewport’
    60 | QSurfaceFormat::setDefaultFormat(QQuick3DViewport::idealSurfaceFormat());
    | ^~~~~~~~~~~~~~~~~~
    make: *** [Makefile:1545: main.o] Error 1
    08:09:29: The process “/usr/bin/make” exited with code 2.
    Error while building/deploying project view3d (kit: Felgo SDK Desktop Qt 6.4.1 GCC 64bit)
    When executing step “Make”

    #25368

    Günther
    Felgo Team

    Hi!

    If you are building the “Qt Quick 3D – View3D Example” from Qt you are not using any Felgo SDK components or features.

    Please note that when you build a Qt application with the Build Kits from the Felgo installation, you are building with Qt 6.4.1. It is possible that the project targets a different Qt version, where some APIs might have changed. I suggest to try with the demo project in the version that matches Qt 6.4.1: https://github.com/qt/qtquick3d/tree/6.4.1/examples/quick3d/view3d

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded