Qt5 Static Build yields Failed to load platform plugin “windows”

Qt5 Static Build yields Failed to load platform plugin “windows”

Asked on December 27, 2018 in Qt.
Add Comment


  • 3 Answer(s)

    The dynamic build and load the platform plugin “windows”:

    yourapp.exe
    Qt5Core.dll
    ...
    platforms/qwindows.dll
    ...
    

     Make sure that the plugins directory is missied .  And the folders from QT_BASE/…/plugins/* to straight  eachother   with the  binaries.

    Answered on December 27, 2018.
    Add Comment

    The alternative code is :

    opengl32.lib
    Qt5PlatformSupport.lib
    qwindows.lib
    

    By succeeding code is:

    #include <QtPlugin>
    Q_IMPORT_PLUGIN (QWindowsIntegrationPlugin);
    
    Answered on December 27, 2018.
    Add Comment

    The alternatice code is:

    The qtbase /plugins / platforms directory into the Debug and  discharge the directories  balance the qwindowsd.dll or qwindows.dll.

     

    Answered on December 27, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.