Qt creator no valid kits found linux

QtCreator: No valid kits found

Installed just the IDE on Windows 7. I want to create a Plain C++ Project (Non-QT Project); however I get an error: No valid kits found. When I click on Options->Kits, I see the Desktop (default) kit, and it shows no errors.

Am I getting the error because I didn’t install a Qt library? If so, is there any way I can bypass downloading/installing that and just use the IDE?

C++ Solutions

Solution 1 — C++

Though OP is asking about Windows, this error also occurs on Ubuntu Linux and Google lists this result first when you search for the error»QtCreator: No valid kits found».

On Ubuntu this is solved by running:

sudo apt-get install qt5-default 
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui 

This question is answered here and here, though those entries are less SEO-friendly.

Solution 2 — C++

Found the issue. Qt Creator wants you to use a compiler listed under one of their Qt libraries. Use the Maintenance Tool to install this.

> Go to Tools -> Options. Select Build & Run on left. Open Kits tab. > You should have Manual -> Desktop (default) line in list. Choose it. > Now select something like Qt 5.5.1 in PATH (qt5) in Qt version > combobox and click Apply button. From now you should be able to > create, build and run empty Qt project.

Solution 3 — C++

No valid Kits found The problem occurs because qt-creator don’t know the versions of your qt, your compiler or your debugger. First off, let’s solve the Qt versions. It may normally solve the others too ;).

You try to create a new project, run select a kit and then there is no kit available in the list.

  1. Execute in your terminal the command: sudo apt-get install qt5-default to install qt version 5.
  2. Verify the version of your Qt and the location of your qmake file. Do this by executing in your terminal the command qmake —version. You may have a result similar to this line. QMake version 3.1 Using Qt version 5.9.5 in /usr/lib/x86_64-linux-gnu. What’s important here is the location /usr/lib/x86_64-linux-gnu.
  3. Open your Qt-creator.
  4. Go to «Tools>Options» or «Outils>Options»
  5. Select the Qt Versions combobox and select and click «Add» or «Ajouter»
  6. Then find the qmake file in the location of step 2. Here /usr/lib/x86_64-linux-gnu/qt5/bin/ here you have the qmake file for qt5. Open it, click Apply.
  7. Go to «Kits» combobox. Select Desktop(by default) or Desktop(par défaut). Then scroll down to the button to select Qt version: and list down to select the version you just add. 8.Then apply all. Check your compiler and debugger and it’s ok. You’re done.
Читайте также:  Tp link ub500 linux driver

Solution 4 — C++

In my case the issue was that my default kit’s Qt version was None .

Go to Tools -> Options. -> Build & Run -> Kits tab, click on the kit you want to make as default and you’ll see a list of fields beneath, one of which is Qt version . If it’s None , change it to one of the versions available to you in the Qt versions tab which is just next to the Kits tab.

Solution 5 — C++

For QT 5.* if you face error at Kits, like No Valid Kits Found , go to Options->Build&Run-> (Kits tab) then you see a Manual category which should list Desktop as the default.

Just go to your OS Terminal and write sudo apt-get install qt5-default , go back to QT Creator and Start your New Project, and there you see the kit option Desktop included in the list.

Solution 6 — C++

I had a similar problems after installing Qt in Windows.

This could be because only the Qt creator was installed and not any of the Qt libraries during initial installation. When installing from scratch use the online installer and select the following to install:

  1. For starting, select at least one version of Qt libs (ex Qt 5.15.1) and the c++ compiler of choice (ex MinGW 8.1.0 64-bit).
  2. Select Developer and Designer Tools. I kept the selected defaults.

Note: The choice of the Qt libs and Tools can also be changed post initial installation using MaintenanceTool.exe under Qt installation dir C:\Qt . See here.

Solution 7 — C++

In my case, it goes well after I installed CMake in my system:)

for manjaro operating system.

Solution 8 — C++

Another way to solve this issue (I did it on Ubuntu 16.04 but it might also work for windows and other Ubuntu versions):

While going through the installation steps, when you reach the step where you choose which packages to install via check boxes, instead of just pressing next with the default «Tools» checkbox selected also check the box for the version of QT you would like in addition to the «Tools» box. I usually check the first box which is the latest version of QT.

After doing this you should not see the «no valid kits found» issue described in this thread.

Solution 9 — C++

