Available platform plugins are windows


Рейтинг 4.70/195:

WxMaper

96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

24.12.2013, 07:27. Показов 40364. Ответов 13

Метки нет (Все метки)


Знаю, что избитая тема. Перечитал таких до кучи, но не получается ни в какую запустить собранное приложение. При запуске выдает такую ошибку: This application failed to start because it could not find or load the Qt platform plugin «windows». Available platform plugins are: windows. Reinstalling the application may fix this problem.
Это вообще что-то с чем-то :/ программа говорит, что плагин не найден, и тут же говорит, что он присутствует :/
В директории с программой имеется папка platforms с файлом qwindows.dll. Библиотеки libEGL.dll и libGLESv2.dll (необходимые, и как писали в некоторых темах, «решающие» проблему) скопировал в корень программы.
Содержимое файла qt.conf:

C++ (Qt)
1
2
[Paths]
Plugins=.

Исходник, по совету данного поста на хабре, отредактировал, добавил соответствующий код в main.cpp. (Но я не использую утановочник для приложения, просто копирую папку с проектом)

Собственно содержимое папки с программой:

Программу собираю в Windows 7 x64. Qt 5.2.0 MinGW48_32. В Win7 с установленным Qt программа запускается без проблем, при переносе на WinXP x86 — возникает описанная ошибка.
Как решить проблему?



0



7 / 7 / 0

Регистрация: 09.11.2013

Сообщений: 96

24.12.2013, 07:34

Очень легко ! Все папки с папки plugins кидаешь в папку с прогой; эти платины нужны для самой работы проги



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

24.12.2013, 07:41

 [ТС]

Увы, не помогает



0



solar_wind

770 / 760 / 59

Регистрация: 06.07.2009

Сообщений: 3,021

24.12.2013, 13:09

WxMaper,
Я честно говоря не понял что конкретно не нравится программе, но с плагинами делал так:
В main прописывал:

C++ (Qt)
1
a.addLibraryPath(a.applicationDirPath()+"/plugins");

Создавал папку plugins.
Для примера если это были sql драйверы, то внутри создавал папку sqldrivers и туда уже кидал библиотеки.
Насчет того нужно ли создавать обязательно подпапки я не помню. Но папка plugins должна называться именно так, другие названия почему то не работали.
Попробуй, вдруг поможет.



0



1403 / 1260 / 262

Регистрация: 10.11.2013

Сообщений: 3,763

24.12.2013, 22:12

plugins — это и так дефолтная папка для поиска, так что в main писать ничего не надо
а иерархию папко-плагинов нужно сохранять оригинальную



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

25.12.2013, 07:35

 [ТС]

Если копировать папку plugins, то эта ошибка все равно возникает, но в поле Available platform plugins are: уже нет ни одной платформы

Добавлено через 2 минуты
Что вообще, простите, за фигня такая? Зачем разрабатывать приложение на Qt, когда потом кроме тебя и других разработчиков Qt его никто не сможет запустить :/



0



1443 / 1326 / 131

Регистрация: 20.03.2009

Сообщений: 4,689

Записей в блоге: 11

25.12.2013, 10:44

Пост с хабра устарел безбожно.

Сообщение от WxMaper

Зачем разрабатывать приложение на Qt, когда потом кроме тебя и других разработчиков Qt его никто не сможет запустить :/

У меня с 5.1 все работает. Пример собранного дистрибутива можно посмотреть тут.



0



1403 / 1260 / 262

Регистрация: 10.11.2013

Сообщений: 3,763

25.12.2013, 11:38

Сообщение от WxMaper

Что вообще, простите, за фигня такая? Зачем разрабатывать приложение на Qt, когда потом кроме тебя и других разработчиков Qt его никто не сможет запустить :/

Фигня только у Вас, у остальных проблем нет.



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

25.12.2013, 12:28

 [ТС]

Может и только у меня, но как объяснить это? Как говорится, ЧЯДНТ? Даже если я создам пустую форму и соберу ее, она не открывается на другом пк. Я смеха ради полностью скопировал содержимое папки bin в каталог с программой — не помогло Даже это.
Почему приложение пишет что нет плагина windows и тут же, перечисляя обнаруженные плагины, заявляет что он есть???



0



║XLR8║

1212 / 909 / 270

Регистрация: 25.07.2009

Сообщений: 4,360

Записей в блоге: 5

25.12.2013, 13:55



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

26.12.2013, 05:41

 [ТС]

