How to build Qt3d?

  • I cloned Qt3d from git://, but a little confused about how to build it.

    It this written in README correct?

    First fetch the Qt5 source tree and Qt3D master branch:

    cd ~/depot
    git clone ssh://
    cd qt5
    ./init-repository --codereview-username <username> \
    git submodule foreach "git fetch gerrit && git reset --hard gerrit/master"
    cd qt3d
    scp -p -P 29418 .git/hooks/
    git fetch gerrit
    git checkout --track -b master gerrit/master

    If you are reading this file then somehow you probably already got this far anyway.

    Now build Qt5, which will also build Qt3D as a module:

    cd ~/build
    mkdir qt5
    cd qt5
    ~/depot/qt5/configure -developer-build -opensource -confirm-license -no-webkit -no-phonon -nomake tests \
        -nomake examples -declarative -opengl -svg && make -j 4


    It seems that I don't have permissions as an anonymous user when executing "git clone ssh://"

    Is git:// the same as ssh:// ?

    What does git fetch gerrit && git reset --hard gerrit/master mean?

    I guess I won't have permissions to execute this: scp -p -P 29418 .git/hooks/
    Although I haven't come to this step.

  • I didn't followed that guide to build qt3d together with qt5 ...
    I built it like an separated library, so doing "qmake & make" in Qt3D folder

    when I look across you snippet I see things like "codereview-username <username>" ... I guess this are the steps how you could pull qt3d to push patches to gerrit ( )

  • Thank you :)
    I'll try it.

  • I don't have a make so I use 'nmake' after qmake.

    After the making process finish, I found many .exe files in my bin folder, like 'animations_qml.exe', 'basket.exe', 'basket_qml.exe', and so on.

    But when I run any of them, it prompts "can't find Qt53DQuickd.dll", or "can't find Qt53Dd.dll". I can't find these dlls in my whole qt3d folder.

    It seems that only examples have been made, the dlls have not been made..

    Am I missing something?

  • Oh, Qt53Dd.dll and Qt53DQuickd.dll are in my $QTDIR\bin. :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.