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. [SOLVED]New project with kit that has no Qt version assigned

[SOLVED]New project with kit that has no Qt version assigned

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 3.8k 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.
  • Chris KawaC Offline
    Chris KawaC Offline
    Chris Kawa
    Lifetime Qt Champion
    wrote on last edited by
    #1

    Hi,

    I'd like to create new non Qt project in Qt Creator.
    I have created a kit that has a compiler (MinGW) and the debugger set, but no Qt lib assigned.
    I start the new non Qt project wizard, it lets me to select a directory, project name etc. and then shows the list of available kits, but the list only contains kits that have Qt lib assigned to them and not my Qtless MinGW kit.

    I could assign some "dummy" Qt lib to this kit but won't it affect the configuration somehow like force some lib dependencies on my app?

    Does anyone know a way to do this?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      If you want to use qmake as your build system, then you need a Qt version set up in your kit, even if you do not plan on using Qt. This is unfortunate, but I do not see a way around it: Qmake is a buildsystem that is part of each Qt installation. Most wizards in Qt Creator create qmake-based projects.

      PS: Autotools, cmake and generic projects do work fine without a Qt version in the kits.

      PPS: By default qmake projects will link to Qt Core and Qt Gui, so you need to tell qmake not to do that (put "CONFIG -= QT" IIRC into your .pro-file).

      1 Reply Last reply
      0
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Ah, yes, its so obvious. I forgot that it actually uses qmake :)
        It would be nice though if there was a "standalone" qmake without the whole Qt lib.
        I'll experiment with creating such minimal qmake package that can be set as a Qt version in Creator.
        Lets see if it works.

        Thanks!

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Creator assumes qmake is a way to discover details on a Qt installation. As soon as if sees a qmake path it will run qmake -query to find all kind of paths and then it will look at the QtCore library to find out the target ABIs this Qt version supports. So you will need to keep the QtCore in the location "qmake -query" claims the Qt libraries are located in.

          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