Skip to content
  • 0 Votes
    3 Posts
    3k Views
    R

    Thanks for the 'hint' hskoglund.
    I am not using the Qt system to do my builds (.pro, .pri, cmake) I am using Visual Studio 2017.

    So I added Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); to my main().
    I then needed to add additional libraries to my linkage. My linkage now looks like this:
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5Core.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5Gui.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5Widgets.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\qtmain.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\qtpcre2.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\qtharfbuzz.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\qtlibpng.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\qtfreetype.lib
    c:\Source\Qt\Qt5111\Qt5WinExtrasx64.lib (I modified qt5winextras, does not relate though)
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\plugins\platforms\qwindows.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5FontDatabaseSupport.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5EventDispatcherSupport.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5ThemeSupport.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\Qt5WindowsUIAutomationSupport.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\libEGL.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\libGLESv2.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\preprocessor.lib
    C:\Source\Qt\Qt5.11.1\5.11.1\Src\qtbase\lib\translator.lib
    ws2_32.lib
    Mincore.lib
    Winmm.lib
    Dwmapi.lib
    Imm32.lib
    d3d9.lib
    dxguid.lib

    My static linked application is quite large (12.38MB) compared to the same application written utilizing Win32 (398KB).

    At least it is not as large as the 'Shared' deployment which is 89.4MB.

    Thanks all.