Building Qt5 with Visual Studio 2012 / Visual Studio 2013, and integrating with the IDE

前端 未结 5 1952
时光说笑
时光说笑 2020-11-28 18:19

How do you get Qt5 to download and integrate with Visual Studio 2012? What are some of the problems you will encounter, and how do you solve those problems?

5条回答
  •  孤城傲影
    2020-11-28 19:14

    compile Qt 5.5 with visual studio 2015:

    1- modefier configure.bat in qtbase directory so it can generate configure.exe (just the first 18 lines)

      @echo off
    set QTSRC=%~dp0
    set QTDIR=%CD%
    rem if not exist %QTSRC%.gitignore goto sconf
    echo Please wait while bootstrapping configure ...
    
    for %%C in (cl.exe icl.exe g++.exe perl.exe) do set %%C=%%~$PATH:C
    
    rem if "%perl.exe%" == "" (
    rem    echo Perl not found in PATH. Aborting. >&2
    rem    exit /b 1
    rem )
    if not exist mkspecs (
        md mkspecs
        if errorlevel 1 goto exit
    )
    rem perl %QTSRC%bin\syncqt.pl -minimal -module QtCore -outdir "%QTDIR%" %QTSRC%
    rem if errorlevel 1 goto exit
    

    2- configure -opensource -confirm-license -mp -nomake examples -nomake tests -release -c++11 -no-warnings-are-errors -platform win32-msvc2015 -no-ltcg

    3- nmake

提交回复
热议问题