🏫电子科技大学
🧑💻程序设计项目实践(PBFL)作品
📚图书馆管理系统
🥸cJSON:DaveGamble/cJSON: Ultralightweight JSON parser in ANSI C (github.com)
🥸Switch Button:Qt编写自定义控件一开关按钮 - 飞扬青云 - 博客园 (cnblogs.com)
🥸QDarkStyleSheet:ColinDuquesnoy/QDarkStyleSheet: A dark style sheet for QtWidgets application (github.com)
打开目录中Deploy文件夹,双击运行应用程序LibraryManagementSystem.exe
。
在开始之前,请确保您的计算机满足以下要求:
- Windows 11/10操作系统
- 至少4GB的RAM
- 至少10GB的可用硬盘空间
- 访问 Qt官方网站 并下载Qt安装程序。
- 运行安装程序,选择Qt 5。
- 安装过程中,选择“Desktop gcc”(或相应的编译器)。
- 访问 CMake官方网站 并下载CMake安装程序。
- 安装CMake,并确保在安装过程中将CMake添加到系统路径。
- 访问 MinGW-w64 或 MinGW-w64 at SourceForge.net。
- 下载并安装适合您系统的MinGW版本。
- 在安装过程中,确保将MinGW添加到系统路径。
- 打开命令提示符或终端。
- 导航到项目源代码所在的文件夹。
- 运行以下命令来配置项目:
# 以下命令在CMakeLists.txt所在路径操作
mkdir build
cd build
cmake -G "MinGW Makefiles" -S .. -B .
cmake --build .
最后,手动把LibrarySystemInfo.json
,UsersInfo.json
,AutoSaveInfo.json
拷贝到/json
目录
- 在
./build
目录下,找到编译好的可执行文件。 - 双击运行应用程序
LibraryManagementSystem.exe
。
- 如果遇到任何编译错误,请检查Qt和MinGW是否正确安装,并且版本是否兼容。
- 确保所有步骤都按照指南执行。