Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. wizard-made creator plugin builds fail
QtWS25 Last Chance

wizard-made creator plugin builds fail

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 382 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.
  • M Offline
    M Offline
    mnbv
    wrote on last edited by mnbv
    #1

    so i'm trying to build a creator plugin (windows, msvc 2019 64-bit, qt 5.15.2). i just made a new one with the wizard. it doesn't build. cmake fails with:

     Could not find a package configuration file provided by "QtCreator" with
      any of the following names:
    
        QtCreatorConfig.cmake
        qtcreator-config.cmake
    
      Add the installation prefix of "QtCreator" to CMAKE_PREFIX_PATH or set
      "QtCreator_DIR" to a directory containing one of the above files.  If
      "QtCreator" provides a separate development package or SDK, be sure it has
      been installed.
    

    i built creator just fine (shadow build, 4.14.0 from git). i tried adding my qtcreator source path, its src subdir, its bin subdir, my qtcreator build path, its src subdir, its bin subdir, and my actual installed-with-the-installer qtcreator (4.14.0) path, its src subdir, and its bin subdir. all fail.

    in fact, neither QtCreatorConfig.cmake nor qtcreator-config.cmake exist anywhere on my machine.

    so...... what is it expecting me to do? i sort of expected the wizard-created plugin to build right out of the box. i've been referring to https://doc.qt.io/qtcreator-extending/first-plugin.html as well.

    1 Reply Last reply
    0
    • kkoehneK Offline
      kkoehneK Offline
      kkoehne
      Moderators
      wrote on last edited by
      #2

      You most likely didn't set the right 'Qt Creator build' path in the wizard. How does the beginning of the generated CMakeLists.txt file look for you? It should contain something like

      list(APPEND CMAKE_PREFIX_PATH "C:/dev/creator/master/build-qt-creator-6.2.2-amd64")
      

      where the path should point to the local directory you built Qt Creator in.

      Director R&D, The Qt Company

      1 Reply Last reply
      1
      • N Offline
        N Offline
        Nico00
        wrote on last edited by Nico00
        #3
        This post is deleted!
        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