Qt creator нет комплектов 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?

A «kit» is the compiler/linker you’re going to use — usually Visual C++ or Mingw on Windows. Setup instructions are here: qt-project.org/doc/qtcreator-3.0/creator-targets.html

11 Answers 11

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.

When I went to do this, I got a corrupted installation error 🙁 Installing qt is no short task x.x Especially when you throw in source. Thanks for the tip though!

@mm_ 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.

@kayleeFrye_onDeck I got the feeling that I’ve seen much worse installation tasks. I wonder if that makes any ease but yeah that’s how I feel anyway. hope you do alright

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.

Читайте также:  Distribution linux ubuntu mint

IIRC you can choose one or both. Since they can be installed side-by-side without causing problems. Your qmake files will say which version your project uses. So you may as well install both.

On Ubuntu I’m getting: E: Unable to locate package libqt4-core E: Unable to locate package libqt4-gui

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.

Источник

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:

Читайте также:  Add dns servers to linux
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!

Источник

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

Читайте также:  Linux адрес текущей папки

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 🙂

Источник

Qt Kit Selection

However, the Qt Creator app still does not let me select a Kit because my Qt Versions is still empty:
still empty It seems there are others with the same issue but I cannot find a solution. Ultimately, this all began because I was trying to make a project after installing Qt but I could not get passed this Kit Selection:
Kit Selection menu. I learned that the kit selection problem stems from not having the «Qt version» installed. However, I still cannot find a solution to how I can correctly install this Qt version.

1 Answer 1

you should install gcc and g++ compiler, look at Qt documentation

you should write this command

sudo apt-get install build-essential 

Launch Qt Creator. Go to Tools > Options. Click Build & Run and select tab Kit. Configure a compiler if it is not automatically detected.

this problem happens because of qt creator didn’t understand and find the compiler, you should install it, after that it is usually automatically detected. if you have this issue again you should add it manually in the compiler section and in the kit section set compiler for your Desktop kit.

For adding manually compiler look at this QT Documentation

For adding manually kit look at this QT Documentation

For Adding Qt Versions manually

  1. Select Tools > Options > Kits > Qt Versions > Add.
  2. Select the qmake executable for the Qt version that you want to add.
  3. Select the Qt version to view and edit it.
  4. In the Version name field, edit the name that Qt Creator suggests for the Qt version.
  5. In the qmake location field, you can change the qmake location.
  6. If the Qt version is for QNX, enter the path to your installed QNX SDK in the QNX SDK field.

Источник

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