outoftime, вот вы какой версией Qt собирали? Приложение у меня запустилось.
Может все дело в qt 5.2…. к тому же у меня до сих пор бета версия. Сейчас попробую скачать более раннюю.

Добавлено через 18 минут
Скачал Qt 5.1.1, пересобрал… Ошибка сохраняется =/



0



║XLR8║

1212 / 909 / 270

Регистрация: 25.07.2009

Сообщений: 4,360

Записей в блоге: 5

26.12.2013, 12:39

WxMaper, Проект и собранные бинарь с либами в студию.



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

26.12.2013, 15:07

 [ТС]



0



96 / 82 / 22

Регистрация: 19.10.2013

Сообщений: 485

28.12.2013, 06:45

 [ТС]

up.
Вы пробовали запустить то, что я скинул?

Добавлено через 6 минут
Ха! Только что закинул свою программу в папку с установленным приложением, которые вы скидывали ранее и знаете что? ОНА ЗАПУСТИЛАСЬ!
Я совершил наиглупейшую ошибку, скопировав папку platforms из папки Qt5.2.0\Tools\QtCreator\bin\plugins, когда надо было копировать из папки Qt5.2.0\5.2.0-rc1\mingw48_32\plugins
вот такие косяки случаются… спасибо за внимание



1



inter-admin

Эксперт

29715 / 6470 / 2152

Регистрация: 06.03.2009

Сообщений: 28,500

Блог

28.12.2013, 06:45

Помогаю со студенческими работами здесь

Перенос приложения с Windows на Astra Linux
Здравствуйте,смогу ли я переместить программу для складского учета написанную с помощью С++ Builder и БД ms access переместить с windows в…

Перенос приложения из Windows под Android
требуется написание проги под андроид, которая есть в windows.
уточняю: есть прога на винде самописанная, она написана на дэльфи, и…

Перенос приложения с Android и iOS на Windows Phone
Недавно читал статью, что Microsoft представила средство переноса Android и iOS приложений на Windows Phone 8. Но сейчас нигде не могу…

Перенос кусок кода из консольного приложения в Windows Forms
DWORD WINAPI InstanceThread(_In_ LPVOID hPipe) {

LPWSTR strRequest = new WCHAR;
memset(strRequest, 0, (2048 + 1) * sizeof(WCHAR));…

Windows sockets приложения с сокетами, написание приложения сервер-клиент
Написать программу-сервер и программу — клиент. Клиент читает файл, пересылает его серверу. Сервер, в свою очередь, пересылает файл всем…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

14

Новые блоги и статьи

Все статьи  

Все блоги / 

Выполнение асинхронных задач в Python с asyncio

py-thonny 12.05.2025

Современный мир программирования похож на оживлённый мегаполис – тысячи процессов одновременно требуют внимания, ресурсов и времени. В этих джунглях операций возникают ситуации, когда программа. . .

Работа с gRPC сервисами на C#

UnmanagedCoder 12.05.2025

gRPC (Google Remote Procedure Call) — открытый высокопроизводительный RPC-фреймворк, изначально разработанный компанией Google. Он отличается от традиционых REST-сервисов как минимум тем, что. . .

CQRS (Command Query Responsibility Segregation) на Java

Javaican 12.05.2025

CQRS — Command Query Responsibility Segregation, или разделение ответственности команд и запросов. Суть этого архитектурного паттерна проста: операции чтения данных (запросы) отделяются от операций. . .

Шаблоны и приёмы реализации DDD на C#

stackOverflow 12.05.2025

Когда я впервые погрузился в мир Domain-Driven Design, мне показалось, что это очередная модная методология, которая скоро канет в лету. Однако годы практики убедили меня в обратном. DDD — не просто. . .

Исследование рантаймов контейнеров Docker, containerd и rkt

Mr. Docker 11.05.2025

Когда мы говорим о контейнерных рантаймах, мы обсуждаем программные компоненты, отвечающие за исполнение контейнеризованных приложений. Это тот слой, который берет образ контейнера и превращает его в. . .

Micronaut и GraalVM — будущее микросервисов на Java?

Javaican 11.05.2025

Облачные вычисления безжалостно обнажили ахиллесову пяту Java — прожорливость к ресурсам и медлительный старт приложений. Традиционные фреймворки, годами радовавшие корпоративных разработчиков своей. . .

Инфраструктура как код на C#

stackOverflow 11.05.2025

IaC — это управление и развертывание инфраструктуры через машиночитаемые файлы определений, а не через физическую настройку оборудования или интерактивные инструменты. Представьте: все ваши серверы,. . .

Инъекция зависимостей в ASP.NET Core — Практический подход

UnmanagedCoder 11.05.2025

Инъекция зависимостей (Dependency Injection, DI) — это техника программирования, которая кардинально меняет подход к управлению зависимостями в приложениях. Представьте модульный дом, где каждая. . .

Битва за скорость: может ли Java догнать Rust и C++?

Javaican 11.05.2025

Java, с её мантрой «напиши один раз, запускай где угодно», десятилетиями остаётся в тени своих «быстрых» собратьев, когда речь заходит о сырой вычислительной мощи. Rust и C++ традиционно занимают. . .

Упрощение разработки облачной инфраструктуры с Golang

golander 11.05.2025

Причины популярности Go в облачной инфраструктуре просты и одновременно глубоки. Прежде всего — поразительная конкурентность, реализованная через горутины, которые дешевле традиционных потоков в. . .

Наверх


1

1

Вчера обновился Battle.net, после чего при попытке запуска, установки и прочих манипуляций вылетает с ошибкой

This application failed to start because it could not find or load the Qt platform plugin «windows». Available platform plugins are: windows. Reinstalling the application may fix this problem.

Первоначально работало на Wine 1.9.1 в Fedora 23 (были в лаги интерфейса в DIII, но более чем играбельно), после пытался запустить в 1.7, 1.9.2 но все тщетно. Под PoL один раз английская версия один раз заработала, но ни одна игра так и не запустилась. Привычные решения, вроде изменения версии windows в winecfg и манипуляции с библиотеками к результатам не привели. Все Qt-шные либы в каталоге Battle.net в полном составе.
Кто-то может подтвердить баг или подсказать решение?

@HZMD said in «could not find or load the Qt platform plugin «windows» in «»,:

Do all of them use Qt? — I’m not sure, and I’m not sure how to find out.

In general, you check for the presence of Qt DLLs (Qt5Core.dll, qwindows.dll) in the program’s folders.

How did I install Krita? — It would be non-helpful if I said «in the normal way» wouldn’t it? I’m definitely not a proper programmer, though I’m «programmer adjacent» in some aspects of my work, learning enough from programmers to describe it to non-programmers in pictures. Anyway, I downloaded an executable installer from Krita.org and let it do its thing. Is that the right information?

Yes, that’s the right information :) Other possible ways to install Krita include «compile it from source».

