代码拉取完成,页面将自动刷新
@echo off
cls
REM Date Version Author Changes
REM 4.7.19 1.0 Alexander Wenzel Update to Qt 5.12.4, Qwt 6.1.4 and Visual Studio 2015
REM 30.1.18 1.0 Gernot Wirschal First versioned file
echo ************************************
echo *** Build QWT Library ***
echo ************************************
echo ************************************
echo *** Configuration ***
echo ************************************
if "%MSVC_VERSION%"=="" (
echo "Set default MSVCS ""
set MSVC_VERSION=2015
)
set MSVC_VER=msvc%MSVC_VERSION%
rem parameter of this batch script can be either x86 or x86_amd64
if "%ARCHITECTURE%"=="" (
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
set ARCHITECTURE=x86_amd64
) else (
set ARCHITECTURE=x86
)
set USE_ARCH_PARAM=false
if "%1" NEQ "" (
if "%1"=="x86" set USE_ARCH_PARAM=true
if "%1"=="x86_amd64" set USE_ARCH_PARAM=true
)
if "!USE_ARCH_PARAM!"=="true" set ARCHITECTURE=%1
)
echo Target architecture is %ARCHITECTURE%
echo *** Setting up environment ***
echo Set QT path for %QTVER%
IF "%QTVER%"=="" (
set QTVER=5.12.4
)
echo Set QT diretory for %ARCHITECTURE%
if "%QTDIR%"=="" (
if "%ARCHITECTURE%"=="x86_amd64" (
set QTDIR=C:\Qt\Qt5.12.4\5.12.4\msvc2015_64
) else (set QTDIR=C:\Qt\Qt5.12.4\5.12.4\msvc2015)
)
if "%MSVC_DIR%"=="" set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
echo Set suffix for %ARCHITECTURE%
set DIR_POSTFIX=_32bit
IF "%ARCHITECTURE%" EQU "x86_amd64" set DIR_POSTFIX=_64bit
echo DIR_POSTFIX %DIR_POSTFIX%
set WORKINGDIR=%CD%
IF "%QWT%"=="" (
set QWT=6.1.4
)
set QWT_DIR=C:\Qwt-%QWT%_%MSVC_VERSION%_%QTVER%%DIR_POSTFIX%
set PATH=%QTDIR%\bin;%MSVC_DIR%;%MSVC_DIR%\bin;%PATH%
IF "%WORKSPACE%" == "" (
set SOURCE_DIR=%CD%\qwt-%QWT%
) ELSE (
set SOURCE_DIR=%WORKSPACE%\qwt-%QWT%
)
IF '%SEVENZ_DIR%'=='' (
set SEVENZ_DIR="C:\Program Files\7-Zip"
)
IF exist %QWT_DIR% (
echo ************************************
echo *** Delete old qwt Directory ***
echo ************************************
rmdir /s /q %QWT_DIR%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
)
echo ************************************
echo * QTDIR = %QTDIR%
echo * MSVC_DIR = %MSVC_DIR%
echo * PATH = %PATH%
echo * DLT_VIEWER_SDK_DIR = %DLT_VIEWER_SDK_DIR%
echo * SOURCE_DIR = %SOURCE_DIR%
echo ************************************
IF not exist "%MSVC_DIR%" (
echo "\!"
echo "No valid MSVC directory found in %MSVC_DIR%"
echo "\!"
GOTO ERROR_HANDLER
)
echo ************************************
echo *** Unzip Archives ***
echo ************************************
IF exist qwt-%QWT% (
rmdir /s /q qwt-%QWT%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
)
%SEVENZ_DIR%\7z.exe x qwt-%QWT%.zip -y
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
cd %SOURCE_DIR%
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
echo ************************************
echo *** Configure MSVC environment ***
echo ************************************
call vcvarsall.bat %ARCHITECTURE%
if %ERRORLEVEL% NEQ 0 goto error
echo configuring was successful
echo ************************************
echo *** Build QWT ***
echo ************************************
set QMAKEFEATURES=%QWT_DIR%\features
qmake qwt.pro
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake clean
rem IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
nmake install
IF %ERRORLEVEL% NEQ 0 GOTO ERROR_HANDLER
echo *** Move QWT folder ***
move "C:\Qwt-%QWT%" %QWT_DIR%
GOTO QUIT
:ERROR_HANDLER
echo ####################################
echo ### ERROR occured ###
echo ####################################
cd %WORKINGDIR%
IF '%WORKSPACE%'=='' (
pause
)
:QUIT
echo ************************************
echo *** SUCCESS finish ***
echo ************************************
echo Qwt installed in: %QWT_DIR%
cd %WORKINGDIR%
IF '%WORKSPACE%'=='' (
pause
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。