8. Ошибки и решения
Что будет сделано на этой странице: по тексту сообщения вы найдёте причину ошибки и способ её устранить. Ошибки сгруппированы по этапам: запуск сценариев, настройка CMake, сборка, OpenCASCADE, запуск программ, поставка, установщик, кодировка CP1251.
Как искать: скопируйте ключевые слова из сообщения (например, qwindows, libstdc++,
OpenCASCADE) и найдите их на этой странице (Ctrl+F в браузере или редакторе).
8.1. Запуск сценариев
| Сообщение | Причина | Что делать |
|---|---|---|
'sh' не является внутренней или внешней командой, исполняемой программой или пакетным файлом. |
сценарий .sh запущен из Командной строки или PowerShell, а не из Git Bash |
откройте Git Bash (страница 1, раздел 1.2) и запустите команду там |
sh: /d/My: No such file or directory (или путь оборван на пробеле) |
путь с пробелом не взят в кавычки | пишите путь в двойных кавычках: sh "/d/My Work/TMC_Suite/build/build_win.sh" |
python: command not found или Python was not found; run without arguments to install from the Microsoft Store… |
Python не установлен или не добавлен в PATH (открывается заглушка Microsoft Store) |
переустановите Python с галочкой Add python.exe to PATH (страница 1, раздел 1.4); откройте новое окно Git Bash |
| Окно Git Bash долго ничего не выводит | так задумано: вывод сборки идёт в журнал | следите за журналом во втором окне: tail -f ".../build/build-win.log" (страница 3, раздел 3.2) |
| Сборка «зависла», процессор не загружен | вывод сборки пропущен через конвейер (\| head, \| Select-Object -First и т. п.) |
закройте окно, запустите build_win.sh без конвейера, читайте журнал |
8.2. Настройка CMake (сценарий печатает 30 строк и exit 1)
Полный текст — в build/build-win-config.log.
| Сообщение | Причина | Что делать |
|---|---|---|
build_win.sh: line 9: cmake: command not found |
нет C:\Qt\Tools\CMake_64 (CMake не установлен или установлен в другое место) |
поставьте CMake и Ninja онлайн-установщиком Qt, группа Build Tools (страница 1, раздел 1.3) |
Qt 6 не найден — графические программы собираться не будут. Установите: sudo apt install qt6-base-dev qt6-base-dev-tools |
текст рассчитан на Linux; под Windows он значит, что нет C:\Qt\6.11.3\mingw_64 |
установите Qt 6.11.3 MinGW 64-bit в C:\Qt (страница 1, раздел 1.3). Совет про apt под Windows не относится |
… asked CMake to find a package configuration file provided by "Qt6", but CMake did not find one. |
то же: не найден Qt 6.11.3 | то же; путь в CMAKE_PREFIX_PATH пишется прямыми косыми чертами |
Failed to find required Qt component "ShaderTools". |
не установлен Qt Shader Tools (нужен FieldView) | C:\Qt\MaintenanceTool.exe → Add or remove components → Qt 6.11.3 → Qt Shader Tools; затем удалите build\obj и соберите заново (страница 3, раздел 3.5) |
Failed to find required Qt component "Svg" (или Concurrent, OpenGLWidgets, PrintSupport, Test) |
Qt поставлен неполно (например, вариант Б раздела 1.3 прерван) | переустановите компонент MinGW 13.1.0 64-bit группы Qt 6.11.3 или повторите get_qt6113.py |
TPL Designer: не найден OpenCASCADE (импорт STEP). Укажите папку с OpenCASCADEConfig.cmake: -DOpenCASCADE_DIR=<occt>/install/cmake … |
OpenCASCADE не собран/не установлен или лежит не по пути по умолчанию | соберите и установите OpenCASCADE (страница 4, разделы 4.2–4.4); если путь другой — удалите build\obj и запустите сборку с OCCT_DIR="<папка>/install/cmake" (страница 3, раздел 3.2) |
tmc_compute: …/tmcocl.h not found (set TMC_COMPUTE_OCL_INCLUDE) (или cl/cl.h, cl/cl_platform.h, cl/cl_version.h) |
в src\Include нет заголовков OpenCL |
возьмите полный архив исходников (страница 2, раздел 2.3) |
Предупреждение <библиотека>: найдено X из Y файлов (.vcxproj). Проверьте имена в FILES и наличие файлов на диске. |
в src\libs, src\kernels, src\viewers не хватает файлов расчётной библиотеки |
возьмите полный архив; не добавляйте файлы вручную |
The CMAKE_CXX_COMPILER: g++ is not a full path and was not found in the PATH. |
нет MinGW в C:\Qt\Tools\mingw1310_64 |
поставьте инструмент MinGW 13.1.0 64-bit из группы Build Tools |
8.3. Сборка (в конце exit 1 или другое ненулевое число)
Первые ошибки: grep -n "FAILED:\|error:" build/build-win.log | head -20 (в папке
корне проекта).
| Симптом | Причина | Что делать |
|---|---|---|
| После смены версии Qt или пути к OpenCASCADE собирается со старыми | сценарий настраивает CMake только когда нет build\obj\build.ninja |
удалите build\obj целиком и соберите заново (страница 3, раздел 3.5) |
Ошибка windres после добавления своего ресурса .rc |
windres из MinGW не переносит пробелы в путях включения (My Work) |
делайте как в проекте: ресурс — отдельной OBJECT-библиотекой без путей включения (функция tmc_win_app_icon в корневом CMakeLists.txt) |
Ошибки ld: undefined reference … после ручной правки CMakeLists.txt |
нарушен порядок или группа расчётных библиотек (между prepr и sfile95 взаимная зависимость, их связывает -Wl,--start-group … --end-group) |
верните CMakeLists.txt из архива |
| Числа результатов расходятся с MFC-версией больше чем в последнем бите | удалён флаг -ffp-contract=off или файл src\compat\ucrt_libm_win.cpp, или повторно импортирован src\libs |
верните CMakeLists.txt и src\libs из архива (страница 2, раздел 2.5) |
Сотни строк warning: |
предупреждения компилятора — нормально (в полной сборке около 400) | ничего; ошибка — только FAILED:/error: |
Ошибки компилятора в расчётном коде (src\libs, src\kernels, src\viewers) не исправляйте сами — покажите
журнал ответственному за сборку.
8.4. OpenCASCADE
| Симптом | Причина | Что делать |
|---|---|---|
configure exit 1 |
неверный путь к исходникам или не задан PATH к MinGW/CMake |
проверьте ls "/c/src/occt/src/CMakeLists.txt"; выполните заново первые две строки шага 2 раздела 4.3 |
build exit 1 |
ошибка компиляции OpenCASCADE | найдите FAILED: в occt\build.log; убедитесь, что исходники — метка V7_9_3, компилятор — MinGW 13.1 из C:\Qt\Tools |
cmake --install завершился ошибкой |
сборка была неполной (например, собирались только отдельные цели, как в build_occt_clean.sh) |
выполните полную сборку (cmake --build без списка целей), затем установку |
Флаги -ffile-prefix-map ломают настройку |
путь с пробелом внутри строки флагов | каждый флаг берётся в двойные кавычки внутри строки, как в research\fix_2026-10-25\build_occt_clean.sh |
8.5. Запуск программ (системные окна ошибок)
Эти окна появляются при запуске из папки сборки dist\win64\bin без окружения. Окно
закрывается только кнопкой ОК вручную.
| Сообщение в окне | Причина | Что делать |
|---|---|---|
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. |
Qt не нашёл модуль platforms\qwindows.dll: в dist\win64\bin его нет, а QT_PLUGIN_PATH не задан или задан относительным путём |
задайте QT_PLUGIN_PATH=C:\Qt\6.11.3\mingw_64\plugins (полный путь) — страница 7, раздел 7.3; или запускайте из папки поставки |
<программа>.exe - Системная ошибка: Не удается продолжить выполнение кода, поскольку система не обнаружила libstdc++-6.dll (или libgcc_s_seh-1.dll, libwinpthread-1.dll) |
нет папки MinGW в PATH |
добавьте C:\Qt\Tools\mingw1310_64\bin в PATH (страница 7, раздел 7.3) |
То же для Qt6PrintSupport.dll, Qt6Concurrent.dll и других Qt6*.dll |
нет папки Qt в PATH |
добавьте C:\Qt\6.11.3\mingw_64\bin в PATH |
TPL Designer: то же для libTK*.dll |
OpenCASCADE не скопирован рядом с программой | соберите TplDesigner заново (build_win.sh TplDesigner); сборка сама кладёт DLL в dist\win64\bin |
Точка входа в процедуру … не найдена в библиотеке DLL … |
в PATH раньше папок Qt 6.11.3 / MinGW 13.1 стоит папка с другими версиями тех же DLL (другой MinGW, другой Qt) |
поставьте папки C:\Qt\6.11.3\mingw_64\bin и C:\Qt\Tools\mingw1310_64\bin первыми в PATH |
Ядро в Git Bash не понимает /Arb, ищет файл C:/Program Files/Git/Arb |
Git Bash превращает ключи /… в пути |
MSYS_NO_PATHCONV=1 перед командой или ключи через дефис (-Arb) — страница 7, раздел 7.4 |
Код завершения ядра 1 |
ошибка в задании | текст ошибки — в окне командной строки (при запуске из bat-файла) или в строке состояния окна ядра |
Перед запуском незнакомого .exe можно заранее увидеть, какие DLL ему нужны (команда не
запускает программу):
export PATH="/c/Qt/Tools/mingw1310_64/bin:$PATH"
objdump -p "/c/src/TMC_Suite/dist/win64/bin/tmcgrout.exe" | grep "DLL Name"
8.6. Сборка папки поставки (package_win.sh)
Сценарий останавливается на первой неудачной команде (set -e); последнее сообщение
называет причину.
| Сообщение | Причина | Что делать |
|---|---|---|
cp: cannot stat '…/dist/win64/bin/planarrt_h.exe': No such file or directory (или другой .exe) |
программы не собраны или сборка завершилась с ошибкой | соберите пакет (страница 3) до exit 0 |
cp: cannot stat '…/dist/win64/bin/libTK*.dll' |
TPL Designer собран без OpenCASCADE | соберите OpenCASCADE (страница 4), удалите build\obj, соберите заново |
cp: cannot stat '…/LICENSE' / NOTICE / samples/… / TPL-Designer-rukovodstvo.pdf |
неполные исходники или корне проекта вынута из TMC_Suite |
восстановите раскладку (страница 2, раздел 2.2) |
cp: cannot stat '…/src/resources/licenses/.' |
нет папки текстов лицензий | скачайте исходники заново |
samples: … осталось с личным путём N [<файлы>] и остановка |
в образце остался путь машины сборки, который sanitize_samples.py не умеет заменять |
разберите файлы из списка в квадратных скобках.Н. Климов), как поступать с такими образцами |
windeployqt: command not found |
нет C:\Qt\6.11.3\mingw_64\bin\windeployqt.exe |
установите Qt 6.11.3 (страница 1) |
Warning: Cannot find any version of the dxcompiler.dll and dxil.dll… |
Direct3D 12 программам пакета не нужен | ничего, это нормально |
Warning: Runtime libraries not found in Qt binary folder, defaulting to looking in path |
библиотеки MinGW лежат не в папке Qt, а в C:\Qt\Tools\mingw1310_64\bin |
ничего; сценарий сам докладывает их (страница 5, раздел 5.5, шаг 13) |
build_manual_pdf.py: ModuleNotFoundError: No module named 'markdown' |
не установлен модуль markdown |
python -m pip install markdown |
8.7. Установщик (ISCC)
| Симптом | Причина | Что делать |
|---|---|---|
Ошибка в строке Source: "{#DistDir}\*" … (файлы не найдены) |
нет папки поставки dist\TMC_Suite_Qt6_win64 |
соберите поставку (страница 5) |
Ошибка в строке LicenseFile=… или Source: "{#LicenseRu}" |
нет TMC_Suite\installer\LICENSE_ru.txt или корне проекта вынута из TMC_Suite |
восстановите раскладку (страница 2) |
Ошибка в строке WizardStyle=modern dark hidebevels |
Inno Setup старше 6.7 | обновите Inno Setup до 6.7 или новее (страница 1, раздел 1.5) |
"…ISCC.exe" не является внутренней или внешней командой… |
Inno Setup установлен в другую папку (например, «для всех пользователей») | используйте путь C:\Program Files (x86)\Inno Setup 6\ISCC.exe |
В Git Bash /DTestBuild не действует, ISCC ищет файл |
Git Bash превратил ключ в путь | MSYS_NO_PATHCONV=1 перед командой (страница 6, раздел 6.3) |
Проверочный установщик перезаписал рабочий Setup.exe |
у них одинаковое имя выходного файла | задавайте имя ключом /F (страница 6, раздел 6.4) |
8.8. Кодировка Windows-1251 (CP1251)
Расчётный код (src\libs, src\kernels, src\viewers), часть ресурсов и файлы заданий .tpl записаны в кодировке
Windows-1251. Сборка работает с ними побайтно; ошибки появляются, если файл
перекодировать.
| Симптом | Причина | Что делать |
|---|---|---|
Русские комментарии в src\libs превратились в «кракозябры» или изменились строки сообщений программ |
файл открыт и сохранён редактором в UTF-8 | восстановите файл из архива. Правки в src\libs — только сценарием tools\patch_cp1251.py (корень TMC_Suite), новый текст — только латиницей (ASCII) |
Нечитаемый текст в «Свойства → Подробно» у .exe после правки ресурса версии |
windres читает .rc в кодовой странице системы |
в ресурсах версии (функция tmc_win_version_rc в корневом CMakeLists.txt) пишите только латиницей (ASCII) |
После правки задания .tpl в редакторе искажены русские комментарии или ядро сообщает об ошибке в задании |
задание пересохранено в UTF-8 или в него попали символы, которых нет в Windows-1251 (греческие ε, λ, Δ, стрелка →) |
сохраняйте .tpl в кодировке Windows-1251; вместо греческих букв пишите латиницей (eps, lambda) |
Испорчены обратные косые черты в Python-коде, вставленном в Git Bash через <<EOF |
оболочка обрабатывает \ внутри такой вставки |
сохраняйте сценарии Python в файл и запускайте файл |
Назад: 7. Проверка · В начало: 1. Что установить
8. Errors and solutions
What this page covers: using the text of a message, you will find the cause of an error and how to fix it. The errors are grouped by stage: running the scripts, CMake configuration, build, OpenCASCADE, starting the programs, distribution, installer, CP1251 encoding.
How to search: copy keywords from the message (for example, qwindows, libstdc++,
OpenCASCADE) and find them on this page (Ctrl+F in a browser or editor).
8.1. Running the scripts
| Message | Cause | What to do |
|---|---|---|
'sh' is not recognized as an internal or external command, operable program or batch file. |
the .sh script was run from Command Prompt or PowerShell, not from Git Bash |
open Git Bash (page 1, section 1.2) and run the command there |
sh: /d/My: No such file or directory (or the path is cut off at a space) |
a path with a space is not enclosed in quotes | write the path in double quotes: sh "/d/My Work/TMC_Suite/build/build_win.sh" |
python: command not found or Python was not found; run without arguments to install from the Microsoft Store… |
Python is not installed or not added to PATH (the Microsoft Store stub opens) |
reinstall Python with the Add python.exe to PATH check box ticked (page 1, section 1.4); open a new Git Bash window |
| The Git Bash window prints nothing for a long time | this is by design: the build output goes to the log | follow the log in a second window: tail -f ".../build/build-win.log" (page 3, section 3.2) |
| The build "hangs", the CPU is idle | the build output is piped (\| head, \| Select-Object -First, etc.) |
close the window, run build_win.sh without a pipe, read the log |
8.2. CMake configuration (the script prints 30 lines and exit 1)
The full text is in build/build-win-config.log.
| Message | Cause | What to do |
|---|---|---|
build_win.sh: line 9: cmake: command not found |
there is no C:\Qt\Tools\CMake_64 (CMake is not installed or is installed elsewhere) |
install CMake and Ninja with the Qt online installer, Build Tools group (page 1, section 1.3) |
Qt 6 не найден — графические программы собираться не будут. Установите: sudo apt install qt6-base-dev qt6-base-dev-tools |
the text is meant for Linux; under Windows it means that there is no C:\Qt\6.11.3\mingw_64 |
install Qt 6.11.3 MinGW 64-bit in C:\Qt (page 1, section 1.3). The apt advice does not apply to Windows |
… asked CMake to find a package configuration file provided by "Qt6", but CMake did not find one. |
the same: Qt 6.11.3 not found | the same; the path in CMAKE_PREFIX_PATH is written with forward slashes |
Failed to find required Qt component "ShaderTools". |
Qt Shader Tools is not installed (needed by FieldView) | C:\Qt\MaintenanceTool.exe → Add or remove components → Qt 6.11.3 → Qt Shader Tools; then delete build\obj and build again (page 3, section 3.5) |
Failed to find required Qt component "Svg" (or Concurrent, OpenGLWidgets, PrintSupport, Test) |
Qt is installed incompletely (for example, option B of section 1.3 was interrupted) | reinstall the MinGW 13.1.0 64-bit component of the Qt 6.11.3 group or rerun get_qt6113.py |
TPL Designer: не найден OpenCASCADE (импорт STEP). Укажите папку с OpenCASCADEConfig.cmake: -DOpenCASCADE_DIR=<occt>/install/cmake … |
OpenCASCADE is not built/not installed or is not at the default path | build and install OpenCASCADE (page 4, sections 4.2–4.4); if the path is different, delete build\obj and run the build with OCCT_DIR="<folder>/install/cmake" (page 3, section 3.2) |
tmc_compute: …/tmcocl.h not found (set TMC_COMPUTE_OCL_INCLUDE) (or cl/cl.h, cl/cl_platform.h, cl/cl_version.h) |
there are no OpenCL headers in src\Include |
take the full source archive (page 2, section 2.3) |
Warning <библиотека>: найдено X из Y файлов (.vcxproj). Проверьте имена в FILES и наличие файлов на диске. |
files of a computational library are missing in src\libs, src\kernels, src\viewers |
take the full archive; do not add files manually |
The CMAKE_CXX_COMPILER: g++ is not a full path and was not found in the PATH. |
there is no MinGW in C:\Qt\Tools\mingw1310_64 |
install the MinGW 13.1.0 64-bit tool from the Build Tools group |
8.3. Build (exit 1 or another non-zero number at the end)
First errors: grep -n "FAILED:\|error:" build/build-win.log | head -20 (in the
корне проекта folder).
| Symptom | Cause | What to do |
|---|---|---|
| After changing the Qt version or the path to OpenCASCADE, the build uses the old ones | the script configures CMake only when there is no build\obj\build.ninja |
delete build\obj entirely and build again (page 3, section 3.5) |
A windres error after adding your own .rc resource |
windres from MinGW does not handle spaces in include paths (My Work) |
do as the project does: the resource as a separate OBJECT library without include paths (the tmc_win_app_icon function in the root CMakeLists.txt) |
ld: undefined reference … errors after manually editing CMakeLists.txt |
the order or the group of the computational libraries is broken (prepr and sfile95 depend on each other, they are linked with -Wl,--start-group … --end-group) |
restore CMakeLists.txt from the archive |
| The numerical results differ from the MFC version by more than the last bit | the -ffp-contract=off flag or the file src\compat\ucrt_libm_win.cpp has been removed, or src\libs has been re-imported |
restore CMakeLists.txt and src\libs from the archive (page 2, section 2.5) |
Hundreds of warning: lines |
compiler warnings — normal (about 400 in a full build) | nothing; only FAILED:/error: indicates an error |
Do not fix compiler errors in the computational code (src\libs, src\kernels, src\viewers) yourself — show
the log to the person responsible for the build.
8.4. OpenCASCADE
| Symptom | Cause | What to do |
|---|---|---|
configure exit 1 |
wrong path to the sources, or PATH to MinGW/CMake is not set |
check ls "/c/src/occt/src/CMakeLists.txt"; rerun the first two lines of step 2 of section 4.3 |
build exit 1 |
an OpenCASCADE compilation error | find FAILED: in occt\build.log; make sure the sources are at the V7_9_3 tag and the compiler is MinGW 13.1 from C:\Qt\Tools |
cmake --install finished with an error |
the build was incomplete (for example, only individual targets were built, as in build_occt_clean.sh) |
perform a full build (cmake --build without a list of targets), then the installation |
The -ffile-prefix-map flags break the configuration |
a path with a space inside the flags string | each flag is enclosed in double quotes inside the string, as in research\fix_2026-10-25\build_occt_clean.sh |
8.5. Starting the programs (system error windows)
These windows appear when a program is started from the build folder dist\win64\bin without the environment. The window
can only be closed manually with the OK button.
| Message in the window | Cause | What to do |
|---|---|---|
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. |
Qt did not find the platforms\qwindows.dll module: it is not in dist\win64\bin, and QT_PLUGIN_PATH is not set or is set as a relative path |
set QT_PLUGIN_PATH=C:\Qt\6.11.3\mingw_64\plugins (full path) — page 7, section 7.3; or start from the distribution folder |
<program>.exe - System Error: The code execution cannot proceed because libstdc++-6.dll was not found. (or libgcc_s_seh-1.dll, libwinpthread-1.dll) |
the MinGW folder is not in PATH |
add C:\Qt\Tools\mingw1310_64\bin to PATH (page 7, section 7.3) |
The same for Qt6PrintSupport.dll, Qt6Concurrent.dll and other Qt6*.dll |
the Qt folder is not in PATH |
add C:\Qt\6.11.3\mingw_64\bin to PATH |
TPL Designer: the same for libTK*.dll |
OpenCASCADE has not been copied next to the program | rebuild TplDesigner (build_win.sh TplDesigner); the build itself places the DLLs in dist\win64\bin |
The procedure entry point … could not be located in the dynamic link library … |
a folder with other versions of the same DLLs (another MinGW, another Qt) comes in PATH before the Qt 6.11.3 / MinGW 13.1 folders |
put the folders C:\Qt\6.11.3\mingw_64\bin and C:\Qt\Tools\mingw1310_64\bin first in PATH |
The kernel in Git Bash does not understand /Arb, looks for the file C:/Program Files/Git/Arb |
Git Bash converts /… options into paths |
MSYS_NO_PATHCONV=1 before the command, or options with a hyphen (-Arb) — page 7, section 7.4 |
Kernel exit code 1 |
an error in the task file | the error text is in the command prompt window (when started from a bat file) or in the status bar of the kernel window |
Before starting an unfamiliar .exe, you can see in advance which DLLs it needs (the command does not
start the program):
export PATH="/c/Qt/Tools/mingw1310_64/bin:$PATH"
objdump -p "/c/src/TMC_Suite/dist/win64/bin/tmcgrout.exe" | grep "DLL Name"
8.6. Assembling the distribution folder (package_win.sh)
The script stops at the first failed command (set -e); the last message
names the cause.
| Message | Cause | What to do |
|---|---|---|
cp: cannot stat '…/dist/win64/bin/planarrt_h.exe': No such file or directory (or another .exe) |
the programs have not been built or the build finished with an error | build the package (page 3) until exit 0 |
cp: cannot stat '…/dist/win64/bin/libTK*.dll' |
TPL Designer was built without OpenCASCADE | build OpenCASCADE (page 4), delete build\obj, build again |
cp: cannot stat '…/LICENSE' / NOTICE / samples/… / TPL-Designer-rukovodstvo.pdf |
incomplete sources, or корне проекта has been taken out of TMC_Suite |
restore the layout (page 2, section 2.2) |
cp: cannot stat '…/src/resources/licenses/.' |
there is no folder with the license texts | download the sources again |
samples: … осталось с личным путём N [<файлы>] and a stop |
a build-machine path that sanitize_samples.py cannot replace remains in a sample |
examine the files from the list in square brackets. N. Klimov) how to handle such samples |
windeployqt: command not found |
there is no C:\Qt\6.11.3\mingw_64\bin\windeployqt.exe |
install Qt 6.11.3 (page 1) |
Warning: Cannot find any version of the dxcompiler.dll and dxil.dll… |
the programs of the package do not need Direct3D 12 | nothing, this is normal |
Warning: Runtime libraries not found in Qt binary folder, defaulting to looking in path |
the MinGW libraries are not in the Qt folder but in C:\Qt\Tools\mingw1310_64\bin |
nothing; the script adds them itself (page 5, section 5.5, step 13) |
build_manual_pdf.py: ModuleNotFoundError: No module named 'markdown' |
the markdown module is not installed |
python -m pip install markdown |
8.7. Installer (ISCC)
| Symptom | Cause | What to do |
|---|---|---|
An error in the line Source: "{#DistDir}\*" … (files not found) |
there is no distribution folder dist\TMC_Suite_Qt6_win64 |
assemble the distribution (page 5) |
An error in the line LicenseFile=… or Source: "{#LicenseRu}" |
there is no TMC_Suite\installer\LICENSE_ru.txt, or корне проекта has been taken out of TMC_Suite |
restore the layout (page 2) |
An error in the line WizardStyle=modern dark hidebevels |
Inno Setup older than 6.7 | update Inno Setup to 6.7 or later (page 1, section 1.5) |
'"…ISCC.exe"' is not recognized as an internal or external command… |
Inno Setup is installed in a different folder (for example, "for all users") | use the path C:\Program Files (x86)\Inno Setup 6\ISCC.exe |
In Git Bash /DTestBuild has no effect, ISCC looks for a file |
Git Bash converted the option into a path | MSYS_NO_PATHCONV=1 before the command (page 6, section 6.3) |
The test installer overwrote the working Setup.exe |
they have the same output file name | set the name with the /F option (page 6, section 6.4) |
8.8. Windows-1251 (CP1251) encoding
The computational code (src\libs, src\kernels, src\viewers), some of the resources and the .tpl task files are written in the
Windows-1251 encoding. The build handles them byte by byte; errors appear if a file
is re-encoded.
| Symptom | Cause | What to do |
|---|---|---|
Russian comments in src\libs turned into garbled characters ("mojibake"), or the program message strings changed |
the file was opened and saved by an editor in UTF-8 | restore the file from the archive. Edits in src\libs are made only with the tools\patch_cp1251.py script (root of TMC_Suite), new text only in Latin characters (ASCII) |
Unreadable text in "Properties → Details" of an .exe after editing the version resource |
windres reads the .rc in the system code page |
in the version resources (the tmc_win_version_rc function in the root CMakeLists.txt) write only in Latin characters (ASCII) |
After editing a .tpl task file in an editor, the Russian comments are garbled or the kernel reports an error in the task file |
the task file was re-saved in UTF-8, or it received characters that do not exist in Windows-1251 (Greek ε, λ, Δ, the arrow →) |
save .tpl files in the Windows-1251 encoding; instead of Greek letters write Latin (eps, lambda) |
Backslashes are corrupted in Python code pasted into Git Bash via <<EOF |
the shell processes \ inside such a paste |
save Python scripts to a file and run the file |
Back: 7. Check · To the beginning: 1. What to install