Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    How to build Qt3d?

    QML and Qt Quick
    2
    5
    2398
    Loading More Posts
    • 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
      weiyuemin last edited by

      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 Reply Quote 0
      • S
        sl.sy.ifm last edited by

        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 Reply Quote 0
        • W
          weiyuemin last edited by

          Thank you :)
          I'll try it.

          1 Reply Last reply Reply Quote 0
          • W
            weiyuemin last edited by

            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 Reply Quote 0
            • W
              weiyuemin last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post