Files
Commonwealth-Online-Server/find-qt.bat
T
2026-08-01 18:43:40 +12:00

70 lines
1.6 KiB
Batchfile

@echo off
setlocal enabledelayedexpansion
echo.
echo ================================================================================
echo Qt Installation Finder
echo ================================================================================
echo.
REM Check common locations
echo Searching for Qt6 installation...
echo.
set FOUND=0
echo Checking C:\Qt...
if exist "C:\Qt" (
echo Found C:\Qt directory
dir /b "C:\Qt" | findstr /R "^[0-9]"
set FOUND=1
)
echo.
echo Checking C:\Program Files...
if exist "C:\Program Files\Qt" (
echo Found C:\Program Files\Qt
dir /b "C:\Program Files\Qt"
set FOUND=1
)
echo.
echo Checking C:\Program Files ^(x86^)...
if exist "C:\Program Files (x86)\Qt" (
echo Found C:\Program Files (x86)\Qt
dir /b "C:\Program Files (x86)\Qt"
set FOUND=1
)
echo.
echo Checking AppData...
if exist "%APPDATA%\Qt" (
echo Found %APPDATA%\Qt
dir /b "%APPDATA%\Qt"
set FOUND=1
)
if %FOUND%==0 (
echo.
echo [WARNING] Qt6 not found in common locations!
echo.
echo Please try one of the following:
echo.
echo 1. Install Qt6 from https://www.qt.io/download-open-source
echo Use default installation path: C:\Qt\6.8.0\
echo.
echo 2. If Qt is installed elsewhere, manually edit build.bat
echo and add your Qt path to the PATHS_TO_CHECK list
echo.
echo 3. Or run CMake manually with explicit path:
echo cmake .. -G "Visual Studio 17 2022" -DCMAKE_PREFIX_PATH="path\to\your\Qt"
echo.
pause
exit /b 1
)
echo.
echo Installation search complete!
echo.
pause