Anyway, since you used the «normal way», that rules out the possibility of the error being caused by incorrect installation/compilation/deployment

Does uninstalling and reinstalling help? — On the others I have encountered this problem with, it has. I haven’t done Krita yet, because I was hoping to find the original culprit, and thought there might be clues.

From the symptoms you’ve described and the ListDLLs output you posted, I can’t see an easy way to find the root culprit, unfortunately.

The easiest thing to do might be to reinstall the affected software and move on with your life.

One other thing you could try: If you create a new user account on your PC, does that account manage to run the affected programs normally? If it does, that means something has gone wrong in your current Windows account itself. (I can’t explain how though)

qwindows.dll is missing — Hey, I think Krita uses Qt! I found qwindows.dll in C:\Program Piles\Krita (x64)\bin\platforms

Using that newfound knowledge, I looked for it in…

…I’ll come back and edit this with any others it finds, or that it finds in Program Files (x86)

That’s OK, you don’t have to give us a comprehensive list.

I asked about other Qt-based software because sometimes, problems occur when a piece of Qt-based software adds itself to the system-wide PATH (or QT_PLUGIN_PATH). This can cause other Qt-based software to load the wrong version of Qt DLLs.

However, given that you can repair individual programs by re-installing them, that probably means your problem is caused by something else.

I did not find qwindows in the folder of the pen display driver / control software I suspected of having monkeyed things up. Am I right in thinking that means that driver / control software is innocent? With no more evidence than I had before, I now suspect Logitech. I’m sure this is how witch trials get started. ;)

It is difficult to prove that someone/thing didn’t do it.

  1. How do I install Qt plugins?
  2. How do I fix no Qt platform plugin?
  3. What is the Qt platform plugin windows?
  4. Where is Qt plugin PATH?
  5. Where is Qt Creator installed?
  6. Where is Qt Designer installed?
  7. Can’t find or load the Qt platform plugin windows python?
  8. How do I use Windeployqt EXE?
  9. What is Eglfs?
  10. Where is Qwindows DLL?
  11. Where is Qt conf?
  12. How do I set environment variables in Qt?

