gnieboer / GNURadio_Windows_Build_Scripts

A series of Powershell scripts to automatically download, build from source, and install GNURadio and -all- it's dependencies as 64-bit native binaries then package as an msi using Visual Studio 2015
GNU General Public License v3.0
89 stars 32 forks source link

Could not find Qt platform plugin "windows" in "C:\Program Files\GNURadio-3.8\bin\\plugins\platforms" #48

Closed WA1CYB closed 3 years ago

WA1CYB commented 4 years ago

Installed 3.8.1 without issues Ran GRC Loaded a QT frequency sink in a flowgraph Received this error message: qt.qpa.plugin: Could not find Qt platform plugin "windows" in "C:\Program Files\GNURadio-3.8\bin\plugins\platforms" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Done (return code -1073740791)

Is the \plugins\platforms meant to be a UNC Network path?

gnieboer commented 4 years ago

Sorry, I could not duplicate.
That directory should exist, having been created during install, not a UNC path. There should be a file in that directory called "qwindows.dll". Does that exist?

WA1CYB commented 4 years ago

The file exists. It appears your script put a double backslash, instead of a single one so the dll can't be found. "C:\Program Files\GNURadio-3.8\bin\plugins\platforms"  instead of  "C:\Program Files\GNURadio-3.8\bin\plugins\platforms"

In the "C:\Program Files\GNURadio-3.8\bin\plugins\platforms" directory there are the dll's:  qdirect2d.dll qwindows.dll qoffscreen.dll and qminimal.dll

On Thursday, July 23, 2020, 04:03:29 PM EDT, Geof Nieboer <notifications@github.com> wrote:  

Sorry, I could not duplicate. That directory should exist, having been created during install, not a UNC path. There should be a file in that directory called "qwindows.dll". Does that exist?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

gnieboer commented 4 years ago

Well, you can remove the / before /plugins in the run_gr.bat file, but that really shouldn't be having an effect. Windows ignores the extra slashes when it finds them (enter cd c:\windows\\system to confirm).

Those are the correct DLL's, so that part is good.

Let me know if the slash removal works.

fksms commented 4 years ago

The problem can be avoided by editing "C:\Program Files\GNURadio-3.8\bin\run_gr.bat".

"set QT_QPA_PLATFORM_PLUGIN_PATH=%~dp0\platforms" "set QT_PLUGIN_PATH=%~dp0..\plugins"

Please change as above and save. It should work correctly.

I made a pull request to solve this problem. See #49.

JochemsMatz commented 3 years ago

I can confirm that this fix worked for me with GNU RC 3.8.1.0 under Windows 10.

busycraftsman commented 3 years ago

I have the same problem, I solved this problem by create a plugins folder in ".\GNURadio-3.8\bin", and move the platforms folder into the plugins folder.

I think this is a wrong package script cause this problem.

gnieboer commented 3 years ago

A new windows installer for 3.8.2 has been released here that sorts this path issue out.

If further issues are discovered, please open a new issue (as it should be a different root cause)

AhmedKAwwad commented 3 years ago

The problem can be avoided by editing "C:\Program Files\GNURadio-3.8\bin\run_gr.bat".

"set QT_QPA_PLATFORM_PLUGIN_PATH=%~dp0\platforms" "set QT_PLUGIN_PATH=%~dp0..\plugins"

Please change as above and save. It should work correctly.

I made a pull request to solve this problem. See #49.

Actually worked for me Thanks a lot