Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. make install QML book example on windows
Forum Updated to NodeBB v4.3 + New Features

make install QML book example on windows

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 822 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ABponant
    wrote on last edited by
    #1

    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

    sierdzioS 1 Reply Last reply
    0
    • A ABponant

      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

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ABponant
        wrote on last edited by
        #3

        @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

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          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

          (Z(:^

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SwePtr
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved