QT5.15 offline installation

After online installation, pack all the resources into a compressed package. Copy it to another computer and make the following settings:

1. Unzip

2. Access path: QT\Tools\sdktool\share\qtcreator\QtProject.

3. Modify QtCreator.ini, and change all absolute paths to actual storage paths.

4. Open the qtcreator folder, and modify the absolute path in the six xml files inside to the actual storage path.

MSVC environment configuration

First, select MSVC when installing QT.

Secondly, through the VS online installer, the following components need to be installed.

 

Finally, configure:

1. Install windows 10 sdk.
2. Restart the computer.
3. QT->External->Configuration->kit->debuggers, check if cdb.exe is automatically detected.
If not detected, manual configuration is required. Reference location: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe
4. Select MSVC2019 32bit in the Kit, and select the cdb.exe detected in the previous step for the debugger. If the compiler is blank, select the C++ 14.0 (x86) compiler
5. Compile the code. If the error "cannot run rc.exe" is reported, you need to copy rc.exe and rcdll.dll in C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x86 and copy them to QT\5.15.2 \msvc2019\bin

6、msvc-version.conf loaded but QMAKE_MSC_VER isn't set
QT\5.15.2\msvc2019\mkspecs\common\msvc-version.conf

isEmpty(QMAKE_MSC_VER): error("msvc-version.conf loaded but QMAKE_MSC_VER isn't set") The above line is added: QMAKE_MSC_VER=1900

The same goes for X64.

Guess you like

Origin blog.csdn.net/Smile_king/article/details/130502065