Solved Build failure on getting start of Qt/Qml Tutorial sample
-
I followed steps in https://doc.qt.io/qt-5/qtdoc-tutorials-alarms-example.html to create a project using Qt-Creator and files shown at page bottom, AlarmDelegate.qml, AlarmModel.qml, AlarmDialog.qml, Tumbler.qml, ..., qml.qrc. When I built it, I got error: [debug:qrc_qml.cpp] Error 1
What did I miss? What can I do to fix it?
-
hi @Stan-Huang
have you created a resource file as well and added your qml files to it ?
Did you rerun make after creating and adding the qml files to the resource file?
can you show more from the actual error?
can you show more of your project? -
I re-created the project and added the *.qml files by right-clicking on 'Resouces' and selecting 'Add Existing Files". I built it then and found it succeeded. I run it successfully too.