qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
See original GitHub issueI installed Qt 5.12.7 with aqt install 5.12.7 mac desktop
and installed Qt Creator via Homebrew (brew cask install qt-creator
).
I configured Qt Creator kits to use the one install via aqt
and I can compile a simple widget project.
Unfortunately, I have the following error when starting it in debug mode:
QFactoryLoader::QFactoryLoader() checking directory path "/Users/martin/dev/build/pouet/Qt_5_12_7_clang_64_from_aqt/Debug/pouet.app/Contents/MacOS/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
The program has unexpectedly finished.
QT_DEBUG_PLUGINS
is set to 1
as adviced here: https://forum.qt.io/topic/98816/qt-could-not-find-the-platform-plugin-cocoa/8
Any idea what’s going on?
Issue Analytics
- State:
- Created 4 years ago
- Comments:34 (30 by maintainers)
Top Results From Across the Web
Qt could not find the platform plugin cocoa - Stack Overflow
The problem seems to be that I've installed Qt on /Library/Qt (outside of the user directory). After reinstalling Qt to /Users/ABC/Qt and a ......
Read more >How to solve "Could not load the Qt platform plugin "cocoa" in ...
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Read more >Qt Platform plugin "cocoa" not found error while trying to run ...
Trying to run the webcam example on my mac using command python webcam_recongnition.py . ... qt.qpa.plugin: Could not find the Qt platform plugin...
Read more >qt.qpa.plugin: could not find the qt platform plugin "cocoa" in ...
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Read more >wireshark3: Could not load the Qt platform plugin "cocoa"
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found. This application failed to start because no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
v0.9.0 released with the fix.
v0.9.0b3 is out with the fix. @MartinDelille does v0.9.0b3 solves your issue?