[SOLVED] Has anyone built Qt3D on windows7 x64 using Qt 5.2.1 for windows with MinGW4.8?
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?
The MinGW part for compiling QT3D looks rather basic. Probably you should post the actual error messages.
Ok, so step by step what i have done:
I downloaded qt3d from git
git clone git://gitorious.org/qt/qt3d.git qt3d
to disk d:
I made steps from http://qt-project.org/wiki/Qt3D-Installation
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: *** [.obj/debug/qglpainter.o] Error 1@
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.
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.
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.
Ok, thanks for help and i will try to do something in this matter. I will read materials you have linked.
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
Find the line with context()->...->glReadPixels(); or something like that and change it to just glReadPixels();
@context()->functions()->glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, data);@
@glReadPixels(x, y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, data);@
Hi, yes changing line of code as kingctan said works very well. Thank you for reliable help. I am changing topic to solved.
Thanks guys it works fine on MacOS X Mavericks too.