Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Italian
  4. Project ERROR: Unknown module(s) in QT: Solid
QtWS25 Last Chance

Project ERROR: Unknown module(s) in QT: Solid

Scheduled Pinned Locked Moved Unsolved Italian
3 Posts 2 Posters 887 Views
  • 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.
  • O Offline
    O Offline
    Ottaviane
    wrote on 20 Jun 2018, 16:05 last edited by
    #1

    Salve a tutti,
    sto provando ad utilizzare il modulo Solid con il QT Creator.
    Inserendo nel file .pro la direttiva QT += Solid
    il sistema mi torna l'errore "Project ERROR: Unknown module(s) in QT: Solid"
    Cosa posso fare?
    grazie e saluti.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      Ottaviane
      wrote on 20 Jun 2018, 16:17 last edited by
      #2

      provo ad eseguire l'applicativo "Qt Maintenance Tool " ma non trovo nessun modulo Solid da poter installare!

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VRonin
        wrote on 21 Jun 2018, 07:28 last edited by
        #3

        Solid e' un modulo delle librerie KDE, non di Qt.

        1. installa git
        2. installa cmake
        3. clona la repository git://anongit.kde.org/solid.git
        4. apri una console sviluppatore (se usi il compilatore MSVC esegui qtenv2.bat and vcvarsall.bat)
        5. esegui
        set KDELIBPATH = C:\KDE
        mkdir build
        cd build
        cmake -G "NMake Makefiles" -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX=%KDELIBPATH% -DCMAKE_BUILD_TYPE=DEBUG ../
        cmake --build .
        cmake --build . --target install
        cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%KDELIBPATH% -DCMAKE_BUILD_TYPE=RELEASE ../
        cmake --build .
        cmake --build . --target install
        

        Questo installera' il modulo Solid in C:\KDE

        Per usarlo aggiungi al tuo .pro file:

        LIBS += -LC:/KDE/lib
        INCLUDEPATH +=  C:/KDE/include/KF5/Solid
        CONFIG(release, debug|release) {
        LIBS += -lKF5Solid
        }
        CONFIG(debug, debug|release) {
        LIBS += -lKF5Solidd
        }
        

        Per installare su altri sistemi operativi e/o compilatori la differenza principale e' il generatore gi cmake (la parte dopo -G) una lista di possibili generatori e' disponibile su https://cmake.org/cmake/help/v3.0/manual/cmake-generators.7.html

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1

        3/3

        21 Jun 2018, 07:28

        • Login

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