Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to build Qt3d?
Forum Update on Monday, May 27th 2025

How to build Qt3d?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    weiyuemin
    wrote on 27 Mar 2013, 05:26 last edited by
    #1

    I cloned Qt3d from git://gitorious.org/qt/qt3d.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://codereview.qt-project.org:29418/qt/qt5.git
    cd qt5
    ./init-repository --codereview-username <username> \
        --module-subset=qtbase,qtsvg,qtdeclarative,qttools,qtxmlpatterns,qtdoc,qlalr,qtrepotools,qtqa,qtlocation,qt3d
    git submodule foreach "git fetch gerrit && git reset --hard gerrit/master"
    cd qt3d
    scp -p -P 29418 codereview.qt-project.org:hooks/commit-msg .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
    

    @

    1).
    It seems that I don't have permissions as an anonymous user when executing "git clone ssh://codereview.qt-project.org:29418/qt/qt5.git"

    Is git://gitorious.org/qt/qt5.git the same as ssh://codereview.qt-project.org:29418/qt/qt5.git ?

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

    3).
    I guess I won't have permissions to execute this: scp -p -P 29418 codereview.qt-project.org:hooks/commit-msg .git/hooks/
    Although I haven't come to this step.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sl.sy.ifm
      wrote on 27 Mar 2013, 07:17 last edited by
      #2

      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 ( https://codereview.qt-project.org/ )

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weiyuemin
        wrote on 27 Mar 2013, 07:21 last edited by
        #3

        Thank you :)
        I'll try it.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          weiyuemin
          wrote on 27 Mar 2013, 13:16 last edited by
          #4

          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?

          1 Reply Last reply
          0
          • W Offline
            W Offline
            weiyuemin
            wrote on 27 Mar 2013, 13:17 last edited by
            #5

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

            1 Reply Last reply
            0

            1/5

            27 Mar 2013, 05:26

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved