Error installing Qt3D with QtCreator and qt5
-
Hi Lauriane,
I replaced "#include <Qt3D/" with "#include <" in all ".h" files of project qt3d.pro and so far mingw32-make keeps running (not finished yet, though).
Rene
-
Hi Rene,
Thanks for your reply :)
I uninstalled Qt 5.1.1 and re-installed it, in order to discard all the changes I hade made in the configuration.
I followed what is written on "this post":http://stackoverflow.com/questions/15297870/how-to-install-qt3d-on-qt5?rq=1
They say that the downloading from git must be done using a git client. So I downloaded the git project with git, and run
@qmake
mingw32-make.exe@Everything went fine, but I still cannot use Qt3D on my project.
I copied all files into C:/Qt5.1.1/5.1.1/mingw48-32 (the .dll into bin/, include and qml folders into include/ and qml/)I created a new QtQuick 2 project with QtCreator, at the beginning of my main.qml file, I wrote
@import QtQuick 2.0
import Qt3D 1.0
import Qt3D.Shapes 1.0@
But if I run it I get the errors:
@module "Qt3D" is not installed
import Qt3D 1.0
^@
@module "Qt3D.Shapes" is not installed
import Qt3D.Shapes 1.0
^@On this page of "qt documentation":http://doc-snapshot.qt-project.org/qt3d-1.0/qt3d-troubleshooting.html , it seems that the "qmldir" file is missing from the qml/Qt3D folder. But the documentation applies to Qt 4.7.3... I tried to create one, but I get more errors.
Keeping searching...
Lauriane
-
Hi Lauriane,
- Just to get things clear, you did also install ActivePerl, Python, Ruby, etc (and optional webkit stuff) as suggested via StackOverflow? ANGLE too?
Seems a lot of extra stuff to do OpenGL (and I truly hate multi, multi language development. Add Java for Android, objective-c for osx, VB for Excel and Access and your head will spin).
- Some Digia "official" said (in jan 2013) Qt3D should be part of Qt 5.2 but didn't make it. (I rechecked my Qt 5.2.1and it is still NOT included, duh, I knew that)
I'm following your lead now...
-
At last, I succeeded!
So,- first I downloaded the latest version of Qt, Qt 5.2.1
- I downloaded the sources of Qt3D from the git repository with a git client into the folder "C:\qt3d"
- with the terminal "Qt 5.2.1 for Desktop (MinGW 4.8 32 bit)"
@cd C:\qt3D
qmake
mingw32-make.exe install@
the "install" is important so that all files are copied into Qt configuration folder.
Then, in the .pro file, add
@QT += 3d@And in main.qml file:
@import QtQuick 2.0
import Qt3D 2.0
import Qt3D.Shapes 2.0@Lauriane
-
Hi
You beat me to it, cudo's!! Running it now.
Would be nice if you made the above in a final document and send it to the Qt3D developers. I bet there are much more NOOBS like us wanting to use it. And now they also know it installs in Qt 5.2.1 running on W7-x86 and W8.1-x86(?)Thanks a lot!
P.S.: I changed the Qtenv.bat and rem'ed the PATH and added the folders to my regular PATH environment in Windows system settings, making the "MingW32 Terminal" obsolete (any DOS box will work now)
-
Thanks Rene & Lauriane, i finally could build Qt3d ! :)
-
Hello lauriane,
i know its quite a while since you were active in this post but can you explain to me what you mean by "with the terminal "Qt 5.2.1 for Desktop (MinGW 4.8 32 bit)""? I don't know where to write these commands.
Eduard
-
Hi @eduard9119,
You might want to consider installing the official Qt 5.5.0 beta: http://download.qt.io/snapshots/qt/5.5/5.5.0-beta/
It includes Qt 3D as a tech preview. No need to build it yourself.
-
Hi JKSH,
first i want to thank you for your fast response.
According to your advice tried the QT 5.5 beta but "import Qt3D 2.0" is red underlined and if i want to build the qt3d examples just black windows appear. Do you know the cause of this problem? Did i miss to set up some settings here? -
@eduard9119 said:
According to your advice tried the QT 5.5 beta but "import Qt3D 2.0" is red underlined
- What platform are you using?
- What compiler are you using?
and if i want to build the qt3d examples just black windows appear.
- What graphics card do you have?
- Are your graphics drivers up to date?
-
Ok most of the examples work now.
I'm currently trying to programm an object loader myself.
I'm working on a Windows 8.1 64Bit System with MSVC2013. Moreover I've got a NVIDIA GeForce GTX 850M with the latest drivers installed.
I can use 3d objects in my programm but i can't load those for now. But i think it's a lack of my understanding in 3d programming and qt3d. I don't think it's a big problem.
Thank you for you help here!