我不是开发人员,我在qt中为64位开发了应用程序源代码,并且我需要为32位编译,因为我们同一位员工没有64位pc。
用于编译64位的代码是这个>
@echo off
set CURR=%~dp0
set QT_VERSION=5.12.1
echo Qt version %QT_VERSION%
rem working dir
set BUILD_DIR=%CURR%\build_all
set WIN_QT=C:\Qt\%QT_VERSION%\mingw73_64\bin
set WIN_COMPILER_DLLS=C:\Qt\Tools\mingw730_64\bin
set NSIS_DIR="C:\Program Files (x86)\NSIS\Bin"
rem subfolder where compiler puts real binaries
rem warning! if this changed somehow, installer.nsi must be modified in 2 places
set WIN_REAL_COMPILER_OUT=release
rem *************************************************************************************
echo 'Compiling Windows'
rmdir /S /Q %BUILD_DIR%\win64
mkdir %BUILD_DIR%\win64
cd %BUILD_DIR%/win64
%WIN_QT%\qmake.exe CONFIG+=release %CURR%\tracker
%WIN_COMPILER_DLLS%\mingw32-make -j 6
del /S /Q %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\*.cpp
del /S /Q %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\*.o
del /S /Q %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\*.h
del /S /Q %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\*.obj
del /S /Q %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\*.c
%WIN_QT%\windeployqt.exe ^
--release ^
--no-quick-import ^
--no-translations ^
%BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%\TimeTracker.exe
copy /Y %CURR%\ssl_win\*.dll %BUILD_DIR%\win64\%WIN_REAL_COMPILER_OUT%
cd %CURR%
del /S /Q TimeTrackerInstaller.exe
%NSIS_DIR%\makensis.exe installer.nsi
我如何才能将此应用程序编译为32位?