Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Has anyone built Qt3D on windows7 x64 using Qt 5.2.1 for windows with MinGW4.8?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Has anyone built Qt3D on windows7 x64 using Qt 5.2.1 for windows with MinGW4.8?

Scheduled Pinned Locked Moved Installation and Deployment
12 Posts 6 Posters 5.6k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    sibislaw2
    wrote on last edited by
    #1

    Has anyone had bulit Qt3D module using windows 7 64 bit with qt 5.2.1 package with mingw downloaded from http://qt-project.org/downloads and it was succesfull ?

    Can anyone tell me where i can find instruction to do it step by step ?

    Instructions from http://qt-project.org/wiki/Qt3D-Installation dont work properly (errors while compiling in qt creator).

    Other instructions found in network dont work too ..... :-(

    Maybe there is step-by-step tutorial in network, or someone had done it and will print steps leading to succesfull compilation?

    Please help.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      The MinGW part for compiling QT3D looks rather basic. Probably you should post the actual error messages.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sibislaw2
        wrote on last edited by
        #3

        Ok, so step by step what i have done:

        1. I downloaded and installed http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-windows-x86-mingw48_opengl-5.2.1.exe

        2. I downloaded qt3d from git
          git clone git://gitorious.org/qt/qt3d.git qt3d
          to disk d:

        3. I made steps from http://qt-project.org/wiki/Qt3D-Installation
          Windows (minGW)

        4. I typed mingw32-make -j 3 install and got:

        @painting\qglpainter.cpp: In member function 'int QGLPainter::pickObject(int, int) const':
        painting\qglpainter.cpp:2348:29: error: 'class QOpenGLFunctions' has no member named 'glReadPixels'
        context()->functions()->glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, data);
        ^
        mingw32-make[3]: *** [.obj/debug/qglpainter.o] Error 1@

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          Downloaded qt3d and tried to make a build with Qt 5.1.0 MinGW version on windows 7 64 bit. I have the very same problem.

          In case you like to move forward, the only chance I see is to try out with another compiler or on Ubuntu.
          Unfortunately I have no experience with Qt3D nor the openGL stuff.

          Another alternative is to wait and see, if someone with experience can help.

          Good luck!

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sibislaw2
            wrote on last edited by
            #5

            Thank you for your answers.

            On arch linux it works brilliant, i managed to download and install packets using pacman.

            I tried also MSVC 2010 on windows, but with no positive results.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              That sounds a bit strange.
              For more information you may click on "qt3d tag":http://qt-project.org/search/tag/qt3d for more posts and other information.
              I have found also "this post.":http://qt-project.org/forums/viewthread/37362/ Apparently, the thoughts are to ship qt3d with Qt5.3 or Qt5.4.
              You can check also on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa for a reported bug and a possible work around. In case you cannot find anything reported there yet, please file a bug report.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sibislaw2
                wrote on last edited by
                #7

                Ok, thanks for help and i will try to do something in this matter. I will read materials you have linked.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  Guemsterk
                  wrote on last edited by
                  #8

                  Hi !
                  I had the same problem, and I found a post from yesterday (30/03/2014) "there":http://dragly.org/2014/03/30/recent-commit-causes-qt3d-to-fail-compilation/ saying to use an older version of the git repository, using :

                  @ git checkout d3338a9 -b older_version @

                  on the already-set-up git depository of qt3d.

                  I was able to successfully install and compile the teaservice example ( found in the gt3d git repository) with Qt 5.2.1 and mingw

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    Cherum
                    wrote on last edited by
                    #9

                    Find the line with context()->...->glReadPixels(); or something like that and change it to just glReadPixels();

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kingctan
                      wrote on last edited by
                      #10

                      good, change
                      @context()->functions()->glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, data);@

                      to

                      @glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, data);@

                      it works.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sibislaw2
                        wrote on last edited by
                        #11

                        Hi, yes changing line of code as kingctan said works very well. Thank you for reliable help. I am changing topic to solved.

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          jbflamant
                          wrote on last edited by
                          #12

                          Thanks guys it works fine on MacOS X Mavericks too.

                          1 Reply Last reply
                          0

                          • Login

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