Project ERROR: Unknown module(s) in QT: Solid
Unsolved
Italian
-
Solid e' un modulo delle librerie KDE, non di Qt.
- installa git
- installa cmake
- clona la repository git://anongit.kde.org/solid.git
- apri una console sviluppatore (se usi il compilatore MSVC esegui qtenv2.bat and vcvarsall.bat)
- 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