Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to create QTDeclarative plugin / library?
Nik-Lz last edited by
I just started with Qt. I needed to install Qt because it was in a CMake dependencies of the program i actually want.
Now when i build this cmakeLists file, it outputs the following error:
*CMake Error at src/CMakeLists.txt:234 (FIND_PACKAGE):
By not providing "FindQt5Declarative.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"Qt5Declarative", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Declarative"
with any of the following names:
Add the installation prefix of "Qt5Declarative" to CMAKE_PREFIX_PATH or set
"Qt5Declarative_DIR" to a directory containing one of the above files. If
"Qt5Declarative" provides a separate development package or SDK, be sure it
has been installed.*
So in short i need this Qt5Declarative plugin / library / whatever it is. I've been searching for hours now and i can't find it. I have Windows 8.1 x86_64, latest Qt version 5.9. I saw here the QtDeclarative dependecies, which are a lot, but i must have most of them in my QtCreator IDE. Still i can't find QtDeclarative? Why? Where is it, where do i download / build / install it?
Questions, questions that demand answers. Thanks in advance.
Hi and welcome to devnet,
Because that module has been deprecated and removed in Qt 5.6. So you need to either install an older version of Qt, build the module yourself (it should still be possible) or update the code to use Qt Quick.