Инструкция по сборке: обзор и выбор версии
Что будет на этой странице. Вы узнаете, какие версии пакета TMC Suite можно собрать из исходного кода, чем они отличаются, сколько времени и места на диске займёт сборка каждой из них, и решите, какую версию собирать — или не собирать вовсе, а установить готовую. В конце страницы — оглавление обеих инструкций по сборке со ссылками на все шаги.
TMC Suite — научный пакет программ численной электродинамики (автор — К. Н. Климов): расчёт планарных структур (H-поляризация и X-мода), просмотр матриц рассеяния, диаграмм направленности, временных сигналов и полей.
Если вам нужно только пользоваться программами, собирать их не нужно. Скачайте готовый установщик и установите пакет — см. раздел «Какую версию выбрать».
Две версии пакета
Пакет существует в двух версиях. Это разные комплекты исходного кода с разными средствами сборки; у каждой версии — своя полная инструкция.
MFC-версия 1.3
- Классическая версия пакета: интерфейс программ написан на библиотеке MFC (Microsoft Foundation Classes), поле выводится через OpenGL.
- Исходный код открыт и опубликован на GitHub: https://github.com/klimov-kn/TMC_Suite
(ветка
mfc, метка выпускаv1.3). Скачивается командойgit cloneили ZIP-архивом. - Собирается в среде Microsoft Visual Studio 2026 (Community — бесплатная редакция).
Все 12 проектов (6 библиотек и 6 программ) входят в одно общее решение
src\tamic.slnx. - Платформы: Win32 (32 бита) и x64 (64 бита). Конфигурации: Release (выпуск) и Debug (отладка) — всего четыре сочетания.
- Сборка выполняется в окне Visual Studio одной командой меню или из командной строки программой MSBuild.
Qt6-версия 5.0
- Новая версия пакета: интерфейс программ переписан на библиотеке Qt 6, расчётный код — общий с MFC-версией. В состав входит редактор заданий TPL Designer.
- Исходный код открыт и опубликован на GitHub: https://github.com/klimov-kn/TMC_Suite
(ветка
main, метка выпускаv5.0.0) — подробнее на странице qt6/02 — Исходники. - Средства сборки: Qt 6.11.3 с компилятором MinGW 13.1, системы сборки CMake и Ninja. Visual Studio не нужна.
- Сборка запускается одной командой — сценарием
build_win.shв окне Git Bash (командная оболочка, которая ставится вместе с Git for Windows). - Для TPL Designer нужна библиотека OpenCASCADE 7.9.3 (чтение 3D-моделей STEP). Её один раз собирают из исходников тем же компилятором MinGW — это самый долгий этап.
- Платформа: только x64 (Qt 6 выпускается только для 64-разрядной Windows). Конфигурация: Release.
Сравнение версий
| MFC 1.3 | Qt6 5.0 | |
|---|---|---|
| Где взять исходники | GitHub: https://github.com/klimov-kn/TMC_Suite (git clone или ZIP) |
полный архив от автора пакета или ответственного за выпуск |
| Объём исходников | около 14 МБ (ZIP-архив — около 3 МБ) | полный архив рабочей папки TMC_Suite; исходники OpenCASCADE (≈ 314 МБ) скачиваются отдельно |
| Обязательные инструменты | Visual Studio Community 2026 (18.11.1) с нагрузкой «Разработка классических приложений на C++», компонентом MFC и Windows SDK | Git for Windows (Git Bash), Qt 6.11.3 (MinGW 13.1.0 64-bit + Qt Shader Tools), MinGW 13.1.0, CMake (не ниже 3.22), Ninja, Python 3, OpenCASCADE 7.9.3 (собирается из исходников) |
| Необязательные инструменты | Git for Windows — для git clone; Inno Setup 6 — для установщика |
Inno Setup 6.7 или новее — для установщика; 7-Zip — для запасного способа установки Qt |
| Время установки инструментов | Visual Studio: обычно 10–40 минут (зависит от скорости интернета) | установка Qt, MinGW, CMake, Ninja, Python не замерялась; сборка OpenCASCADE — 4152 шага Ninja, самый долгий этап, точное время не замерялось |
| Время сборки пакета | 20–25 секунд на одно сочетание; все четыре сочетания — около 1 мин 20 с (6-ядерный Intel Core i5-9600KF); повторная сборка без изменений — 2,3 с | первая полная сборка — около 5 минут (около 360 шагов Ninja, 4 потока); повторная — от нескольких секунд до минуты; сборка папки поставки — несколько минут |
| Место на диске | Visual Studio — несколько гигабайт; сборка всех четырёх сочетаний — около 3 ГБ (одно сочетание — около четверти) | закладывайте не меньше 5 ГБ: Qt ≈ 1,5 ГБ, MinGW ≈ 660 МБ, OpenCASCADE ≈ 890 МБ (исходники, сборка, установка), папка сборки ≈ 263 МБ, папка поставки ≈ 188 МБ |
| Платформы | Win32 и x64 | только x64 |
| Конфигурации | Release и Debug | Release |
| Как запускается сборка | Visual Studio: Сборка → Пересобрать решение; или команда msbuild в Developer PowerShell for VS |
команда sh build/build_win.sh в Git Bash |
| Что получится | 6 программ (tmc_rth.exe, tmc_rtx.exe, TMCROS.exe, TMCGROUT.exe, TMC_DN.exe, FieldView.exe) и 6 библиотек .lib на каждое сочетание в dist\win64\…, dist\win32\… |
8 программ (planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe, fieldview.exe, TplDesigner.exe, gen_lr2.exe) в build-win\bin; папка поставки dist\TMC_Suite_Qt6_win64 со всеми DLL |
| Что нужно для запуска программ | ничего: MFC и библиотека C подключены статически, программы запускаются на любой Windows без дополнительных DLL | папка поставки (рядом с программами — DLL Qt, MinGW, OpenCASCADE); из папки сборки программы двойным щелчком не запускаются |
| Установщик | TMC_Suite_Setup.exe (Inno Setup 6): обе разрядности в одном установщике; переносимая папка или ZIP — без установщика |
TMC_Suite_5.0_Qt6_Setup.exe (Inno Setup 6.7, около 60 МБ); ставится рядом с MFC-версией и не мешает ей |
| Сложность | низкая: одна среда разработки, одно решение, сборка — одной командой меню; собирается без предупреждений | выше средней: несколько отдельных инструментов (Git, Qt с MinGW, CMake и Ninja, Python), сборка OpenCASCADE из исходников, работа в командной строке Git Bash, путь C:\Qt записан в сценариях |
| Подробная инструкция | MFC 1.3 · 1. Что установить и далее (7 шагов) | Qt6 5.0 · 1. Что установить перед сборкой и далее (8 страниц) |
Все цифры времени и объёма — реальные замеры на машине разработки, взятые из страниц инструкций. На другом компьютере время может отличаться: меньше ядер процессора — дольше сборка; медленнее интернет — дольше установка инструментов.
Какую версию выбрать
Нужно только пользоваться программами — не собирайте
Сборка нужна тем, кто изменяет исходный код или хочет получить программы из исходников самостоятельно. Чтобы просто работать с пакетом, скачайте готовый установщик и установите программы — порядок описан в разделе «Установка»:
- MFC-версия 1.3 — Установка MFC-версии под Windows;
- Qt6-версия 5.0 — Установка Qt6-версии под Windows.
Собирайте MFC 1.3, если
- вы работаете в Visual Studio и хотите открывать, отлаживать и пересобирать проекты в ней;
- нужен 32-битный вариант программ (для 32-разрядной Windows) — Qt6-версия его не имеет;
- нужна отладочная сборка Debug для поиска ошибок в отладчике Visual Studio;
- нужна самая простая и быстрая сборка: исходники открыты на GitHub, установить нужно одну среду разработки, сборка занимает меньше минуты.
Собирайте Qt6 5.0, если
- нужна новая версия пакета, в которую входят:
- редактор заданий TPL Designer (в том числе импорт 3D-моделей STEP);
- многочастотный расчёт;
- переключение языка интерфейса программ;
- расчёт на видеокарте (в MFC-версии он тоже есть, но только в 64-битной сборке —
ключ
/GPU);
- достаточно 64-битного варианта программ;
- у вас есть полный архив исходников Qt6-версии и не меньше 5 ГБ свободного места на диске.
Если сомневаетесь и вам нужна сборка именно из исходников, начните с MFC 1.3: её проще повторить с первого раза, а результат проверяется пробным расчётом за несколько секунд.
Оглавление: сборка MFC-версии 1.3
Страницы выполняются по порядку. Шаг 4 можно делать вместо шага 3 (результат одинаковый), шаг 6 — по желанию.
| Шаг | Страница | Что делаете |
|---|---|---|
| 1 | Что установить | ставите Visual Studio 2026 с компонентом MFC, при желании Git и Inno Setup |
| 2 | Получение исходников | скачиваете исходники с GitHub в C:\src\TMC_Suite и проверяете состав папок |
| 3 | Сборка в Visual Studio | открываете src\tamic.slnx, выбираете конфигурацию и платформу, собираете 12 проектов |
| 4 | Сборка из командной строки | собираете программой MSBuild все четыре сочетания, пишете журнал сборки в файл |
| 5 | Проверка результата и пробный запуск | проверяете файлы и разрядность, выполняете пробный расчёт, сверяете код возврата |
| 6 | Установщик и переносимая папка | собираете TMC_Suite_Setup.exe или переносимый ZIP-архив |
| 7 | Ошибки и их решение | открываете, если что-то пошло не так |
Оглавление: сборка Qt6-версии 5.0
Обратите внимание на порядок: библиотека OpenCASCADE (страница 4, разделы 4.1–4.4) собирается раньше программ пакета (страница 3) — без неё сборка пакета останавливается с ошибкой.
| Шаг | Страница | Что делаете |
|---|---|---|
| 1 | Что установить перед сборкой | ставите Git for Windows, Qt 6.11.3, MinGW 13.1, CMake, Ninja, Python, Inno Setup |
| 2 | Исходный код и раскладка папок | скачиваете исходники с GitHub и проверяете, что все файлы на месте |
| 3 | OpenCASCADE и TPL Designer, разделы 4.1–4.4 | один раз загружаете и собираете OpenCASCADE 7.9.3 |
| 4 | Сборка программ пакета | собираете все программы пакета одной командой build_win.sh |
| 5 | OpenCASCADE и TPL Designer, разделы 4.5–4.7 | проверяете TPL Designer и при желании запускаете его тесты |
| 6 | Папка поставки | собираете папку dist\TMC_Suite_Qt6_win64 со всеми программами и DLL |
| 7 | Установщик | собираете TMC_Suite_5.0_Qt6_Setup.exe |
| 8 | Проверка собранного пакета | запускаете программы и пробный расчёт обоими счётными ядрами |
| — | Ошибки и решения | открываете, если что-то пошло не так |
Build guide: overview and choice of version
What this page covers. You will learn which versions of the TMC Suite package can be built from source code, how they differ, how much time and disk space building each of them takes, and decide which version to build — or not to build at all and install a ready-made one. At the end of the page there is a table of contents of both build guides with links to every step.
TMC Suite is a scientific software package for computational electrodynamics (author: K. N. Klimov): computation of planar structures (H-polarization and X-mode), viewing of scattering matrices, radiation patterns, time signals and fields.
If you only need to use the programs, you do not need to build them. Download a ready-made installer and install the package — see the section “Which version to choose”.
Two versions of the package
The package exists in two versions. They are different sets of source code with different build tools; each version has its own complete guide.
MFC version 1.3
- The classic version of the package: the user interface of the programs is written with the MFC library (Microsoft Foundation Classes), the field is displayed via OpenGL.
- The source code is open and published on GitHub: https://github.com/klimov-kn/TMC_Suite
(branch
mfc, release tagv1.3). It is downloaded withgit cloneor as a ZIP archive. - It is built in Microsoft Visual Studio 2026 (Community is the free edition).
All 12 projects (6 libraries and 6 programs) are part of one common solution,
src\tamic.slnx. - Platforms: Win32 (32-bit) and x64 (64-bit). Configurations: Release and Debug — four combinations in total.
- The build is started in the Visual Studio window with a single menu command, or from the command line with MSBuild.
Qt6 version 5.0
- The new version of the package: the user interface of the programs has been rewritten with the Qt 6 library; the computational code is shared with the MFC version. It includes the TPL Designer task file editor.
- The source code is open and published on GitHub: https://github.com/klimov-kn/TMC_Suite
(branch
main, release tagv5.0.0) — see the page qt6/02 — Sources. - Build tools: Qt 6.11.3 with the MinGW 13.1 compiler, the CMake and Ninja build systems. Visual Studio is not needed.
- The build is started with a single command — the
build_win.shscript in a Git Bash window (a command shell installed together with Git for Windows). - TPL Designer needs the OpenCASCADE 7.9.3 library (reading of STEP 3D models). It is built once from source with the same MinGW compiler — this is the longest stage.
- Platform: x64 only (Qt 6 is released only for 64-bit Windows). Configuration: Release.
Comparison of versions
| MFC 1.3 | Qt6 5.0 | |
|---|---|---|
| Where to get the sources | GitHub: https://github.com/klimov-kn/TMC_Suite (git clone or ZIP) |
complete archive from the author of the package or the person responsible for the release |
| Size of the sources | about 14 MB (ZIP archive — about 3 MB) | complete archive of the TMC_Suite working folder; the OpenCASCADE sources (≈ 314 MB) are downloaded separately |
| Required tools | Visual Studio Community 2026 (18.11.1) with the “Desktop development with C++” workload, the MFC component and a Windows SDK | Git for Windows (Git Bash), Qt 6.11.3 (MinGW 13.1.0 64-bit + Qt Shader Tools), MinGW 13.1.0, CMake (3.22 or later), Ninja, Python 3, OpenCASCADE 7.9.3 (built from source) |
| Optional tools | Git for Windows — for git clone; Inno Setup 6 — for the installer |
Inno Setup 6.7 or later — for the installer; 7-Zip — for the fallback way of installing Qt |
| Time to install the tools | Visual Studio: usually 10–40 minutes (depends on the internet speed) | installation of Qt, MinGW, CMake, Ninja, Python was not timed; the OpenCASCADE build is 4152 Ninja steps, the longest stage, its exact time was not measured |
| Time to build the package | 20–25 seconds per combination; all four combinations — about 1 min 20 s (6-core Intel Core i5-9600KF); a repeated build without changes — 2.3 s | first full build — about 5 minutes (about 360 Ninja steps, 4 threads); a repeated build — from a few seconds to a minute; building the distribution folder — a few minutes |
| Disk space | Visual Studio — several gigabytes; the build of all four combinations — about 3 GB (one combination — about a quarter) | allow at least 5 GB: Qt ≈ 1.5 GB, MinGW ≈ 660 MB, OpenCASCADE ≈ 890 MB (sources, build, installation), build folder ≈ 263 MB, distribution folder ≈ 188 MB |
| Platforms | Win32 and x64 | x64 only |
| Configurations | Release and Debug | Release |
| How the build is started | Visual Studio: Build → Rebuild Solution; or the msbuild command in Developer PowerShell for VS |
the command sh build/build_win.sh in Git Bash |
| What you get | 6 programs (tmc_rth.exe, tmc_rtx.exe, TMCROS.exe, TMCGROUT.exe, TMC_DN.exe, FieldView.exe) and 6 .lib libraries per combination in dist\win64\…, dist\win32\… |
8 programs (planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe, fieldview.exe, TplDesigner.exe, gen_lr2.exe) in build-win\bin; the distribution folder dist\TMC_Suite_Qt6_win64 with all DLLs |
| What is needed to run the programs | nothing: MFC and the C library are linked statically, the programs run on any Windows without additional DLLs | the distribution folder (the Qt, MinGW and OpenCASCADE DLLs lie next to the programs); from the build folder the programs do not start by double-click |
| Installer | TMC_Suite_Setup.exe (Inno Setup 6): both bitnesses in one installer; a portable folder or ZIP — without an installer |
TMC_Suite_5.0_Qt6_Setup.exe (Inno Setup 6.7, about 60 MB); installs side by side with the MFC version and does not interfere with it |
| Difficulty | low: one development environment, one solution, the build is a single menu command; builds without warnings | above average: several separate tools (Git, Qt with MinGW, CMake and Ninja, Python), building OpenCASCADE from source, working on the Git Bash command line, the C:\Qt path is hard-coded in the scripts |
| Detailed guide | MFC 1.3 · 1. What to install and onward (7 steps) | Qt6 5.0 · 1. What to install before building and onward (8 pages) |
All time and size figures are real measurements on the development machine, taken from the guide pages. On another computer the time may differ: fewer processor cores — a longer build; a slower internet connection — a longer installation of the tools.
Which version to choose
You only need to use the programs — do not build
A build is needed by those who change the source code or want to produce the programs from source themselves. To simply work with the package, download a ready-made installer and install the programs — the procedure is described in the “Installation” section:
- MFC version 1.3 — Installing the MFC version on Windows;
- Qt6 version 5.0 — Installing the Qt6 version on Windows.
Build MFC 1.3 if
- you work in Visual Studio and want to open, debug and rebuild the projects in it;
- you need a 32-bit variant of the programs (for 32-bit Windows) — the Qt6 version does not have one;
- you need a Debug build to find errors in the Visual Studio debugger;
- you need the simplest and fastest build: the sources are open on GitHub, you install one development environment, the build takes less than a minute.
Build Qt6 5.0 if
- you need the new version of the package, which includes:
- the TPL Designer task file editor (including import of STEP 3D models);
- multi-frequency computation;
- switching the language of the program interface;
- GPU computing (the MFC version also has it, but only in the 64-bit build —
the
/GPUswitch);
- the 64-bit variant of the programs is enough for you;
- you have the complete archive of the Qt6 version sources and at least 5 GB of free disk space.
If you are unsure and you do need a build from source, start with MFC 1.3: it is easier to reproduce on the first attempt, and the result is checked with a test run in a few seconds.
Table of contents: building the MFC version 1.3
Follow the pages in order. Step 4 can be done instead of step 3 (the result is the same), step 6 is optional.
| Step | Page | What you do |
|---|---|---|
| 1 | What to install | install Visual Studio 2026 with the MFC component and, optionally, Git and Inno Setup |
| 2 | Getting the sources | download the sources from GitHub into C:\src\TMC_Suite and check the folder contents |
| 3 | Building in Visual Studio | open src\tamic.slnx, choose the configuration and platform, build the 12 projects |
| 4 | Building from the command line | build all four combinations with MSBuild, write the build log to a file |
| 5 | Checking the result and a test run | check the files and bitness, perform a test run, check the exit code |
| 6 | Installer and portable folder | build TMC_Suite_Setup.exe or a portable ZIP archive |
| 7 | Errors and their solutions | open it if something went wrong |
Table of contents: building the Qt6 version 5.0
Note the order: the OpenCASCADE library (page 4, sections 4.1–4.4) is built before the programs of the package (page 3) — without it the package build stops with an error.
| Step | Page | What you do |
|---|---|---|
| 1 | What to install before building | install Git for Windows, Qt 6.11.3, MinGW 13.1, CMake, Ninja, Python, Inno Setup |
| 2 | Source code and folder layout | download the sources from GitHub and check that all files are in place |
| 3 | OpenCASCADE and TPL Designer, sections 4.1–4.4 | download and build OpenCASCADE 7.9.3 once |
| 4 | Building the programs of the package | build all programs of the package with the single command build_win.sh |
| 5 | OpenCASCADE and TPL Designer, sections 4.5–4.7 | check TPL Designer and, optionally, run its tests |
| 6 | Distribution folder | build the dist\TMC_Suite_Qt6_win64 folder with all programs and DLLs |
| 7 | Installer | build TMC_Suite_5.0_Qt6_Setup.exe |
| 8 | Checking the built package | start the programs and a test run with both compute kernels |
| — | Errors and solutions | open it if something went wrong |