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


  • Moderators

    @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").



  • @sierdzio ,

    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


  • Moderators

    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

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.