[SOLVED] Installing QtQuick Controls
-
I think I'm using the dev branch (checked out serveral days ago)
BTW, how to compile the specific branch? I'm not sure whether I'm operating correct.
What I do is:
1). git clone git://gitorious.org/qt/qt5.git qt5
I guess the default branch is the stable branch. If I want a dev branch, then Switch to dev branch.
2). perl init-repository
3). and so on
Is this correct?
-
I will checked out another clean stable branch, and clone a http://qt.gitorious.org/qt/qtquickcontrols into qt5 folder. Am I operating right?
-
-
Thank you.
So I will do the following:
1). clone the stable branch now, into D:\Qt\git\qt5
2). cd into D:\Qt\git\qt5, perl init-repository
3). clone http://qt.gitorious.org/qt/qtquickcontrols, into D:\Qt\git\qt5\qtquickcontrols
4). configure -debug-and-release -opensource -opengl desktop -nomake tests -no-vcproj
5). jom\jom -j2Am I right?
My question is, as long as I put qtquickcontrols into the qt5 folder, the configure script will know the 'qtquickcontrols' is there, and do the right thing? Shall I need some more arguments or options when configure ?
Becausing cloning and building takes a long time and I've failed many times, So I'd like to ask the operations in detail. Thank you for your patience :)
-
The qtquickcontrols is still an independent project from qt5 and doesn't have to be in the same folder. Configure shouldn't have to do anything special to build it. It can be treated as any other qml project, but it might need write access to your qt directory for a proper installation.
After compiling qt5 in stable, all you really have to do to make controls work is "qmake", "make" and possibly "make install". They should deploy themselves into your qt5/qtbin/qml folder so that any qml code that imports QtQuick.Controls will find them in their search path.
-
Still failed..
I don't have a 'make', so I use nmake (or jom) after qmake. Is this OK?
This error:
d:\qt\stable\qtquickcontrols\examples\text.moc../src/documenthandler.h(44) : fatal error C1083: Cannot open include file: 'QQuickTextDocument': No such file or directory
I tried three versions of Qt: dev(checked out today, serveral hours ago) / stable(serveral days ago) / dev(serveral days ago)
then cd into qtquickcontrols, qmake, nmake ( or jom ), all result in the same error: 'QQuickTextDocument': No such file or directory
In fact, I searched my Qt folders, there are indeed no file named 'QQuickTextDocument'.
I switch the dev branch to stable branch, git pull, git submodule sync, git submodule update --recursive, search the folder, still no file named 'QQuickTextDocument'.
-
Is there any update on this? I am still getting same error.
"module "QtQuick.Controls" plugin "plugin" not found "I have downloaded qt5 and installed "stable" branch today. but I can't see qtquickcontrols in qt5 directory. So I downloaded qtquickcontrols from git, compiled and installed.
QtCreator imports other modules for example "LocalStorage 2.0" from QtQuick but not Controls.
I rechecked and Controls folder is there in Qt_install_dir/qml/QtQuick.ps: when I type "import QtQuickControls 1.0" QtCreator doesn't show red underline. does that mean creator found it?
-
jiggy: you can try Qt 5.1 alpha: http://qt-project.org/wiki/Qt-5.1-Alpha
There is qtquickcontrols in 5.1's directory.