Qt отсутствуют подходящие комплекты что делать

от admin

Отсутствуют подходящие комплекты

У меня стоит ubuntu, хочу в qt собрать проект через cmake, а у меня ошибка Отсутствуют подходящие комплекты.

Нужно зайти в настройки Qt Creator и понаводить мышью на разные комплекты и посмотреть, что там пишется. Может где-то не указан компилятор или еще что-то? Или вообще комплекты не настроены. Короче давай больше инфы.

Возможно комплекты вообще не настроены, так как в настройках только один комплект это desktop,компилятор Clang (C, x86 64bit в /usr/bin), Clang (C++, x86 64bit в /usr/bin), отладчик Система GDB в /usr/bin/gdb, профиль qt 2.12 в path (системная)

а зачем тут вообще нужен qt creator? У cmake даже гуй есть для сборки, как правило идет в комплекте с основным пакетом

то есть можно в qt creator писать код , а собирать уже через gui cmake ?

Да. Но только зачем? Если ты уже запустил Qt Creator. Сборка без него — это когда ты сторонний проект собираешь.

How To Fix Qt Creator Doesn’t Show Examples and «No Valid Kits Found»

I encountered these two issues on Neon GNU/Linux with KDE Plasma 5.10.3 on Qt Creator 4.3.0 & Qt Framework 5.9. When I installed Creator from Neon repo (not Ubuntu repo), it shows no examples at all and also it failed to create new Qt Widget project saying «No Valid Kits Found». I solved these issues by simple workarounds below:

To Solve «No Examples» Issue

To Solve «No Kits» Issue

and restarting Creator should give you both the Examples and ability to create new projects.

Result

If you performed both workarounds above, you should see Creator shows examples now:

and it can make new project (Qt Widget) now:

Extras

Here the details of installed Creator on my system. We know that all packages here come from Neon repo (not Ubuntu repo) with very-very latest versions:

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?

10 Answers 10

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.

GeneCode's user avatar

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:

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

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.

Adding Kits

Qt Creator groups settings used for building and running projects as kits to make cross-platform and cross-configuration development easier. Each kit consists of a set of values that define one environment, such as a device, compiler, Qt version, and debugger command to use, and some metadata, such as an icon and a name for the kit. Once you have defined kits, you can select them to build and run projects.

Читать:
Что такое internet explorer

Qt Creator supports development for the desktop and for the following types of devices:

Filtering Kit Settings

Typically, only a subset of the kit settings is relevant for a particular setup. Therefore, Qt Creator plugins register sets of relevant settings that you can view and modify in Edit > Preferences > Kits. For example, if you use CMake to build all your projects, you can hide Qbs and qmake settings by default.

To hide and show settings in the Kits tab for the current kit, select Settings Filter. To view and modify the settings displayed when you add a new kit, select Default Settings Filter.

Specifying Kit Settings

    Select Edit > Preferences > Kits > Add.

To clone the selected kit, select Clone.

Qt Creator uses the default kit if it does not have enough information to choose the kit to use. To set the selected kit as the default kit, select Make Default.

Kit Settings

The following table summarizes the available kit settings.

Setting Value
Name Name of the kit. You can use variables to generate the kit name based on the values you set in the other fields.
Image to use as an icon for the kit.
File system name Name for the kit to use as a part of directory names. This value is used for the CurrentKit:FileSystemName variable, which determines the name of the shadow build directory, for example.
Device type Type of the device.

Double-click the icon next to the field to select the image that is displayed in the kit selector for this kit. You can use any image in a supported file format (for example, PNG). The image is scaled to the size 64×64 pixels. For example, using the compiler logo as an icon allows you to easily see, which compiler is used to build the project for the selected kit.

This setting is used to tell the code model which compiler is used. If your project type and build tool support it, Qt Creator also tells the build tool to use this compiler for building the project.

For Android kits, the Android GDB server field will display the path to GDB server executable.

Qt Creator checks the directories listed in the PATH environment variable for the qmake executable. It refers to the qmake executable it finds as Qt in PATH and selects it as the Qt version to use for the Desktop kit that is created by default.

Editing Qbs Profiles

To view the Qbs profile associated with the kit, select Edit > Preferences > Qbs > Profiles.

You can add keys and values to the profile or remove them from it, as well as modify existing values. For a list of available keys and values, see List of Modules in the Qbs Manual.

To edit the Qbs profile associated with the kit:

    In Edit > Preferences > Kits, select the kit, and then select Change next to the Additional Qbs Profile Settings field to open the Custom Properties dialog.

To modify an existing value, double-click it in the Value field.

To remove the selected property, select Remove.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Related Posts