7. Проверка собранного пакета
Что будет сделано на этой странице: вы запустите собранные программы (из папки поставки и из папки сборки — с правильным окружением), выполните пробный расчёт обоими счётными ядрами в пакетном режиме и проверите коды завершения; при желании — сравните новую сборку с прежней побайтно.
7.1. Главное правило запуска
| Откуда запускаете | Что нужно |
|---|---|
папка поставки dist\TMC_Suite_Qt6_win64 |
ничего: все DLL и модули Qt лежат рядом с программами |
| установленный пакет (после установщика) | ничего |
папка сборки dist\win64\bin |
задать окружение (раздел 7.3): PATH с папками Qt и MinGW и QT_PLUGIN_PATH |
Если запустить программу из dist\win64\bin двойным щелчком, появится системное окно ошибки
(«no Qt platform plugin…» или «система не обнаружила libstdc++-6.dll») — см. страницу 8,
раздел 8.5. Такое окно закрывается только кнопкой ОК вручную.
7.2. Запуск из папки поставки
- Откройте в Проводнике папку
C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64. - Запустите двойным щелчком по очереди:
planarrt_h.exe,planarrt_x.exe,tmcgrout.exe,tmcros.exe,tmc_dn.exe,fieldview.exe,TplDesigner.exe. - Каждая программа должна открыть окно в тёмном оформлении без сообщений об ошибках. Закройте окно крестиком в правом верхнем углу.


Полная проверка окон (кнопки панели инструментов, переключатели, Config → Compute
(GPU)…, Help → About, вьюверы, FieldView, TPL Designer) — по чек-листу
ПРОВЕРКА_ИНТЕРФЕЙСА.txt, который лежит в папке поставки. Интерфейс проверяется щелчками
по настоящим окнам: успешный пробный расчёт не доказывает, что работают окна.
7.3. Запуск из папки сборки dist\win64\bin
В dist\win64\bin лежит часть DLL Qt (их копирует туда сборка TPL Designer), но нет
папки модулей platforms\qwindows.dll и библиотек MinGW (libstdc++-6.dll и др.).
Поэтому окружение задаётся вручную — в окне Командная строка:
set PATH=C:\Qt\6.11.3\mingw_64\bin;C:\Qt\Tools\mingw1310_64\bin;%PATH%
set QT_PLUGIN_PATH=C:\Qt\6.11.3\mingw_64\plugins
"C:\src\TMC_Suite\dist\win64\bin\planarrt_h.exe"
То же в Git Bash:
export PATH="/c/Qt/6.11.3/mingw_64/bin:/c/Qt/Tools/mingw1310_64/bin:$PATH"
export QT_PLUGIN_PATH="C:/Qt/6.11.3/mingw_64/plugins"
"/c/src/TMC_Suite/dist/win64/bin/planarrt_h.exe" &
Правила:
QT_PLUGIN_PATH— только полный путь (с буквой диска). С относительным путём Qt не найдёт модули, и появится окно ошибки.- Переменные
set/exportдействуют только в этом окне. В новом окне их задают снова. - Папка Qt 6.11.3 должна стоять в
PATHраньше других папок с DLL Qt или MinGW (иначе программа может подхватить чужие DLL — страница 8, раздел 8.5).
7.4. Пробный расчёт в пакетном режиме
Счётные ядра умеют считать без участия человека: ключ /Arb запускает расчёт и закрывает
окно по окончании (в том числе при ошибке), ключ /Time записывает рядом с заданием отчёт
о времени расчёта.
Ядро H
- Создайте пустую папку
C:\tmc_testи скопируйте в неё файлC:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\samples\DEMO\PlanarRT_H\demo_h.tpl. Заданиеdemo_h.tplсамодостаточно (не подключает других файлов) и считается быстро (сетка 200×100). Ядро пишет результаты рядом с заданием, поэтому считайте в отдельной папке, а не в папке образцов. -
Откройте Командная строка и выполните по очереди:
cd /d C:\tmc_test start /wait "" "C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\planarrt_h.exe" demo_h.tpl /Arb /Time echo %ERRORLEVEL%start /waitнужен потому, что ядро — оконная программа: без него командная строка не дождётся конца расчёта и не получит код завершения. На время расчёта на экране появится окно ядра; оно закроется само. -
Ожидается:
- число
0послеecho %ERRORLEVEL%; - в
C:\tmc_test— выходные файлы расчёта (среди нихdemo_h.t— выходной сигнал) и отчёт о времениdemo_h.timing_H_win64.txt.
Проверка:
dir C:\tmc_test. - число
Ядро X
То же для X-моды: скопируйте в C:\tmc_test файл samples\DEMO\PlanarRT_X\demo_x.tpl из
папки поставки и выполните:
cd /d C:\tmc_test
start /wait "" "C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\planarrt_x.exe" demo_x.tpl /Arb /Time
echo %ERRORLEVEL%
Ожидается 0, файлы demo_x.* и demo_x.timing_X_win64.txt.
Что значат коды завершения
| Код | Смысл |
|---|---|
0 |
всё посчитано |
1 |
ошибка задания (нет файла, ошибка препроцессора или данных); расчёт не выполнялся |
2 |
ошибка во время счёта |
3 |
расчёт остановлен или окно закрыто |
Если ядро запущено с /Arb из bat-файла, оно пишет ход расчёта в окно командной строки —
строки вида [PlanarRT_H] Step 1 of 1: done и итог RESULT 0: OK - all steps are
calculated:

