make install QML book example on windows
-
Hello,
I'm new in Qt and I'm reading the QML Book to learn QT.
I'm currently on chapter 17 about Plugins and it's said that we have to execute make install to be able to use it.
So I tried to execute
C:\Data2\alainb\Qt\Tools\mingw730_64\bin\mingw32-make.exe install
in the CityUI folder but I get the following error message.mingw32-make: *** No rule to make target 'install'. Stop.
How to do please?
Thanks,
Alain -
@ABponant said in make install QML book example on windows:
in the CityUI folder
You need to do that in your build folder (look for a file named "Makefile").
-
Ok so I tried the following:
C:\Data2\alainb\Documents\Qt\qmlbook-master\docs\ch17-extensions\src\build-CityUI-Desktop_Qt_5_12_1_MSVC2017_64bit-Debug>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake" install Microsoft (R) Program Maintenance Utility Version 14.16.27027.1 Copyright (C) Microsoft Corporation. Tous droits réservés. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\nmake.exe" -f Makefile.Debug install Microsoft (R) Program Maintenance Utility Version 14.16.27027.1 Copyright (C) Microsoft Corporation. Tous droits réservés.
I don't really know if it means that nmake did its job but when I execute CityUI from QTCreator, I still get the following message:
QQmlApplicationEngine failed to load component qrc:/main.qml:6 module "org.example.io" is not installed
I cannot guess what to do...
Alain
-
Looks like some QML module (I guess it's coming from the book) is missing. Hard to say what to fix without more details, but most probably:
- qmldir is not set
- module is not added to QRC
- or module was not found at runtime
-
For qml you must rin qmake.
And for the correct qmake-command.If you have Qtcreator installed... Follow theese steps to reproduce to commadline.
Go to page QtCreator->Sidebar->Projects->Build->Build Settings
Below label 'Build Steps' you have 'qmake'.
At right side you have the 'detail' menu. Click it.
Copy the code. Run code in terminal.
After that you can run 'make'. And then 'make install'.In case you get into problem. Hers is the call I used for that very precis situation.
/home/ptr/Progs/Programming/QT5.14/5.14.0/gcc_64/bin/qmake /home/ptr/development/qt/plugins/fileio/fileio.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug && /usr/bin/make qmake_all
Modify so it fits your system.
AFAIK, you don't need to be in the source directory.If this help you, please mark the thread as solved