How do I install Qt plugins?

Installing Plugins

Note: You can install only plugins that are supported by your Qt Creator version. To install plugins: Select Help > About Plugins > Install Plugins. In the Source dialog, enter the path to the archive or library that contains the plugin.

How do I fix no Qt platform plugin?

Reinstalling the application may fix this problem. To Solve This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem Error Just Use openCV latest version and it works like charm.

What is the Qt platform plugin windows?

Qt is a C++-based framework that is designed to create applications on Windows, Android, Linux, and other platforms. … Reinstalling the application may fix this problem. Available platform plugins are: minimal, offscreen, windows.

Where is Qt plugin PATH?

The Plugin Directory

In Qt, when an application starts, the application’s executable directory is the base directory where Qt searches for plugins. For example, on Windows, if the application is in C:\Program Files\MyApp and it has a style plugin, Qt looks in C:\Program Files\MyApp\styles .

Where is Qt Creator installed?

If you run the installer as root, it will be installed globally and be available to all users on the machine. For the per user install, the default installation will be a subdirectory called Qt in the current working directory. For the global install, the default location is /opt/Qt.

Where is Qt Designer installed?

QT Designer will be installed in C:\Qt\5.8\mingw53_32\bin\designer.exe. Note that the executable is named «designer.exe»

Can’t find or load the Qt platform plugin windows python?

Even though after that the command line Python worked, TexWorks (which uses Qt as well) displayed an error message very much like it. Setting the QT_PLUGIN_PATH to the directory containing TexWorks’ Qt DLLs (here C:\Users\chris\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64 ) fixed the problem for both programs.

How do I use Windeployqt EXE?

1 The simplest way to use windeployqt is to add the bin directory of your Qt installation (e.g. <QT_DIR\bin>) to the PATH variable and then run: windeployqt <path-to-app-binary> If ICU, ANGLE, etc. are not in the bin directory, they need to be in the PATH variable.

What is Eglfs?

EGLFS is a platform plugin for running Qt5 applications on top of EGL and OpenGL ES 2.0, without an actual windowing system like X11 or Wayland. In addition to Qt Quick 2 and native OpenGL applications, EGLFS supports software-rendered windows, like QWidget, too.

Where is Qwindows DLL?

Unless you use a qt. conf file, Qt will try to look for dlls in the (hardcoded path to) Qt install directory, even if it is not set in PATH. It then also loads qwindows. dll from there even if you have deployed a copy of it along with your application.

Where is Qt conf?

app/Contents/Resources/qt. conf.

How do I set environment variables in Qt?

You can edit existing environment variables or add, reset and unset new variables based on your project requirements. To globally change the system environment from the one in which Qt Creator is started, select Tools > Options > Environment > System, and then select Change in the Environment field.

Issue: Hello. Recently, after a Windows update, I was unable to get OneDrive to work. Whenever my PC boots, I receive an error “Application failed to start because no Qt platform plugin could be initialized.” Any advice on how to deal with this issue? Thanks in advance.

Solved Answer

Windows operating system consists of many components – some are already pre-installed while others need to be implemented manually. For example, Node.js is one of the third-party components you would see on almost any Windows computer.

Qt is a C++-based[1] framework that is designed to create applications on Windows, Android, Linux,[2] and other platforms. While it is not a programming language on its own, apps that are based on it need to have the framework installed on their machines to be able to run. Unfortunately, these dependencies can create certain issues due to one reason or another.

When something goes wrong with the Qt platform, users may receive the “Application failed to start because no Qt platform plugin could be initialized” error.

Several applications could be affected by this error, including games such as Apex Legends,[3] standalone components (Dllhost), or commonly-used apps as OneDrive. The latter resides in every Windows computer and is an extremely useful app commonly used for system/file backups or additional storage for user files.

Here’s the full message that users receive upon encountering the error (the error message text may vary in some instances):

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, windows.

While it may seem like enabling or installing the Qt platform would fix the “Application failed to start because no Qt platform plugin could be initialized” error, it is not the case. Reinstalling the app that is having difficulties detecting the plugin might help, however.

How to fix "Application failed to start because no Qt platform plugin could be initialized" error in Windows?

Unfortunately, that is not always possible, as users reported that they then received the “Can’t be found” error while trying to do so. The reason for this being is that a newer version of the app may be already present on the device, hence uninstallation is not possible. There is a way around it.