Подробно о пакетном режиме — руководство пользователя, глава «Работа без участия человека: пакетный режим и командная строка»
(docs\user-manual\console-mode.md).
Запуск из Git Bash
В Git Bash ключи /Arb и /Time превращаются в пути. Отключите это MSYS_NO_PATHCONV=1:
cd /c/tmc_test
MSYS_NO_PATHCONV=1 "/c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64/planarrt_h.exe" demo_h.tpl /Arb /Time; echo $?
(или пишите ключи через дефис: -Arb -Time).
Для пробных прогонов не включайте в задании вывод полей (
FIELDS) и топологии (TOPOLOGY) в разделе вывода — с ними расчёт идёт на порядки дольше.

Назад: 6. Установщик · Далее: 8. Ошибки и решения
7. Checking the built package
What this page covers: you will start the built programs (from the distribution folder and from the build folder — with the correct environment), run a trial computation with both compute kernels in batch mode and check the exit codes; optionally, compare the new build with the previous one byte by byte.
7.1. The main rule for starting programs
| Where you start from | What is needed |
|---|---|
the distribution folder dist\TMC_Suite_Qt6_win64 |
nothing: all DLLs and Qt modules are next to the programs |
| the installed package (after the installer) | nothing |
the build folder dist\win64\bin |
set up the environment (section 7.3): PATH with the Qt and MinGW folders and QT_PLUGIN_PATH |
If you start a program from dist\win64\bin by double-clicking, a system error window will appear
("no Qt platform plugin…" or "the system cannot find libstdc++-6.dll") — see page 8,
section 8.5. Such a window can only be closed manually with the OK button.
7.2. Starting from the distribution folder
- Open in File Explorer the folder
C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64. - Double-click, one after another:
planarrt_h.exe,planarrt_x.exe,tmcgrout.exe,tmcros.exe,tmc_dn.exe,fieldview.exe,TplDesigner.exe. - Each program must open a window with the dark theme without error messages. Close the window with the cross in the upper right corner.


