Qt World Summit: Submit your Presentation

Yet another Unknown module(s) in QT: 3dcore

  • I have successfully downloaded QT6.0.1 with online download, with qt3d support of course.
    I have setup correctly the kit but, still no luck building a very simple code:

    Unknown module(s) in QT: 3dcore 3drender 3dextras

    Effective qmake call:
    /opt/Qt/6.0.1/gcc_64/bin/qmake /home/user/projects/cppqt3d/simple-cpp.pro -spec linux-g++ CONFIG+=qtquickcompiler && /usr/bin/make qmake_all

    My pro:

    TEMPLATE = app
    TARGET = simple-cpp
    # Include stuff
    # Libs stuff
    QT += 3dcore 3drender 3dextras
    SOURCES += \
        main.cpp \
    HEADERS += \

    Of course the sample was taken out of a sample that compiled with my system qt5.
    What is wrong here ? Is there anyway I can manually use qmake to discover why it does not understand where are the Qt3d install files (ie /opt/Qt/AdditionalLibraries/Qt/qt3d-6.0.1/Src/include)

    Thank you very much for your help

  • Edit, scrolling down a bit, it looks like the QT6 release I downloaded might not be a real binary release: https://forum.qt.io/topic/123926/unknown-module-networkauth/2

    Will investigate this: https://www.kdab.com/getting-your-3d-ready-for-qt-6/

    edit2: I managed to build, with cmake, but I am not sure now where to install now in order for qmake to find the includes/libs.

  • @McTob Eventually find the most interesting lead thanks to the last link above with the following command:

    /opt/Qt/Tools/Conan/conan install qt3d/6.0.1@qt/final --build=missing -s build_type=Release -g cmake_paths -g=cmake -g deploy --profile=/opt/Qt/Tools/Conan/profiles/qt-6.0.1-gcc-x86_64

    EDIT2: finally changed my mind again, cmake was much faster (and I just know it better).

    /opt/Qt/Tools/CMake/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/Qt/6.0.1/gcc_64/ /opt/Qt/AdditionalLibraries/Qt/qt3d-6.0.1/Src/ 
    make -j12
    make install

Log in to reply