In some cases, the reasons for the error could be unrelated to the ones mentioned above. For example, system file corruption might also cause this error, so we recommend you try running a scan with FortectMac Washing Machine X9 repair software that could fix underlying Windows issues automatically. Otherwise, proceed with the below methods that should help you solve this error for good.

Method 1. Copy relevant folder to a different location

Method 2. Check system files for damage



Fix it now!




Fix it now!

To repair damaged system, you will have a 24hr Free Trial and the ability to purchase the licensed version of the Fortect Mac Washing Machine X9.

  • Type in cmd in Windows search
  • Right-click on Command Prompt and select Run as administrator
  • Here, type sfc /scannow and press Enter
    Run SFC scan

  • Wait till the scan completes and restart your machine
  • If the SFC has returned an error saying it was unable to repair damaged files, run the following commands, pressing Enter each time:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth

Method 3. Try Clean Boot

  • Type msconfig in Windows search, hit Enter
  • Go to Services tab
  • Check the Hide all Microsoft services checkbox and select Disable all
  • Go to Startup tab and pick Open Task Manager
  • Here, right-click on every entry and select Disable and close the Task Manager
  • Go to Boot tab, tick Safe Boot and select Apply + OK.
    Use Clean Boot

Once booted back into Windows, try running the app you were having problems with. If that fixes your problem, it means that there is a third-party application that is at fault. In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.

Method 4. Reinstall the application in question



Fix it now!




Fix it now!

To repair damaged system, you will have a 24hr Free Trial and the ability to purchase the licensed version of the Fortect Mac Washing Machine X9.

You should try uninstalling the app you are having troubles with and then installing it anew. If you are dealing with OneDrive, you should do the following:

  • Press Win + R on your keyboard
  • In the Run dialog, copy and paste the following:
    %userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
  • Go through the installation steps and restart your PC
    Reinstall OneDrive

  • If Windows can’t find the file specified, you should download the setup file from the official website [direct link].

If this method does not work and you are presented with an error, proceed with the method below and then repeat this step.

Method 5. Uninstall the problematic app via Command Prompt

Uninstalling a program that does not want to uninstall might be difficult, although it is possible via PowerShell, as you can launch it as an administrator. Keep in mind that the below example is for the OneDrive application, and the command would differ depending on the app name and its location.

  • Open Command Prompt as administrator as explained above
  • Copy and paste the following commands, pressing Enter after each:
    taskkill /f /im OneDrive.exe
    %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
    Force uninstall OneDrive

  • Note: if you are using 32-bit Windows system use the following command to uninstall OneDrive instead:
    %SystemRoot%\System32\OneDriveSetup.exe /uninstall
  • This should force-uninstall the app.

Repair your Errors automatically

ugetfix.com team is trying to do its best to help users find the best solutions for eliminating their errors. If you don’t want to struggle with manual repair techniques, please use the automatic software. All recommended products have been tested and approved by our professionals. Tools that you can use to fix your error are listed bellow:

do it now!

Download Fix
 

Happiness
Guarantee

do it now!

Download Fix
 

Happiness
Guarantee

Compatible with Microsoft Windows
Compatible with OS X

Still having problems?
If you failed to fix your error using FortectMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.

Fortect will diagnose your damaged PC. It will scan all System Files that have been damaged by security threats. Mac Washing Machine X9 will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats. To repair damaged system, you will have a 24hr Free Trial and the ability to purchase the licensed version of the Fortect malware removal tool. To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.

Protect your online privacy with a VPN client

A VPN is crucial when it comes to user privacy. Online trackers such as cookies can not only be used by social media platforms and other websites but also your Internet Service Provider and the government. Even if you apply the most secure settings via your web browser, you can still be tracked via apps that are connected to the internet. Besides, privacy-focused browsers like Tor is are not an optimal choice due to diminished connection speeds. The best solution for your ultimate privacy is Private Internet Access – be anonymous and secure online.

Data recovery tools can prevent permanent file loss

Data recovery software is one of the options that could help you recover your files. Once you delete a file, it does not vanish into thin air – it remains on your system as long as no new data is written on top of it. Data Recovery Pro is recovery software that searchers for working copies of deleted files within your hard drive. By using the tool, you can prevent loss of valuable documents, school work, personal pictures, and other crucial files.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как быстро перенести фото с айфона на компьютер windows
  • Kyocera fs 4200dn драйвер windows 7
  • Apple mouse with windows
  • Как запустить восстановление системы windows 10 при синем экране
  • Windows 10 java jar