[SOLVED] Install QtQuick3D for Qt 5.2 in Windows?
-
I've read that Qt3D and QtQuick3D is not supported for Qt 5.x yet, but was wondering if there's a way to install it and experiment with it. Is there?
-
Thanks sierdzio.
Seems mine and your last reply got erased after some technical difficulties with qt-project.org.
I tried following the instructions at "qt-project.org/wiki/Qt3D-Installation":http://qt-project.org/wiki/Qt3D-Installation, but I get an error at the step that says “Build the project in Release mode.” of Option 1. I’m pressing Ctrl+B to build Qt3D.
The error I get is:
bq. Failed to run: perl -w C:\Qt\5.2.0\mingw48_32\bin\syncqt.pl -module Qt3D -version 5.3.0 -outdir C:/Users/trusktr/src/build-qt3d-Desktop_Qt_5_2_0_MinGW_32bit-Release C:/Users/trusktr/src/qt3d
I’ve installed Strawberry Perl for Windows and it works in cmd.
You told me to try qmake /path/to/qt3d.pro as in Option 2. So I did this:
@C:\Users\trusktr\src\qt3d>qmake qt3d.pro
Info: creating cache file C:/Users/trusktr/src/qt3d/.qmake.cacheC:\Users\trusktr\src\qt3d>@
What do I do after that?
-
You need to run make:
@
make -j 5
@Since you are using MinGW, it will be called something like "mingw32-make" or similar. The number after "j" denotes a number of concurrent build jobs that you allow "make" to conduct (it's usually ok to pass the number of cores ini your CPU here).
-
aaaah, thanks. I thought I had to make, but "make" command was not found. I come from Linux, so Windows is awkward.
-
Haha, I know exactly what you mean, I'm using mostly Linux, too. But since the rest of the world wants Windows and Mac packages, we need to visit the other OSes sometimes :)
-
Exactly! :)
So,After running make for a while, I got this error:
@./.obj\release\qglcolladafxeffectfactory.o: file not recognized: File truncated
collect2.exe: error: ld returned 1 exit status
Makefile.Release:524: recipe for target '....\lib\Qt53D.dll' failed
mingw32-make[3]: *** [....\lib\Qt53D.dll] Error 1
mingw32-make[3]: Leaving directory 'C:/Users/trusktr/src/qt3d/src/threed'
Makefile:38: recipe for target 'release-all' failed
mingw32-make[2]: *** [release-all] Error 2
mingw32-make[2]: Leaving directory 'C:/Users/trusktr/src/qt3d/src/threed'
Makefile:40: recipe for target 'sub-threed-make_first-ordered' failed
mingw32-make[1]: *** [sub-threed-make_first-ordered] Error 2
mingw32-make[1]: Leaving directory 'C:/Users/trusktr/src/qt3d/src'
makefile:43: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2@Any idea why this might happen?
-
Sweet! I had to remove the object.o files because I'd interrupted a previous make process, so they were truncated/incomplete. It worked:
@mingw32-make -j 3 install@
Now when I try running the "cubehouse" example, it says
@module "Qt3D" version 1.0 is not installed@
The QML files contain
@import Qt3D 1.0
import Qt3D.Shapes 1.0@How might I determine if I've actually installed it? Or do I need to change the "1.0" to something else?
EDIT 12:33pm: Nevermind! I had to change them to
@import Qt3D 2.0
import Qt3D.Shapes 2.0@and that problem is gone. Now assuming that the stock cubehouse example included with Qt Creator in Qt 5.2 was written for Qt3D 1.0, this is why I have new problems... But at least I know Qt3D is installed!
SOLVED
-
Wow, that was a long journey, for sure :) Congratulations and happy coding.
Oh, and since you are fresh with new experiences, maybe you can update the wiki page you mentioned with your discoveries?
-
[quote author="sierdzio" date="1389769849"]Wow, that was a long journey, for sure :) Congratulations and happy coding.
Oh, and since you are fresh with new experiences, maybe you can update the wiki page you mentioned with your discoveries?[/quote]
I've updated the wiki. The added steps are for MinGW. Some more details may still be needed for MSVC/VS users.