on macOS: (as of 2021)
QMake version 3.1 Using Qt version 6.0.3 in /usr/local/Cellar/qt/6.0.3_2/lib (This is the path to the QT installation --> `/usr/local/Cellar/qt/6.0.3_2/lib`) 
  1. Go to `Preferences -> Kits -> Qt Versions
  2. Click Add then navigate to /usr/local/Cellar/qt/6.0.3_2/bin
  3. Select qmake executable
  4. Go to Kits tab
  5. Select Desktop (x86-darwin. ) in the list
  6. Scroll down to Qt version dropdown box and select your newly installed Qt version.
  7. Click Ok.
Читайте также:  Узнать ip жертвы kali linux

Solution 10 — C++

I had solved this issue on my Linux mint , first :

  1. install qmake : sudo apt-get install qt5-default
  2. go to terminal and type qmake, you should get the path of qmake
  3. create a new project (application widget type ), when you reach the kits part you should find desktop list item, click manage then go to the kits tab bar and scroll down until you find a drop-down called Qt version, click manage and paste the path there then submit.
  4. Now the settings are done !!

Источник

Qt Creator on Fedora 25: «No valid kits found»

If I try to open an existing project in Qt Creator I always get «No valid kits found». I found a lot of Q&A around this, but on my installation I am not able to select a valid Qt version because: In Build&Run->Kids->Desktop->QtVersion: None I can not see any other entry in this field. As already mentioned: It is a Fedora 25 x86_64 version. Qt Creator gives in comand line:

Is this a file which should exist somewhere? Can it be downloaded somewhere? Manual config seems to be not possible, because qt version can not be selected. Is there any package which I did not have installed? Is there any meta package which I can use to get a valid installation? What I have installed:

 dbusmenu-qt5-0.9.3-0.11.20150604.fc24.x86_64 qt5-qtbase-gui-5.7.0-3.fc25.x86_64 qt5-qtwebchannel-5.7.0-2.fc25.x86_64 qt5-qttools-static-5.7.0-3.fc25.x86_64 qt5-qtconfiguration-devel-0.3.1-2.fc24.x86_64 adwaita-qt5-0.4-3.fc25.x86_64 qt5-qtsvg-devel-5.7.0-2.fc25.x86_64 qt5-qtbase-common-5.7.0-3.fc25.noarch qt5-qtlocation-devel-5.7.0-2.fc25.x86_64 qt5-qttools-libs-designer-5.7.0-3.fc25.x86_64 qt5-qtx11extras-devel-5.7.0-2.fc25.x86_64 qt5-qtserialport-5.7.0-2.fc25.x86_64 qt5-qttools-devel-5.7.0-3.fc25.x86_64 qt5-qtconfiguration-0.3.1-2.fc24.x86_64 qt5-qtwayland-devel-5.7.0-2.fc25.x86_64 qt5-qttools-libs-clucene-5.7.0-3.fc25.x86_64 qt5-qtlocation-5.7.0-2.fc25.x86_64 quazip-qt5-0.7.2-1.fc25.x86_64 qt5-qttools-libs-designercomponents-5.7.0-3.fc25.x86_64 qt5-qttools-5.7.0-3.fc25.x86_64 qt5-qtenginio-devel-1.6.1-2.fc25.x86_64 qt5-linguist-5.7.0-3.fc25.x86_64 qt5-qtwebsockets-devel-5.7.0-1.fc25.x86_64 qt5-qtconnectivity-devel-5.7.0-2.fc25.x86_64 qt5-qtsvg-5.7.0-2.fc25.x86_64 qt5-qtquickcontrols-5.7.0-1.fc25.x86_64 qt5-qtwayland-5.7.0-2.fc25.x86_64 qt5-devel-5.7.0-9.fc25.noarch qt5-qtxmlpatterns-5.7.0-2.fc25.x86_64 qt5-qtwebkit-5.7.0-2.fc25.x86_64 qt5-qtserialport-devel-5.7.0-2.fc25.x86_64 qt5-qtaccountsservice-devel-0.6.0-2.fc24.x86_64 qt5-qttools-libs-help-5.7.0-3.fc25.x86_64 qt5-qtmultimedia-5.7.0-2.fc25.x86_64 qt5-qtimageformats-5.7.0-2.fc25.x86_64 qt5-qtsensors-5.7.0-2.fc25.x86_64 qt5-qtdoc-5.7.0-1.fc25.noarch qt5-designer-5.7.0-3.fc25.x86_64 qt5-qtbase-static-5.7.0-3.fc25.x86_64 qt5-qtenginio-1.6.1-2.fc25.x86_64 qt5-qt3d-5.7.0-2.fc25.x86_64 qt5-qtbase-5.7.0-3.fc25.x86_64 qt5-qtdeclarative-devel-5.7.0-2.fc25.x86_64 qt5-rpm-macros-5.7.0-9.fc25.noarch qt5-qhelpgenerator-5.7.0-3.fc25.x86_64 qt5-qtwebsockets-5.7.0-1.fc25.x86_64 qt5-qtconnectivity-5.7.0-2.fc25.x86_64 phonon-qt5-4.9.0-3.fc25.x86_64 qt5-qtscript-5.7.0-2.fc25.x86_64 qt5-qtwebchannel-devel-5.7.0-2.fc25.x86_64 qt5-gstreamer-devel-1.2.0-11.fc25.x86_64 qt5-qtaccountsservice-0.6.0-2.fc24.x86_64 phonon-qt5-backend-gstreamer-4.9.0-1.fc25.x86_64 qt5-qtscript-devel-5.7.0-2.fc25.x86_64 qt5-qtbase-devel-5.7.0-3.fc25.x86_64 qt5-qtx11extras-5.7.0-2.fc25.x86_64 polkit-qt5-1-0.112.0-8.fc25.x86_64 qt5-qdoc-5.7.0-3.fc25.x86_64 qt5-qtdeclarative-static-5.7.0-2.fc25.x86_64 qt5-qtwebkit-devel-5.7.0-2.fc25.x86_64 qt5-gstreamer-1.2.0-11.fc25.x86_64 qt5-qtdeclarative-5.7.0-2.fc25.x86_64 qt5-qtsensors-devel-5.7.0-2.fc25.x86_64 qt5-qttools-common-5.7.0-3.fc25.noarch qt5-qtmultimedia-devel-5.7.0-2.fc25.x86_64 qt5-qtxmlpatterns-devel-5.7.0-2.fc25.x86_64 qt5-qt3d-devel-5.7.0-2.fc25.x86_64 

Источник

No valid kits found, although a kit exists

I’m trying to open a new project in Qt Creator, and I’m getting a «No valid kits found» error. In options I do see a kit configured. I tried this and installed gcc from the maintaiance tool (although I already had it installed), but I’m still having the same problem. I think I need to choose that gcc I downloaded in Options > Compilers , but I can’t find it (although it installed successfully). I searched in /home/user/Qt/5.5/gcc_64/ — there’s a bin folder, but no gcc file inside. This also didn’t help. Screenshots of my Qt Options: Kits Qt_Versions Compilers Debuggers kits QT_Versions Compilers Debuggers Here’s what I’m getting: no_valid_kits

1 Answer 1

I had the same issue. To solve it do these steps: go to Tools->Options->Qt Versions->add. Here you add the qmake.

After that go to Kits tab, select Desktop default and than in option Qt version select/set your qt version.

Читайте также:  Линукс скопировать весь диск

Now if you try to create a project the kit will be there 🙂

Источник

QtCreator: No valid kits found — Linux — Qt6

I have the latest version of QtCreator on Debian 11.6 x64 system. It has been working great but suddenly it won’t allow me to open any of the examples any more. The error says «No suitable kits found» and proceeds to show a list of grayed out kits, some of which works great on an existing open project. Here is a screenshot for reference: No suitable kits found And here is the kit I was hoping to use (which already works with another open project): Desktop Qt 6.4.2 GCC 64bit (default) kit I looked at this question and basically tried all the answers there without any change. So I would like to explore in detail what exactly causes the error, going through the kit one step at the time:

Item Details
Name The name of the kit. Should not really mattter
File system name It was empty. Should it be something?
Device Set to only logical choice for me: «Local PC»
Build device Set to only logical choice for me: «Local PC»
Sysroot This was set to empty even though the tooltip clearly states it should be set. It does not say WHAT it should be set to, and so I just set it to «/»
Compiler C I tried all variations but I think it should be set to my local GCC
Compiler C++ I tried all variations but I think it should be set to my local GCC
Environment I left this as is. It says «No changes to apply.»
Debugger I left this as is. It says «System GDB». This should not matter I hope?
Qt version This is grayed out and set to what I expect to be correct «Qt 6.4.2 GCC 64bit
Qt mkspec I left this as is. It is currently empty. Tooltip states that this is only used by qmake. Given that all the exampels use CMake now this should not matter?
Additional Qbs Profile Settings I left this as is. It currently is empty. I use Qbs in my own projects, but the example I am trying to open does not, so I naively expect this to not really matter?
CMake tool I left this as is. It is an empty drop down box.
CMake generator I left this as is. It is empty.
CMake configuration I left this as is. It shows as a long list of -D macro defines.

So I vaguely remember this window having small yellow triangles showing exactly why a kit was not suitable, however maybe there is a bug or my memory is just not it used to be? Clearly QtCreator knows that all the kits are unsuitable but fails to say exactly why. Any tips welcome!

Источник

Оцените статью
Adblock
detector