Отсутствуют подходящие комплекты 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.

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.
Читайте также:  Как собрать свой образ linux

Источник

ROSAForum

При создании проекта Qt Quick в qtcreator выдает отсутствие подходящего комплекта.
Буду признателен за помощь.

vvpnet Сообщения: 380 Зарегистрирован: 23 ноя 2015, 14:44 Operating system: Rosa R6 Fresh

qtcreator проблема при создании проекта

Сообщение vvpnet » 09 окт 2019, 08:49

При создании проекта Qt Quick в qtcreator выдает отсутствие подходящего комплекта.
Буду признателен за помощь.

Olej Сообщения: 129 Зарегистрирован: 14 сен 2016, 14:06 Operating system: Fedora 30, Debian 10, Mint 19.2

qtcreator проблема при создании проекта

Сообщение Olej » 09 окт 2019, 10:09

Ну так выдаёт — значит таки отсутствует.
См. Разработка программных проектов в Linux — там есть примеры создания среды и для Qt.

papahander Сообщения: 110 Зарегистрирован: 12 ноя 2015, 20:35 Operating system: rosa fresh R6

qtcreator проблема при создании проекта

Сообщение papahander » 10 окт 2019, 02:18

papahander Сообщения: 110 Зарегистрирован: 12 ноя 2015, 20:35 Operating system: rosa fresh R6

qtcreator проблема при создании проекта

Сообщение papahander » 10 окт 2019, 02:21

Отсутствие нужного комплекта вещь очевидная. Однако в случае нормальной сборки комплекты должны быть. С бубном плясать у меня нет времени. Я надеялся, что меня ткнут носом в мой очевидный промах.

vvpnet Сообщения: 380 Зарегистрирован: 23 ноя 2015, 14:44 Operating system: Rosa R6 Fresh

qtcreator проблема при создании проекта

Сообщение vvpnet » 10 окт 2019, 07:08

Отсутствие нужного комплекта вещь очевидная. Однако в случае нормальной сборки комплекты должны быть. С бубном плясать у меня нет времени. Я надеялся, что меня ткнут носом в мой очевидный промах.

Перейди в инструменты->параметры->комплекты, выбери свой qt 5.9 посмотри внимательно нет ли предупреждения там об отсутсвие пакета Qt Quick, если да то его нужно доставить из репозитория

Olej Сообщения: 129 Зарегистрирован: 14 сен 2016, 14:06 Operating system: Fedora 30, Debian 10, Mint 19.2

qtcreator проблема при создании проекта

Сообщение Olej » 10 окт 2019, 13:44

Источник

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.

Читайте также:  Linux mint установка новых тем

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 🙂

Источник

Не решенные No suitable kits can be found. How do I solve this?

Screen Shot 2019-12-15 at 9.27.12 PM.png

af90e663-c542-474e-a6ce-5597e6ae6b9c-image.png

@aranjit :- First of all check whether is there any kit configured in your QT your not by going into Tools -> Options -> Kits. Like below image.

please, run your ‘qt maintenance tool.app’ in your qt folder.
and you should check your option like ‘5.12.4->msvc2017’ or ‘5.12.4->clang++’.
if you have any compiler / toolchain kit, you cannot select in the ‘kit selection’.

Screen Shot 2019-12-17 at 3.09.54 AM.png

@ankit-thakar
this is what i have

jsulm

@aranjit
Hi
I think @jsulm meant more like
What platform are you aiming for ?
a Android app or iOs or linux Desktop etc ? Your kit seems a bit odd so are you trying to do cross-compiling or anything like that ? What platform are you on ?
Its it macOs? How did you install Qt ?
What packets did you select ? If MacOs, did you also install XCode etc ?

ankit thakar

@aranjit :- I actually faced same kind of problem in one of my colleague’s machine.
What I observed in his machine is that he didn’t configured any Qt versions.
So, can you please check that if you have the same problem or not?
i.e. goto Tools -> Options -> Kits -> Qt versions .

