ROSOnWindows icon indicating copy to clipboard operation
ROSOnWindows copied to clipboard

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found

Open WestbrookZero opened this issue 4 years ago • 2 comments

Describe the bug qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, windows..

Environment information:

  • OS version: win10

WestbrookZero avatar Dec 19 '20 08:12 WestbrookZero

@WestbrookZero Thanks for reporting this issue. Can you also specify what distro (e.g., Melodic, Noetic, or Foxy) and some steps how you run into this?

seanyen avatar Dec 23 '20 00:12 seanyen

Thanks for your answer! image image I use Melodic on win10, i set environment path : Path C:\opt\ros\melodic\x64\bin QT_PLUGIN_PATH C:\opt\ros\melodic\x64\plugins QT_QPA_PLATFORM_PLUGIN_PATH C:\opt\ros\melodic\x64\plugins\platforms when i start "x64 Native Tools Command Prompt for VS 2019",Run as Administrator,as below: cd C:\opt\ros\melodic\x64 setup.bat rosrun rviz rviz i still have the error: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "C:\opt\ros\melodic\x64\plugins\platforms;" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: direct2d, minimal, offscreen, windows.

WestbrookZero avatar Dec 26 '20 06:12 WestbrookZero

fixed in noetic.

IoTDan avatar Oct 13 '22 21:10 IoTDan