Skip to content
wyldckat edited this page Jul 13, 2012 · 1 revision


MinGW

Sample of the file qtvars.bat for the MinGW version of Qt:

@echo off
rem
rem This file is generated
rem

echo Setting up a MinGW/Qt only environment...
echo -- QTDIR set to Q:\4.7.2
echo -- PATH set to Q:\4.7.2\bin
echo -- Adding Q:\mingw440\bin to PATH
echo -- Adding %SystemRoot%\System32 to PATH
echo -- QMAKESPEC set to win32-g++

set QTDIR=Q:\4.7.2
set PATH=Q:\4.7.2\bin
set PATH=%PATH%;Q:\mingw440\bin
set PATH=%PATH%;%SystemRoot%\System32
set QMAKESPEC=win32-g++


Microsoft Visual Studio 2008

Sample of the file qtvars.bat for the Microsoft Visual Studio 2008 version of Qt:

@echo off
rem
rem This file is generated by the Qt installer
rem

echo Setting up a Qt environment...

set QTDIR=Q:\4.7.2-msvc
echo -- QTDIR set to Q:\4.7.2-msvc
set PATH=Q:\4.7.2-msvc\bin;%PATH%
echo -- Added Q:\4.7.2-msvc\bin to PATH
set QMAKESPEC=win32-msvc2008
echo -- QMAKESPEC set to "win32-msvc2008"
Clone this wiki locally