- Install Qt5
- Download and install Qt 5.x (or your preferred 5.x version).
- Make sure to install the MinGW-compatible version.
- Add the following directories to your system
PATH:- The
bindirectory of your Qt installation (e.g.,C:\Qt\5.15.2\mingw81_64\bin) - The MinGW bundled with Qt (e.g.,
C:\Qt\Qt5.14.2\Tools\mingw730_32\bin)
- The
Before building, you need to generate Qt MOC (Meta-Object Compiler) files:
- Open PowerShell in the project directory.
- Edit
createMOC.ps1and update the$qtPathvariable to point to your Qt5 installation'sbindirectory if needed. - Run the script:
This will generate the necessary
./createMOC.ps1moc_*.cppfiles in themoc/directory.
Open a terminal (cmd or PowerShell) in the project directory:
mingw32-make cleanmingw32-makeneed to copy the following dll from your qt folder to the bin folder
Qt5Core.dll
Qt5Gui.dll
Qt5Network.dll
Qt5Widgets.dll
- If you encounter missing MOC files, re-run
createMOC.ps1. - If you change Qt header usage, re-run
createMOC.ps1before building. - If you use a different Qt or MinGW version, update paths accordingly in your environment and scripts.
- I am using vscode, you can see the recommend debug and build task definition under .vscode folder
- 增加自动内政,自动招降(降低招降难度)
- 自动征兵,分配给带将数最高的10个人
- 存储城市信息为json方便改动
- convert all file to c++ and use vector to modernlize the code (in progress)
- Ensure all required Qt DLLs are available in your
PATHor next to the executable. - If you see errors about missing
*.hor*.cppfiles, check that MOC generation completed successfully.
- add step for what static file needed(qt lib,dat.lib)
- convert save format completely to json
- persons
- orders
- rewrite the UI using different engine,to enable show more information it's too terrible.