Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to create QTDeclarative plugin / library?
Forum Updated to NodeBB v4.3 + New Features

How to create QTDeclarative plugin / library?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtdeclarati
2 Posts 2 Posters 1.6k Views 1 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.
  • Nik-LzN Offline
    Nik-LzN Offline
    Nik-Lz
    wrote on last edited by
    #1

    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:

    Qt5DeclarativeConfig.cmake
    qt5declarative-config.cmake
    

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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