Screenshot 2020-07-20 23.08.06.png

This happend for me because during the install on the versions page there is a tickbox stating (Use latest releases) as this seemed like a reasonable default I proceeded. This actually installed no Qt versions. So there were no kits installed. Hence this error during first use. The problem is due to not making a selection in the list on the right, and can be remediend by running (Mac OS) ~/Qt/MaintenanceTool.app which will run through windows similar to the installation process. Select a Qt version on the page shown here.

New user here doing a fresh install for the first time. They really need to default check a version of Qt. Totally confusing.

Christian Ehrlicher

@FPChris tell me then the glaringly obvious place where you are asked to set this up and/or correct it if you missed it initially when installing through apt-get? @Christian-Ehrlicher said in No suitable kits can be found. How do I solve this?: @FPChris said in No suitable kits can be found. How do I solve this?:

Too hard to do one more click to select the desired version by your own? Please stop this, it’s unsupportive and unhelpful. It is also, sadly exactly what I’d expect from certain members of the FOSS community with the mentality that everyone should either know everything already or go through the same pains to learn it as they did and ignoring the mainstream end-user entirely in the process, which is exactly why Linux as a desktop kernel has taken so long to catch on/become relevant to general users. There’s something called an end user, learn to respect that or you are not a very good developer.

jsulm

@puflin Your first post here and you’re already teaching others how to behave?
Also, this is a developer forum, not end-user. As a developer one should be able to handle such responses (take a look at Linux developer mailing list and what Linus sometimes says/writes if you want to know how it can be in one of THE open source projects). For such off-topic discussions I would suggest to go to https://forum.qt.io/category/7/the-lounge

Читайте также:  Linux search deleted files

But this is not really possible as it depends on what compiler you want to use and if you want to use
windows apps or Arm boards or both 🙂 So randomly selecting a toolchain is not the right design for a tool targeting developers.

J.Hilk

I agree, but an additional window/message along the line of: «You have selected no precompiled libraries, do you want to continue? Back : Continue» would be nice. and a second one
«You have selected all possible modules, do you really want to continue?» For the other extreme. would be nice to have.

Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121 Q: What’s that?
A: It’s blue light.
Q: What does it do?
A: It turns blue.

@jsulm I understand how it came across, just understand from my view, although I am new on the forum, that should not invalidate me as a person. The is that this is a constant theme in supposed «safe spaces» and forums where support and help is advocated. a Person comes here to find assistance and get put off by this form of reaction. Either allow people to self moderate, or do active Unbiased moderation. It is wholly unfair to expect a person not to raise the sense that they are offended just because they are ne. And yes, perhaps I could have put it nicer. For all intents and purposes, the OP and other contributors to the conversation ARE end users in this context. The discussion has nothing to do with development as such, it was in regards to the packages failure to communicate clearly to the end user, to detect versions installed already and to clearly assist the end user in doing so on failing that. Whether this is a concern to the developer is up to them to decide, but should not be communicated in such a manner. The fact that this is a developer tool should not have any bearing on it’s user friendliness. The person commenting, raised a legitimate concern and was met with sarcasm, and yes, I retaliated in like which was not prudent. If anything, with his standing in the forum I’d expect the respondent to have been respectful and helpful, something that is outlined in the code of conduct, yet no matter how you phrase it, it was not. It was intentionally sarcastic and unhelpful. I may have the experience and capacity to have resolved this issue on my own eventually, but that may not always be the case and it greatly infuriates me to see others being treated in such a manner who genuinely has an issue and raises a concern. My personal involvement in this regard is that I would never want to request assistance here if that is the kind of response one gets, nor would I ever recommend the site or the product’s support and community friendliness if that is the norm. At the very least, remove the offending commentary, including my own.

@J-Hilk
Absolutely for a more solid experience. 🙂
Btw more than once, i did select all models as it’s so tempting to click the root item 🙂

Источник

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