Quantcast

For your consideration: another version of the Qt.bat file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

For your consideration: another version of the Qt.bat file

freixas
I'm sure people working on Windows customize their Qt.bat file with respect to the one at https://musescore.org/en/developers-handbook/compilation/compile-instructions-windows-mingw-git. Here's my version, just FYI.

Ignore  the funny PF and PF86 folders. The essence of the changes are:

* A little bit of spacing for clarity
* The values reported using echo are the actual values set, not the ones you intended to set, but got confused and only changed the echo and not the actual setting (or mistyped the set version)
* The PATH is pretty-printed
* You can use a single batch file to set up different Windows shortcuts. This version supports options for running QtCreator or a command line.

@echo off
echo Setting up a MinGW/Qt only environment...
echo(

set QTDIR=C:\Qt\5.6\mingw492_32
echo -- Set QTDIR to %QTDIR%
echo(

set PATH=%QTDIR%\bin
set PATH=%PATH%;C:\Qt\Tools\mingw492_32\bin
set PATH=%PATH%;C:\Qt\Tools\mingw492_32\lib
set PATH=%PATH%;C:\PF86\CMake\bin
set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
set PATH=%PATH%;%SystemRoot%\System32
set PATH=%PATH%;C:\PF\Git\Cmd
REM doxygen
REM MiKTeX

echo -- set PATH to:
ECHO.%PATH:;= & ECHO.%
echo(

set QMAKESPEC=win32-g++
echo -- set QMAKESPEC to %QMAKESPEC%

set MAKEFLAGS=-j %NUMBER_OF_PROCESSORS%
echo -- Set MAKEFLAGS to %MAKEFLAGS%

set WORKDIR=MuseScore-gsoc-implode
echo -- Set WORKDIR   to %WORKDIR%

:parse
IF "%~1"=="" GOTO endparse
IF "%~1"=="qt" GOTO startqt
IF "%~1"=="cmd" GOTO startcmd
SHIFT
GOTO parse
:endparse

:startqt:

pause
start /low qtcreator -lastsession
exit

:startcmd:

e:
cd "/MuseScoreBuilds/%WORKDIR%/MuseScore"

echo(
cd
echo(

cmd.exe
Loading...