A full check of the windows (toolbar buttons, switches, Config → Compute
(GPU)…, Help → About, viewers, FieldView, TPL Designer) follows the check list
ПРОВЕРКА_ИНТЕРФЕЙСА.txt, which is in the distribution folder. The user interface is checked by clicking
in the real windows: a successful trial computation does not prove that the windows work.
7.3. Starting from the build folder dist\win64\bin
dist\win64\bin contains some of the Qt DLLs (they are copied there by the TPL Designer build), but there is no
module folder platforms\qwindows.dll and no MinGW libraries (libstdc++-6.dll, etc.).
Therefore the environment is set up manually — in the Command Prompt window:
set PATH=C:\Qt\6.11.3\mingw_64\bin;C:\Qt\Tools\mingw1310_64\bin;%PATH%
set QT_PLUGIN_PATH=C:\Qt\6.11.3\mingw_64\plugins
"C:\src\TMC_Suite\dist\win64\bin\planarrt_h.exe"
The same in Git Bash:
export PATH="/c/Qt/6.11.3/mingw_64/bin:/c/Qt/Tools/mingw1310_64/bin:$PATH"
export QT_PLUGIN_PATH="C:/Qt/6.11.3/mingw_64/plugins"
"/c/src/TMC_Suite/dist/win64/bin/planarrt_h.exe" &
Rules:
QT_PLUGIN_PATH— only a full path (with the drive letter). With a relative path Qt will not find the modules, and an error window will appear.- The
set/exportvariables apply only in this window. In a new window they are set again. - The Qt 6.11.3 folder must come in
PATHbefore other folders with Qt or MinGW DLLs (otherwise the program may pick up other DLLs — page 8, section 8.5).
7.4. Trial computation in batch mode
The compute kernels can compute unattended: the /Arb option starts the computation and closes
the window when it finishes (including on an error), the /Time option writes a computation-time report
next to the task file.
Kernel H
- Create an empty folder
C:\tmc_testand copy into it the fileC:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\samples\DEMO\PlanarRT_H\demo_h.tpl. The task filedemo_h.tplis self-contained (it does not include other files) and computes quickly (a 200×100 grid). The kernel writes the results next to the task file, so compute in a separate folder, not in the samples folder. -
Open Command Prompt and run, one after another:
cd /d C:\tmc_test start /wait "" "C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\planarrt_h.exe" demo_h.tpl /Arb /Time echo %ERRORLEVEL%start /waitis needed because the kernel is a windowed program: without it the command prompt will not wait for the end of the computation and will not get the exit code. During the computation the kernel window appears on the screen; it closes by itself. -
Expected:
- the number
0afterecho %ERRORLEVEL%; - in
C:\tmc_test— the computation output files (among themdemo_h.t, the output signal) and the time reportdemo_h.timing_H_win64.txt.
Check:
dir C:\tmc_test. - the number
Kernel X
The same for the X-mode: copy into C:\tmc_test the file samples\DEMO\PlanarRT_X\demo_x.tpl from
the distribution folder and run:
cd /d C:\tmc_test
start /wait "" "C:\src\TMC_Suite\dist\TMC_Suite_Qt6_win64\planarrt_x.exe" demo_x.tpl /Arb /Time
echo %ERRORLEVEL%
Expected: 0, the files demo_x.* and demo_x.timing_X_win64.txt.
What the exit codes mean
| Code | Meaning |
|---|---|
0 |
everything has been computed |
1 |
task-file error (missing file, preprocessor or data error); the computation was not performed |
2 |
error during the computation |
3 |
the computation was stopped or the window was closed |
If the kernel is started with /Arb from a bat file, it writes the progress of the computation to the command prompt window —
lines like [PlanarRT_H] Step 1 of 1: done and the result RESULT 0: OK - all steps are
calculated:

For details on batch mode, see the user manual, chapter "Unattended operation: batch mode and the command line"
(docs\user-manual\console-mode.md).
Running from Git Bash
In Git Bash the /Arb and /Time options are converted into paths. Disable this with MSYS_NO_PATHCONV=1:
cd /c/tmc_test
MSYS_NO_PATHCONV=1 "/c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64/planarrt_h.exe" demo_h.tpl /Arb /Time; echo $?
(or write the options with a hyphen: -Arb -Time).
For trial runs, do not enable the output of fields (
FIELDS) and topology (TOPOLOGY) in the output section of the task file — with them the computation takes orders of magnitude longer.

Back: 6. Installer · Next: 8. Errors and solutions