3 echo ##########################################################################
\r
5 echo ##########################################################################
\r
7 if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
\r
8 REM clean BUILD directory
\r
9 if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
\r
16 echo --------------------------------------------------------------------------
\r
18 echo --------------------------------------------------------------------------
\r
20 rem configure -prefix %PRODUCT_INSTALL% -release -opensource -verbose -no-separate-debug-info -confirm-license -no-compile-examples -qt-libpng
\r
22 REM call configure -prefix %PRODUCT_INSTALL% -confirm-license -verbose -release -platform win32-msvc2010 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -qt-sql-odbc -opensource -make libs -qt-designer
\r
24 call configure -prefix %PRODUCT_INSTALL% -confirm-license -verbose -release -platform win32-msvc2010 -qt-pcre -qt-libjpeg -opengl desktop -qt-sql-sqlite -qt-sql-odbc -opensource -make tools -make libs
\r
26 if NOT %ERRORLEVEL% == 0 (
\r
27 echo "ERROR on configure"
\r
31 REM Compilation with nmake as said in qt documentation
\r
32 REM nmake can crash because of multi-threading problems
\r
33 REM Thus, we will try to run it 42 times until it works
\r
34 set /a remaining_tries = 42
\r
36 echo *** Trying to run nmake %remaining_tries% more time.
\r
37 set /a remaining_tries = remaining_tries - 1
\r
39 if NOT %ERRORLEVEL% == 0 if %remaining_tries% gtr 0 (
\r
42 if %remaining_tries% == 0 (
\r
43 echo "ERROR on nmake"
\r
49 echo --------------------------------------------------------------------------
\r
50 echo *** nmake install
\r
51 echo --------------------------------------------------------------------------
\r
54 if NOT %ERRORLEVEL% == 0 (
\r
55 echo "ERROR on nmake install"
\r
59 echo "*** Adding qt.conf file in order to be able to compile using the moved Qt installation"
\r
60 echo [Paths] > %PRODUCT_INSTALL%\bin\qt.conf
\r
61 echo Prefix=../ >> %PRODUCT_INSTALL%\bin\qt.conf
\r