Building A static version of Qt 5.2.1 with Visual Studio 2013

后端 未结 2 1956
情深已故
情深已故 2021-02-08 23:02

I have been trying for a few days now to build a static version of Qt with Visual Studio 2013. I just cannot figure out what I did wrong.

System:

  • Windows 7
2条回答
  •  攒了一身酷
    2021-02-08 23:16

    There is a bug in make install when using -angle and -static.

    You can find the bug report here.

    A simple workaround is to add a few copy at the end of the build process:

    copy qtbase\lib\translator_common.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_common.prl C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_commond.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_commond.prl C:\Qt\5.3.0\msvc2013-static\lib\
    
    copy qtbase\lib\translator_hlsl.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_hlsl.prl C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_hlsld.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\translator_hlsld.prl C:\Qt\5.3.0\msvc2013-static\lib\
    
    copy qtbase\lib\preprocessor.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\preprocessor.prl C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\preprocessord.lib C:\Qt\5.3.0\msvc2013-static\lib\
    copy qtbase\lib\preprocessord.prl C:\Qt\5.3.0\msvc2013-static\lib\
    

    I hope this can help others.

提交回复
热议问题